This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Cannot build asset_tracker from master branch of nrf-connect-sdk

On commit 668e0494fee1fc1f7e230124c11bc42f66469e3b from https://github.com/NordicPlayground/fw-nrfconnect-nrf.git

Using SES 4.20a for Mac OS X, I get this:

1> /opt/gnuarmemb/bin/arm-none-eabi-gcc spm/zephyr/CMakeFiles/spm_zephyr_prebuilt.dir/misc/empty_file.c.obj -Wl,-T spm/zephyr/linker.cmd -Wl,-Map=/Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/spm/zephyr/spm_zephyr_prebuilt.map -Wl,--whole-archive spm/spm_app/libspm_app.a spm/zephyr/libspm_zephyr.a spm/zephyr/arch/arch/arm/core/libspm_arch__arm__core.a spm/zephyr/arch/arch/arm/core/cortex_m/libspm_arch__arm__core__cortex_m.a spm/zephyr/arch/arch/arm/core/cortex_m/mpu/libspm_arch__arm__core__cortex_m__mpu.a spm/zephyr/lib/libc/minimal/libspm_lib__libc__minimal.a spm/zephyr/lib/posix/libspm_lib__posix.a spm/zephyr/boards/boards/arm/nrf9160_pca20035/libspm_..__nrf__boards__arm__nrf9160_pca20035.a spm/zephyr/drivers/i2c/libspm_drivers__i2c.a spm/zephyr/drivers/serial/libspm_drivers__serial.a spm/zephyr/modules/nrf/subsys/fw_info/libspm_..__nrf__subsys__fw_info.a spm/zephyr/modules/nrf/drivers/hw_cc310/libspm_..__nrf__drivers__hw_cc310.a spm/zephyr/modules/nrfxlib/nrf_security/src/mbedtls/libspm_mbedtls_base_vanilla.a spm/zephyr/modules/nordic/libspm_..__modules__hal__nordic.a -Wl,--no-whole-archive spm/zephyr/kernel/libspm_kernel.a spm/zephyr/CMakeFiles/spm_offsets.dir/arch/arm/core/offsets/offsets.c.obj -L/opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v8-m.main/fpv5-sp/hard -L/Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/spm/zephyr -lgcc -Wl,--print-memory-usage /Users/brendanyounger/horn/dynasty/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_mbedcrypto_0.9.1.a /Users/brendanyounger/horn/dynasty/ncs/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_platform_0.9.1.a -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -u_OffsetAbsSyms -u_ConfigAbsSyms -nostdlib -static -no-pie -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -mabi=aapcs -march=armv8-m.main+dsp -Wl,--out-implib=/Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/libspmsecureentries.a -Wl,--cmse-implib -o spm/zephyr/spm_zephyr_prebuilt.elf
1> Memory region         Used Size  Region Size  %age Used
1>            FLASH:       48640 B        48 KB     98.96%
1>             SRAM:        5544 B        64 KB      8.46%
1>         IDT_LIST:          56 B         2 KB      2.73%
Building ?spm/zephyr/linker_pass_final.cmd? from solution ?build? in configuration ?Common?
1> spm/zephyr/spm_zephyr_prebuilt.elf (14.11.2019 14:04:53) is newer than spm/zephyr/linker_pass_final.cmd (14.11.2019 14:02:04).
1> Combining ?spm/zephyr/linker_pass_final.cmd?
1> /opt/gnuarmemb/bin/arm-none-eabi-gcc -x assembler-with-cpp -undef -MD -MF linker_pass_final.cmd.dep -MT spm/zephyr/linker_pass_final.cmd -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/kernel/include -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/arch/arm/include -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/include -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/include/drivers -I/Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/spm/zephyr/include/generated -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/soc/arm/nordic_nrf/nrf91 -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/lib/libc/minimal/include -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/ext/hal/cmsis/Include -I/Users/brendanyounger/horn/dynasty/ncs/nrf/include -I/Users/brendanyounger/horn/dynasty/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/include/mbedtls -I/Users/brendanyounger/horn/dynasty/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/include -I/Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/spm/zephyr/modules/nrfxlib/nrf_security/include -I/Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/spm/zephyr/modules/nrfxlib/nrf_security/include/mbedtls_generated/ -I/Users/brendanyounger/horn/dynasty/ncs/mbedtls/include -I/Users/brendanyounger/horn/dynasty/ncs/mbedtls/include/mbedtls -I/Users/brendanyounger/horn/dynasty/ncs/modules/hal/nordic/nrfx -I/Users/brendanyounger/horn/dynasty/ncs/modules/hal/nordic/nrfx/drivers/include -I/Users/brendanyounger/horn/dynasty/ncs/modules/hal/nordic/nrfx/mdk -I/Users/brendanyounger/horn/dynasty/ncs/modules/hal/nordic/. -D__GCC_LINKER_CMD__ -DUSE_PARTITION_MANAGER=1 -DLINKER_PASS2 -E /Users/brendanyounger/horn/dynasty/ncs/zephyr/soc/arm/nordic_nrf/nrf91/linker.ld -P -o linker_pass_final.cmd
Building ?spm/zephyr/CMakeFiles/spm_linker_pass_final_script_target? from solution ?build? in configuration ?Common?
Building ?spm/zephyr/spm_linker_pass_final_script_target? from solution ?build? in configuration ?Common?
Building ?spm/zephyr/isr_tables.c? from solution ?build? in configuration ?Common?
1> spm/zephyr/spm_zephyr_prebuilt.elf (14.11.2019 14:04:53) is newer than spm/zephyr/isr_tables.c (14.11.2019 14:02:05).
1> Combining ?spm/zephyr/isr_tables.c?
1> /opt/gnuarmemb/bin/arm-none-eabi-objcopy --input-target=elf32-littlearm --output-target=binary --only-section=.intList /Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/spm/zephyr/spm_zephyr_prebuilt.elf isrList.bin
1> /usr/local/bin/python3 /Users/brendanyounger/horn/dynasty/ncs/zephyr/arch/common/gen_isr_tables.py --output-source isr_tables.c --kernel /Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/spm/zephyr/spm_zephyr_prebuilt.elf --intlist isrList.bin --sw-isr-table --vector-table
Building ?cmake_object_order_depends_target_spm_zephyr_final? from solution ?build? in configuration ?Common?
Building ?libspmsecureentries.a? from solution ?build? in configuration ?Common?
1> 'spm/zephyr/CMakeFiles/spm_zephyr_final.dir/misc/empty_file.c.obj' is up to date
2> spm/zephyr/isr_tables.c (14.11.2019 14:04:54) is newer than spm/zephyr/CMakeFiles/spm_zephyr_final.dir/isr_tables.c.obj (14.11.2019 14:02:05).
2> Compiling ?isr_tables.c?
2> /opt/gnuarmemb/bin/arm-none-eabi-gcc -DABI_INFO_MAGIC=0x281ee6de,0xb845acea,23297 -DBUILD_VERSION=v2.0.99-ncs1-rc1-11-g9be97c63368a -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,23297 -DKERNEL -DMBEDTLS_CONFIG_FILE="nrf-config.h" -DNRF9160_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/kernel/include -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/arch/arm/include -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/include -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/include/drivers -Ispm/zephyr/include/generated -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/soc/arm/nordic_nrf/nrf91 -I/Users/brendanyounger/horn/dynasty/ncs/zephyr/ext/hal/cmsis/Include -I/Users/brendanyounger/horn/dynasty/ncs/nrf/include -I/Users/brendanyounger/horn/dynasty/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/include/mbedtls -I/Users/brendanyounger/horn/dynasty/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/include -Ispm/zephyr/modules/nrfxlib/nrf_security/include -Ispm/zephyr/modules/nrfxlib/nrf_security/include/mbedtls_generated -I/Users/brendanyounger/horn/dynasty/ncs/mbedtls/include -I/Users/brendanyounger/horn/dynasty/ncs/mbedtls/include/mbedtls -I/Users/brendanyounger/horn/dynasty/ncs/modules/hal/nordic/nrfx -I/Users/brendanyounger/horn/dynasty/ncs/modules/hal/nordic/nrfx/drivers/include -I/Users/brendanyounger/horn/dynasty/ncs/modules/hal/nordic/nrfx/mdk -I/Users/brendanyounger/horn/dynasty/ncs/modules/hal/nordic/. -isystem /Users/brendanyounger/horn/dynasty/ncs/zephyr/lib/libc/minimal/include -isystem /opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include -isystem /opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include-fixed -isystem /Users/brendanyounger/horn/dynasty/ncs/nrfxlib/crypto/nrf_cc310_platform/include -Os -imacros/Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/spm/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -imacros/Users/brendanyounger/horn/dynasty/ncs/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -ffunction-sections -fdata-sections -mabi=aapcs -march=armv8-m.main+dsp -mcmse -std=c99 -nostdinc -MD -MF /Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/spm/zephyr/CMakeFiles/spm_zephyr_final.dir/isr_tables.c.obj.d -fno-diagnostics-show-caret -o spm/zephyr/CMakeFiles/spm_zephyr_final.dir/isr_tables.c.obj -c spm/zephyr/isr_tables.c
1> spm/zephyr/CMakeFiles/spm_zephyr_final.dir/isr_tables.c.obj (14.11.2019 14:04:54) is newer than spm/zephyr/zephyr.elf (14.11.2019 14:02:06).
Building ?spm/zephyr/zephyr.elf? from solution ?build? in configuration ?Common?
1> Linking ?zephyr.elf?
1> /opt/gnuarmemb/bin/arm-none-eabi-gcc spm/zephyr/CMakeFiles/spm_zephyr_final.dir/misc/empty_file.c.obj spm/zephyr/CMakeFiles/spm_zephyr_final.dir/isr_tables.c.obj -Wl,-T spm/zephyr/linker_pass_final.cmd -Wl,-Map=/Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/spm/zephyr/spm_zephyr_final.map -Wl,--whole-archive spm/spm_app/libspm_app.a spm/zephyr/libspm_zephyr.a spm/zephyr/arch/arch/arm/core/libspm_arch__arm__core.a spm/zephyr/arch/arch/arm/core/cortex_m/libspm_arch__arm__core__cortex_m.a spm/zephyr/arch/arch/arm/core/cortex_m/mpu/libspm_arch__arm__core__cortex_m__mpu.a spm/zephyr/lib/libc/minimal/libspm_lib__libc__minimal.a spm/zephyr/lib/posix/libspm_lib__posix.a spm/zephyr/boards/boards/arm/nrf9160_pca20035/libspm_..__nrf__boards__arm__nrf9160_pca20035.a spm/zephyr/drivers/i2c/libspm_drivers__i2c.a spm/zephyr/drivers/serial/libspm_drivers__serial.a spm/zephyr/modules/nrf/subsys/fw_info/libspm_..__nrf__subsys__fw_info.a spm/zephyr/modules/nrf/drivers/hw_cc310/libspm_..__nrf__drivers__hw_cc310.a spm/zephyr/modules/nrfxlib/nrf_security/src/mbedtls/libspm_mbedtls_base_vanilla.a spm/zephyr/modules/nordic/libspm_..__modules__hal__nordic.a -Wl,--no-whole-archive spm/zephyr/kernel/libspm_kernel.a spm/zephyr/CMakeFiles/spm_offsets.dir/arch/arm/core/offsets/offsets.c.obj -L/opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v8-m.main/fpv5-sp/hard -L/Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/spm/zephyr -lgcc /Users/brendanyounger/horn/dynasty/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_mbedcrypto_0.9.1.a /Users/brendanyounger/horn/dynasty/ncs/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_platform_0.9.1.a -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -u_OffsetAbsSyms -u_ConfigAbsSyms -nostdlib -static -no-pie -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -mabi=aapcs -march=armv8-m.main+dsp -Wl,--out-implib=/Users/brendanyounger/horn/dynasty/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/libspmsecureentries.a -Wl,--cmse-implib -o spm/zephyr/zephyr.elf
1> Post-link command 
1> cmake -E rename spm_zephyr_final.map zephyr.map
Build failed

