Hi,
The ncs/v1.4.2/nrf/tests/unity/example_test project does not seem to build for the emulated native_posix board when I try:
west build -b native_posix -t run
First it was complaining about Ruby so I installed that. Then it complained about missing #include <setjmp.h> so I added CONFIG_NEWLIB_LIBC=y to the config according to https://github.com/zephyrproject-rtos/zephyr/issues/31203 .
Now it is building fine for the DK:
west build --board=nrf52840dk_nrf52840
But still not for the emulated device:
$ west build -b native_posix -t run -- west build: making build dir C:\Users\r\ncs\v1.4.2\nrf\tests\unity\example_test\build pristine -- west build: generating a build system Including boilerplate (Zephyr base): C:/Users/r/ncs/v1.4.2/zephyr/cmake/app/boilerplate.cmake -- Application: C:/Users/r/ncs/v1.4.2/nrf/tests/unity/example_test -- Using NCS Toolchain 1.4.0 for building. (C:/Users/r/ncs/v1.4.2/toolchain/cmake) -- Zephyr version: 2.4.0 (C:/Users/r/ncs/v1.4.2/zephyr) -- Found Python3: C:/Users/r/ncs/v1.4.2/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter -- Found west (found suitable version "0.7.2", minimum required is "0.7.1") -- Board: native_posix -- Cache files will be written to: C:/Users/r/ncs/v1.4.2/zephyr/.cache -- Found dtc: C:/Users/r/ncs/v1.4.2/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found toolchain: host (gcc/ld) -- Found BOARD.dts: C:/Users/r/ncs/v1.4.2/zephyr/boards/posix/native_posix/native_posix.dts CMake Error at C:/Users/r/ncs/v1.4.2/zephyr/cmake/dts.cmake:164 (message): command failed with return code: The system cannot find the file specified Call Stack (most recent call first): C:/Users/r/ncs/v1.4.2/zephyr/cmake/app/boilerplate.cmake:590 (include) C:/Users/r/ncs/v1.4.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include) C:/Users/r/ncs/v1.4.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate) CMakeLists.txt:9 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: 'C:\Users\r\ncs\v1.4.2\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=C:\Users\r\ncs\v1.4.2\toolchain\opt\bin\python.exe' '-BC:\Users\r\ncs\v1.4.2\nrf\tests\unity\example_test\build' '-SC:\Users\r\ncs\v1.4.2\nrf\tests\unity\example_test' -GNinja -DBOARD=native_posix
Could you guys please help to figure out what’s wrong?