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

build asset_tracker failure on Mac os

Hello,
I was building the asset_tracker application in segger_embeded_studio v418 on Mac OS.

I am using master branch( because we need real gps data), however, I encontered build failure as:

Rebuilding ?libspmsecureentries.a? 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/zhenchuanchai/nrf9160sdk/ncs/nrf/applications/asset_tracker/build_nrf9160_pca10090ns/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/drivers/serial/libspm_drivers__serial.a spm/zephyr/modules/nrf/subsys/fw_metadata/libspm_..__nrf__subsys__fw_metadata.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/zhenchuanchai/nrf9160sdk/ncs/nrf/applications/asset_tracker/build_nrf9160_pca10090ns/spm/zephyr -lgcc /Users/zhenchuanchai/nrf9160sdk/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_mbedcrypto_0.9.0.a /Users/zhenchuanchai/nrf9160sdk/ncs/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_platform_0.9.0.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/zhenchuanchai/nrf9160sdk/ncs/nrf/applications/asset_tracker/build_nrf9160_pca10090ns/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

Besides "Build failed", I didnt find the error message. How can I work around this?

Thanks
Zhenchuan
Parents
  • Hi,

     

    The log you posted doesn't seem to have the error message itself.

    Could you post the whole log (try cleaning and rebuilding)? Sometimes it helps to re-import the project (delete the original build folder, or choose another build folder).

     

    Also, if you have changed the repository to master, did you remember to also update using west?

    cd /path/to/ncs/nrf

    west update

    PS: v4.20 of SES nordic edition is available for download, you can find the link through nRF Connect for Desktop -> Getting started assistant.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    The log you posted doesn't seem to have the error message itself.

    Could you post the whole log (try cleaning and rebuilding)? Sometimes it helps to re-import the project (delete the original build folder, or choose another build folder).

     

    Also, if you have changed the repository to master, did you remember to also update using west?

    cd /path/to/ncs/nrf

    west update

    PS: v4.20 of SES nordic edition is available for download, you can find the link through nRF Connect for Desktop -> Getting started assistant.

     

    Kind regards,

    Håkon

Children
Related