With no further debugging information.  Looks like its failing while building the SPM project.

What is going on?

Here is the output of "west update"

=== updating zephyr (zephyr):

--- zephyr: checked out 9be97c63368aa5ddfb7613446794a3ec85801a49 as detached HEAD

=== updating nffs (modules/fs/nffs):

--- nffs: checked out bc62a2fa9d98ddb5d633c932ea199bc68e10f194 as detached HEAD

=== updating segger (modules/debug/segger):

--- segger: checked out 6fcf61606d6012d2c44129edc033f59331e268bc as detached HEAD

=== updating mbedtls (modules/crypto/mbedtls):

--- mbedtls: checked out c3be1b52f5e56aaba6039c423478cfaf62a91622 as detached HEAD

=== updating mcuboot (mcuboot):

--- mcuboot: checked out a631263274e7220e008138e7f26c2d35bbcb2203 as detached HEAD

=== updating mcumgr (modules/lib/mcumgr):

--- mcumgr: checked out f663988d35da559a37f263d369842dbce309d1fa as detached HEAD

=== updating tinycbor (modules/lib/tinycbor):

--- tinycbor: checked out 86d5ed5dd544b107d2d0882961a19c2c6cb06572 as detached HEAD

=== updating ci-tools (tools/ci-tools):

--- ci-tools: checked out e01f3bce2a94847253369efb9a081f5c0e9ec882 as detached HEAD

