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

SES did not finish cmake in sample http_application_update

Hi

I am trying to install the SES toolchain on my PC (Win 8.1) following exactly the nRF Connect v3.2.0 Getting Started Assistant. When trying to "Open nRF Connect Project..." into SES 4.20a I get the following prompt:

CMakeError.log

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/work/gnuarmemb/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags:
The output was:
1
c:/work/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:/work/gnuarmemb/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags:
The output was:
1
c:/work/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'
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

CMakeOutput.log

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
The target system is: Generic - 1.14.99 - arm
The host system is: Windows - 6.3.9600 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: C:/work/gnuarmemb/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags: -c
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o"
The C compiler identification is GNU, found in "C:/work/git/ncs/nrf/samples/nrf9160/http_application_update/build_nrf9160_pca10090ns/CMakeFiles/3.15.2/CompilerIdC/CMakeCCompilerId.o"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/work/gnuarmemb/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags: -c
The output was:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

There is no other output in SES Console.

The strange thing is, that the other samples such as lte_ble_gateway or asset_tracker build without problem with exactly the same setup.

I checked out tag v1.0.0 from the nrf github repo and I'm using cmake version 3.15.2 and west v0.6.2.

What is wrong with my setup or with this sample? I am stuck here.

BR, Marc