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

Segger Embedded Studio for ARM : solution load command failed (1)

I am following the tutorial to work with nRF9160 and I ran into this error while configuring for Open nRF Connect SDK Project.

I checked the CMakeError.log and I got this message :

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags:  

The output was:
1
c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): In function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2.exe: error: ld returned 1 exit status


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags:  

The output was:
1
c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): In function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2.exe: error: ld returned 1 exit status


Performing C SOURCE FILE Test check_fmacro_prefix_map_D__nRF_ncs_zephyr___C__nostartfiles__nostdlib__isystem__c__gnuarmemb_bin____lib_gcc_arm_none_eabi_7_3_1_include___isystem__c__gnuarmemb_bin____lib_gcc_arm_none_eabi_7_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files failed with the following output:
Change Dir: D:/nRF/ncs/nrf/applications/asset_tracker/build_nrf9160_pca10090/CMakeFiles/CMakeTmp

Run Build Command(s):C:/ProgramData/chocolatey/bin/ninja.exe cmTC_be447
[1/2] Building C object CMakeFiles/cmTC_be447.dir/src.c.obj

FAILED: CMakeFiles/cmTC_be447.dir/src.c.obj

C:\gnuarmemb\bin\arm-none-eabi-gcc.exe   -Dcheck_fmacro_prefix_map_D__nRF_ncs_zephyr___C__nostartfiles__nostdlib__isystem__c__gnuarmemb_bin____lib_gcc_arm_none_eabi_7_3_1_include___isystem__c__gnuarmemb_bin____lib_gcc_arm_none_eabi_7_3_1_include_fixed___Wl___unresolved_symbols_ignore_in_object_files -nostartfiles -nostdlib -isystem "c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include" -isystem "c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include-fixed" -Wl,--unresolved-symbols=ignore-in-object-files   -fmacro-prefix-map=D:/nRF/ncs/zephyr=. -o CMakeFiles/cmTC_be447.dir/src.c.obj   -c src.c

arm-none-eabi-gcc.exe: error: unrecognized command line option '-fmacro-prefix-map=D:/nRF/ncs/zephyr=.'

ninja: build stopped: subcommand failed.


Source file was:
int main(void) { return 0; }

I couldn't figure out what's wrong.  Could you help ?

Thank you

Related