=== updating net-tools (tools/net-tools):

--- net-tools: checked out 30b7efa827b04d2e47840716b0372737fe7d6c92 as detached HEAD

=== updating nrfxlib (nrfxlib):

--- nrfxlib: checked out 52afb8282f4369204d1096121dd31485c479196a as detached HEAD

=== updating cmock (test/cmock):

--- cmock: checked out c243b9a7a7b3c471023193992b46cf1bd1910450 as detached HEAD

=== updating unity (test/cmock/vendor/unity):

--- unity: checked out 031f3bbe45f8adf504ca3d13e6f093869920b091 as detached HEAD

=== updating mbedtls-nrf (mbedtls):

--- mbedtls-nrf: checked out 04a049bda1ceca48060b57bc4bcf5203ce591421 as detached HEAD

=== updating civetweb (modules/lib/civetweb):

--- civetweb: checked out 99129c5efc907ea613c4b73ccff07581feb58a7a as detached HEAD

=== updating fatfs (modules/fs/fatfs):

--- fatfs: checked out df96914dd989907f3a5de4cb95b116c2f305820d as detached HEAD

=== updating hal_nordic (modules/hal/nordic):

--- hal_nordic: checked out 1b14177ff2176a1d17f3dd5e7e217f44337255db as detached HEAD

