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

ncs\v1.6.1\zephyr\samples\bluetooth\hci_usb>cmake -B build -GNinja -DBOARD=nrf52dk_nrf52832 error

the log shows

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: D:/ncs/v1.6.1/toolchain/opt/bin/arm-none-eabi-gcc.exe 
Build flags: 
Id flags:  

The output was:
1
d:/ncs/v1.6.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: d:/ncs/v1.6.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.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: D:/ncs/v1.6.1/toolchain/opt/bin/arm-none-eabi-gcc.exe 
Build flags: 
Id flags:  

The output was:
1
d:/ncs/v1.6.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: d:/ncs/v1.6.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.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


how am i going to fix this try to cmake the nrf connect sdk 

sdk:

ncs\v1.6.1\zephyr\samples\bluetooth\hci_usb\build\CMakeFiles

Related