Bug#997208: firmware-microbit-micropython: FTBFS: platform.h:25:10: fatal error: cstddef: No such file or directory

2021-11-27 Thread Adrian Bunk
Control: severity 998365 serious
Control: close 997208

On Sun, Oct 24, 2021 at 12:48:33PM +0200, Ondřej Kuzník wrote:
> On Sat, Oct 23, 2021 at 09:11:58PM +0200, Lucas Nussbaum wrote:
> > Source: firmware-microbit-micropython
> > Version: 1.0.1-2
> > Severity: serious
> > Justification: FTBFS
> > Tags: bookworm sid ftbfs
> > 
> > Hi,
> > 
> > During a rebuild of all packages in sid, your package failed to build
> > on amd64.
> > 
> > 
> > Relevant part (hopefully):
> >> In file included from 
> >> /<>/yotta_modules/mbed-classic/api/Ethernet.h:19,
> >>  from 
> >> /<>/yotta_modules/mbed-classic/common/Ethernet.cpp:16:
> >> /<>/yotta_modules/mbed-classic/api/platform.h:25:10: fatal 
> >> error: cstddef: No such file or directory
> >>25 | #include 
> >>   |  ^
> >> compilation terminated.
> 
> On my bookworm system this is caused by the ARM toolchain being out of
> sync in the archive, sid/testing have:
> - gcc-arm-none-eabi 10.3 (15:10.3-2021.07-1)
> - libstdc++-arm-none-eabi from gcc 8 (15:8-2019-q3-1+13)
> 
> Where bullseye has both at 15:8-2019-q3-1+13 (and 15:8-2019-q3-1+b1).
> 
> In essence this is #953420 with different version combinations. I think
> the first step would be to mark gcc builds with Breaks for the older
> libstdc++ and vice versa. Or, if possible, submit them in lockstep.

This is #998365, so the problem has to be fixed there.

> Regards,
> Ondrej

cu
Adrian



Bug#997208: firmware-microbit-micropython: FTBFS: platform.h:25:10: fatal error: cstddef: No such file or directory

2021-10-24 Thread Ondřej Kuzník
On Sat, Oct 23, 2021 at 09:11:58PM +0200, Lucas Nussbaum wrote:
> Source: firmware-microbit-micropython
> Version: 1.0.1-2
> Severity: serious
> Justification: FTBFS
> Tags: bookworm sid ftbfs
> 
> Hi,
> 
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
> 
> 
> Relevant part (hopefully):
>> In file included from 
>> /<>/yotta_modules/mbed-classic/api/Ethernet.h:19,
>>  from 
>> /<>/yotta_modules/mbed-classic/common/Ethernet.cpp:16:
>> /<>/yotta_modules/mbed-classic/api/platform.h:25:10: fatal 
>> error: cstddef: No such file or directory
>>25 | #include 
>>   |  ^
>> compilation terminated.

On my bookworm system this is caused by the ARM toolchain being out of
sync in the archive, sid/testing have:
- gcc-arm-none-eabi 10.3 (15:10.3-2021.07-1)
- libstdc++-arm-none-eabi from gcc 8 (15:8-2019-q3-1+13)

Where bullseye has both at 15:8-2019-q3-1+13 (and 15:8-2019-q3-1+b1).

In essence this is #953420 with different version combinations. I think
the first step would be to mark gcc builds with Breaks for the older
libstdc++ and vice versa. Or, if possible, submit them in lockstep.

Regards,
Ondrej



Bug#997208: firmware-microbit-micropython: FTBFS: platform.h:25:10: fatal error: cstddef: No such file or directory

