I am new to Zephyr trying to build some of the sample programs for a bbc_microbit.
I get the following error message from the compiler (I installed the 0.10 level of the Zephyr SDK on Windows 10 subsystem for Linux running Ubuntu 18.04 LTS).
It looks like the compiler that comers with the SDK is not working.
Any help would be much appreciated!!!!
bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=bbc_microbit ..
CMake Error at CMakeLists.txt:5 (include):
include could not find load file:
/cmake/app/boilerplate.cmake
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Check for working C compiler: /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -- broken
CMake Error at /home/bobwilmes/.local/lib/python2.7/site-packages/cmake/data/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/ninja" "cmTC_37158"
[1/2] Building C object CMakeFiles/cmTC_37158.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_37158
FAILED: cmTC_37158
: && /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc CMakeFiles/cmTC_37158.dir/testCCompiler.c.o -o cmTC_37158 && :
/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/8.3.0/../../../../arm-zephyr-eabi/bin/ld: /opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/8.3.0/../../../../arm-zephyr-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
/home/buildslave/src/github.com/zephyrproject-rtos/sdk-ng/build/build_arm/.build/arm-zephyr-eabi/src/newlib/newlib/libc/stdlib/exit.c:64: undefined reference to `_exit'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "/home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/CMakeFiles/CMakeOutput.log".
See also "/home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/CMakeFiles/CMakeError.log".
bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$ -