=== updating hal_st (modules/hal/st):

--- hal_st: checked out 0ec40aed8087f26bd9ac1b70fb5a6c326a6451aa as detached HEAD

=== updating libmetal (modules/hal/libmetal):

--- libmetal: checked out 45e630d6152824f807d3f919958605c4626cbdff as detached HEAD

=== updating lvgl (modules/lib/gui/lvgl):

--- lvgl: checked out d4708d0a432e95f51bdc712591ba5295b751140c as detached HEAD

=== updating open-amp (modules/lib/open-amp):

--- open-amp: checked out 9b591b289e1f37339bd038b5a1f0e6c8ad39c63a as detached HEAD

=== updating openthread (modules/lib/openthread):

--- openthread: checked out 3c32244f098f8daf8741efe0a2ad839b67f8567f as detached HEAD

=== updating littlefs (modules/fs/littlefs):

--- littlefs: checked out fe9572dd5a9fcf93a249daa4233012692bd2881d as detached HEAD

  • Hi,

     

    the repo's checkout looks according to that specific commit. I checked out the same commit, and tried to see if there was a problem with it, but other than a couple of warnings, it built properly.

    Could you clean your build directory, and try again? And try to post the full log, the one you have now looks like a incremental build (which hides the actual error)

     

    Kind regards,

    Håkon

Related