--west build: generating a build system CMake Deprecation Warning at /home/riosh11/mini/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy): The OLD behavior for policy CMP0079 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. Call Stack (most recent call first): CMakeLists.txt:26 (include) -- Application: /home/riosh11/mini/mini-nbiot-firmware -- Zephyr version: 2.4.0 (/home/riosh11/mini/zephyr) -- Found west (found suitable version "0.9.0", minimum required is "0.7.1") -- Board: nrf9160dk_minins -- Cache files will be written to: /root/.cache/zephyr -- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (/root/gcc/gcc-arm-none-eabi-9-2019-q4-major) -- Found BOARD.dts: /home/riosh11/mini/mini-nbiot-firmware/boards/arm/nrf9160dk_mini/nrf9160dk_minins.dts nrf9160dk_minins.dts.pre.tmp:357.32-361.5: Warning (simple_bus_reg): /soc/cryptocell-sw: missing or empty reg/ranges property nrf9160dk_minins.dts.pre.tmp:56.42-68.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@40000000/kmu@39000) nrf9160dk_minins.dts.pre.tmp:305.19-311.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/power@5000) -- Generated zephyr.dts: /home/riosh11/mini/mini-nbiot-firmware/build/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: /home/riosh11/mini/mini-nbiot-firmware/build/zephyr/include/generated/devicetree_unfixed.h Parsing /home/riosh11/mini/mini-nbiot-firmware/Kconfig Loaded configuration '/home/riosh11/mini/mini-nbiot-firmware/build/zephyr/.config' No change to configuration in '/home/riosh11/mini/mini-nbiot-firmware/build/zephyr/.config' No change to Kconfig header in '/home/riosh11/mini/mini-nbiot-firmware/build/zephyr/include/generated/autoconf.h' -- The C compiler identification is GNU 9.2.1 -- The CXX compiler identification is GNU 9.2.1 -- The ASM compiler identification is GNU -- Found assembler: /root/gcc/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc Changed board to secure nrf9160dk_mini (NOT NS) === child image spm - begin === Including boilerplate (Zephyr base (cached)): /home/riosh11/mini/zephyr/cmake/app/boilerplate.cmake CMake Deprecation Warning at /home/riosh11/mini/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy): The OLD behavior for policy CMP0079 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. Call Stack (most recent call first): /home/riosh11/mini/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) /home/riosh11/mini/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate) CMakeLists.txt:8 (find_package) -- Application: /home/riosh11/mini/nrf/samples/spm -- Zephyr version: 2.4.0 (/home/riosh11/mini/zephyr) -- Found west (found suitable version "0.9.0", minimum required is "0.7.1") -- Board: nrf9160dk_mini -- Cache files will be written to: /root/.cache/zephyr -- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (/root/gcc/gcc-arm-none-eabi-9-2019-q4-major) -- Found BOARD.dts: /home/riosh11/mini/mini-nbiot-firmware/boards/arm/nrf9160dk_mini/nrf9160dk_mini.dts nrf9160dk_mini.dts.pre.tmp:56.42-68.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@50000000/kmu@39000) nrf9160dk_mini.dts.pre.tmp:305.19-311.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@50000000/power@5000) -- Generated zephyr.dts: /home/riosh11/mini/mini-nbiot-firmware/build/spm/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: /home/riosh11/mini/mini-nbiot-firmware/build/spm/zephyr/include/generated/devicetree_unfixed.h Parsing /home/riosh11/mini/zephyr/Kconfig Loaded configuration '/home/riosh11/mini/mini-nbiot-firmware/build/spm/zephyr/.config' No change to configuration in '/home/riosh11/mini/mini-nbiot-firmware/build/spm/zephyr/.config' No change to Kconfig header in '/home/riosh11/mini/mini-nbiot-firmware/build/spm/zephyr/include/generated/autoconf.h' CMake Deprecation Warning at /home/riosh11/mini/modules/lib/civetweb/CMakeLists.txt:2 (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 (3.1s) CMake Warning (dev) at /home/riosh11/mini/zephyr/cmake/linker/ld/target.cmake:33 (add_custom_command): Policy CMP0116 is not set: Ninja generators transform DEPFILEs from add_custom_command(). Run "cmake --help-policy CMP0116" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /home/riosh11/mini/zephyr/CMakeLists.txt:682 (configure_linker_script) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /home/riosh11/mini/zephyr/cmake/linker/ld/target.cmake:33 (add_custom_command): Policy CMP0116 is not set: Ninja generators transform DEPFILEs from add_custom_command(). Run "cmake --help-policy CMP0116" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /home/riosh11/mini/zephyr/CMakeLists.txt:1021 (configure_linker_script) This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done (0.1s) -- Build files have been written to: /home/riosh11/mini/mini-nbiot-firmware/build/spm === child image spm - end === CMake Deprecation Warning at /home/riosh11/mini/modules/lib/civetweb/CMakeLists.txt:2 (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. /home/riosh11/mini/mini-nbiot-firmware/./extra/protobuf/nanopb/generator/nanopb_generator.py:22: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources # pyinstaller / protobuf 2.5 seem to need these Writing to ./lib/protobuf/command_msg.pb.h and ./lib/protobuf/command_msg.pb.c Writing to ./lib/protobuf/event_msg.pb.h and ./lib/protobuf/event_msg.pb.c Writing to ./lib/protobuf/event_payload.pb.h and ./lib/protobuf/event_payload.pb.c Writing to ./lib/protobuf/event_dev_info.pb.h and ./lib/protobuf/event_dev_info.pb.c Writing to ./lib/protobuf/command_payload.pb.h and ./lib/protobuf/command_payload.pb.c VERSION NUMBER: v0.1.0 BUILD DATE: 20-03-2024, 12:23 BUILD MACHINE: riosh11 BUILD_INFO: v0.1.0-10-g74d7132+ BOARD: nrf9160dk_minins -- Configuring done (7.0s) CMake Warning (dev) at /home/riosh11/mini/zephyr/cmake/linker/ld/target.cmake:33 (add_custom_command): Policy CMP0116 is not set: Ninja generators transform DEPFILEs from add_custom_command(). Run "cmake --help-policy CMP0116" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /home/riosh11/mini/zephyr/CMakeLists.txt:682 (configure_linker_script) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /home/riosh11/mini/zephyr/cmake/linker/ld/target.cmake:33 (add_custom_command): Policy CMP0116 is not set: Ninja generators transform DEPFILEs from add_custom_command(). Run "cmake --help-policy CMP0116" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /home/riosh11/mini/zephyr/CMakeLists.txt:1021 (configure_linker_script) This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done (0.1s) -- Build files have been written to: /home/riosh11/mini/mini-nbiot-firmware/build -- west build: building application [1/250] Preparing syscall dependency handling [6/250] Performing build step for 'spm_subimage' [1/192] Preparing syscall dependency handling [14/192] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h /home/riosh11/mini/zephyr/scripts/gen_kobject_list.py:66: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if LooseVersion(elftools.__version__) < LooseVersion('0.24'): [15/192] Generating include/generated/driver-validation.h /home/riosh11/mini/zephyr/scripts/gen_kobject_list.py:66: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if LooseVersion(elftools.__version__) < LooseVersion('0.24'): [53/192] Building ASM object zephyr/arch/ar...h__arm__core__aarch32.dir/swap_helper.S.obj FAILED: zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj /usr/bin/cc -DBUILD_VERSION=v2.4.0-ncs2 -DEXT_API_MAGIC=0x281ee6de,0xb845acea,23298 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,23298 -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DNRF9160_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -I/home/riosh11/mini/zephyr/kernel/include -I/home/riosh11/mini/zephyr/arch/arm/include -I/home/riosh11/mini/zephyr/include -I/home/riosh11/mini/mini-nbiot-firmware/build/spm/zephyr/include/generated -I/home/riosh11/mini/zephyr/soc/arm/nordic_nrf/nrf91 -I/home/riosh11/mini/nrf/include -I/home/riosh11/mini/nrfxlib/crypto/nrf_cc310_mbedcrypto/include/mbedtls -I/home/riosh11/mini/nrfxlib/crypto/nrf_cc310_mbedcrypto/include -I/home/riosh11/mini/mini-nbiot-firmware/build/spm/modules/nrfxlib/nrf_security/include -I/home/riosh11/mini/mini-nbiot-firmware/build/spm/modules/nrfxlib/nrf_security/include/mbedtls_generated -I/home/riosh11/mini/mbedtls/include -I/home/riosh11/mini/mbedtls/include/mbedtls -I/home/riosh11/mini/modules/hal/cmsis/CMSIS/Core/Include -I/home/riosh11/mini/modules/hal/nordic/nrfx -I/home/riosh11/mini/modules/hal/nordic/nrfx/drivers/include -I/home/riosh11/mini/modules/hal/nordic/nrfx/mdk -I/home/riosh11/mini/modules/hal/nordic/. -I/home/riosh11/mini/nrf/samples/spm/kernel/include -isystem /home/riosh11/mini/zephyr/lib/libc/minimal/include -isystem /root/gcc/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem /root/gcc/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -isystem /home/riosh11/mini/nrfxlib/crypto/nrf_cc310_platform/include -Os -imacros /home/riosh11/mini/mini-nbiot-firmware/build/spm/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -xassembler-with-cpp -imacros /home/riosh11/mini/zephyr/include/toolchain/zephyr_stdint.h -D_ASMLANGUAGE -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/riosh11/mini/nrf/samples/spm=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/riosh11/mini/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/riosh11/mini=WEST_TOPDIR -ffunction-sections -fdata-sections -mcmse -nostdinc -MD -MT zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj -MF zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj.d -o zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj -c /home/riosh11/mini/zephyr/arch/arm/core/aarch32/swap_helper.S cc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead cc: error: unrecognized argument in option ‘-mabi=aapcs’ cc: note: valid arguments to ‘-mabi=’ are: ms sysv cc: error: unrecognized command-line option ‘-mthumb’ cc: error: unrecognized command-line option ‘-mfpu=fpv5-sp-d16’ cc: error: unrecognized command-line option ‘-mfloat-abi=hard’ cc: error: unrecognized command-line option ‘-mcmse’ [57/192] Building ASM object zephyr/arch/ar...arch__arm__core__aarch32.dir/cpu_idle.S.obj FAILED: zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj /usr/bin/cc -DBUILD_VERSION=v2.4.0-ncs2 -DEXT_API_MAGIC=0x281ee6de,0xb845acea,23298 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,23298 -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DNRF9160_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -I/home/riosh11/mini/zephyr/kernel/include -I/home/riosh11/mini/zephyr/arch/arm/include -I/home/riosh11/mini/zephyr/include -I/home/riosh11/mini/mini-nbiot-firmware/build/spm/zephyr/include/generated -I/home/riosh11/mini/zephyr/soc/arm/nordic_nrf/nrf91 -I/home/riosh11/mini/nrf/include -I/home/riosh11/mini/nrfxlib/crypto/nrf_cc310_mbedcrypto/include/mbedtls -I/home/riosh11/mini/nrfxlib/crypto/nrf_cc310_mbedcrypto/include -I/home/riosh11/mini/mini-nbiot-firmware/build/spm/modules/nrfxlib/nrf_security/include -I/home/riosh11/mini/mini-nbiot-firmware/build/spm/modules/nrfxlib/nrf_security/include/mbedtls_generated -I/home/riosh11/mini/mbedtls/include -I/home/riosh11/mini/mbedtls/include/mbedtls -I/home/riosh11/mini/modules/hal/cmsis/CMSIS/Core/Include -I/home/riosh11/mini/modules/hal/nordic/nrfx -I/home/riosh11/mini/modules/hal/nordic/nrfx/drivers/include -I/home/riosh11/mini/modules/hal/nordic/nrfx/mdk -I/home/riosh11/mini/modules/hal/nordic/. -I/home/riosh11/mini/nrf/samples/spm/kernel/include -isystem /home/riosh11/mini/zephyr/lib/libc/minimal/include -isystem /root/gcc/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem /root/gcc/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -isystem /home/riosh11/mini/nrfxlib/crypto/nrf_cc310_platform/include -Os -imacros /home/riosh11/mini/mini-nbiot-firmware/build/spm/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -xassembler-with-cpp -imacros /home/riosh11/mini/zephyr/include/toolchain/zephyr_stdint.h -D_ASMLANGUAGE -Wno-unused-but-set-variable -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/riosh11/mini/nrf/samples/spm=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/riosh11/mini/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/riosh11/mini=WEST_TOPDIR -ffunction-sections -fdata-sections -mcmse -nostdinc -MD -MT zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj -MF zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj.d -o zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj -c /home/riosh11/mini/zephyr/arch/arm/core/aarch32/cpu_idle.S cc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead cc: error: unrecognized argument in option ‘-mabi=aapcs’ cc: note: valid arguments to ‘-mabi=’ are: ms sysv cc: error: unrecognized command-line option ‘-mthumb’ cc: error: unrecognized command-line option ‘-mfpu=fpv5-sp-d16’ cc: error: unrecognized command-line option ‘-mfloat-abi=hard’ cc: error: unrecognized command-line option ‘-mcmse’ [62/192] Building C object zephyr/arch/arch...s/arch__arm__core__aarch32.dir/thread.c.obj ninja: build stopped: subcommand failed. [11/250] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h /home/riosh11/mini/zephyr/scripts/gen_kobject_list.py:66: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if LooseVersion(elftools.__version__) < LooseVersion('0.24'): [12/250] Generating include/generated/driver-validation.h /home/riosh11/mini/zephyr/scripts/gen_kobject_list.py:66: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if LooseVersion(elftools.__version__) < LooseVersion('0.24'): FAILED: modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build spm/zephyr/zephyr.hex spm/zephyr/zephyr.elf spm/libspmsecureentries.a /home/riosh11/mini/mini-nbiot-firmware/build/modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build /home/riosh11/mini/mini-nbiot-firmware/build/spm/zephyr/zephyr.hex /home/riosh11/mini/mini-nbiot-firmware/build/spm/zephyr/zephyr.elf /home/riosh11/mini/mini-nbiot-firmware/build/spm/libspmsecureentries.a cd /home/riosh11/mini/mini-nbiot-firmware/build/spm && /usr/local/lib/python3.10/dist-packages/cmake/data/bin/cmake --build . -- ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /home/riosh11/mini/mini-nbiot-firmware/build