2021-10-23 Thread Lucas Nussbaum
Source: firmware-microbit-micropython
Version: 1.0.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[2]: Entering directory '/<>'
> python3 tools/makeversionhdr.py inc/genhdr/microbitversion.h
> Generate inc/genhdr/microbitversion.h
> info: generate for target: bbc-microbit-classic-gcc-nosd 0.2.3 at 
> /<>/yotta_targets/bbc-microbit-classic-gcc-nosd
> CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required):
>   Compatibility with CMake < 2.8.12 will be removed from a future version of
>   CMake.
> 
>   Update the VERSION argument  value or use a ... suffix to tell
>   CMake that the project does not need compatibility with older versions.
> 
> 
> CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):
>   The OLD behavior for policy CMP0017 will be removed from a future version
>   of CMake.
> 
>   The cmake-policies(7) manual explains that the OLD behaviors of all
>   policies are deprecated and that a policy should be set to OLD only under
>   specific short-term circumstances.  Projects should be ported to the NEW
>   behavior and not rely on setting a policy to OLD.
> 
> 
> CMake Deprecation Warning at 
> /usr/share/cmake-3.21/Modules/CMakeForceCompiler.cmake:75 (message):
>   The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
>   CMAKE_C_COMPILER and allow CMake to identify the compiler.
> Call Stack (most recent call first):
>   /<>/yotta_targets/mbed-gcc/CMake/toolchain.cmake:78 
> (cmake_force_c_compiler)
>   toolchain.cmake:8 (include)
>   /usr/share/cmake-3.21/Modules/CMakeDetermineSystem.cmake:124 (include)
>   CMakeLists.txt:75 (project)
> 
> 
> CMake Deprecation Warning at 
> /usr/share/cmake-3.21/Modules/CMakeForceCompiler.cmake:89 (message):
>   The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
>   CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
> Call Stack (most recent call first):
>   /<>/yotta_targets/mbed-gcc/CMake/toolchain.cmake:79 
> (cmake_force_cxx_compiler)
>   toolchain.cmake:8 (include)
>   /usr/share/cmake-3.21/Modules/CMakeDetermineSystem.cmake:124 (include)
>   CMakeLists.txt:75 (project)
> 
> 
> GCC version is: 10.3.1
> -- The ASM compiler identification is GNU
> -- Found assembler: /usr/bin/arm-none-eabi-gcc
> CMake Deprecation Warning at ym/ble/source/CMakeLists.txt:3 
> (cmake_minimum_required):
>   Compatibility with CMake < 2.8.12 will be removed from a future version of
>   CMake.
> 
>   Update the VERSION argument  value or use a ... suffix to tell
>   CMake that the project does not need compatibility with older versions.
> 
> 
> CMake Deprecation Warning at ym/ble-nrf51822/source/CMakeLists.txt:3 
> (cmake_minimum_required):
>   Compatibility with CMake < 2.8.12 will be removed from a future version of
>   CMake.
> 
>   Update the VERSION argument  value or use a ... suffix to tell
>   CMake that the project does not need compatibility with older versions.
> 
> 
> suppressing warnings from ble-nrf51822
> CMake Deprecation Warning at ym/nrf51-sdk/source/CMakeLists.txt:3 
> (cmake_minimum_required):
>   Compatibility with CMake < 2.8.12 will be removed from a future version of
>   CMake.
> 
>   Update the VERSION argument  value or use a ... suffix to tell
>   CMake that the project does not need compatibility with older versions.
> 
> 
> suppressing warnings from nrf51-sdk
> suppressing ALL warnings from mbed-classic, ble, ble-nrf51822 & nrf51-sdk
> CMake Deprecation Warning at source/CMakeLists.txt:3 (cmake_minimum_required):
>   Compatibility with CMake < 2.8.12 will be removed from a future version of
>   CMake.
> 
>   Update the VERSION argument  value or use a ... suffix to tell
>   CMake that the project does not need compatibility with older versions.
> 
> 
> -- Configuring done
> -- Generating done
> -- Build files have been written to: 
> /<>/build/bbc-microbit-classic-gcc-nosd
> [1/325] Building CXX object 
> ym/mbed-classic/existing/CMakeFiles/mbed-classic.dir/common/Ethernet.cpp.o
> FAILED: 
> ym/mbed-classic/existing/CMakeFiles/mbed-classic.dir/common/Ethernet.cpp.o 
> /usr/bin/arm-none-eabi-g++ -DYOTTA_MODULE_NAME=mbed-classic 
> -I/<>/build/bbc-microbit-classic-gcc-nosd/generated/include 
> -I/<> -I/<>/yotta_modules/microbit-dal 
> -I/<>/yotta_modules/mbed-classic 
> -I/<>/yotta_modules/ble 
> -I/<>/yotta_modules/ble-nrf51822 
> -I/<>/yotta_modules/nrf51-sdk 
> -I/<>/yotta_modules/mbed-classic/api 
> -I/<>/yotta_modules/mbed-classic/hal 
> -I/<>/yotta_modules/mbed-classic/targets/hal 
> -I/<>/yotta_modules/mbed-classic/targets/cmsis 
> -I/<>/yotta_modules/mbed-classic/targets 
> -I/<>/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC 
> -I/<>/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822
>  
> -I/<>/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM
>  
> -I/<>/yotta_module