Error while building ZephyrOS-Firmeware with CMake/Ninja and CPLUSPLUS C++ #builds #ninja #c++ #builds #nrf52840 #bootstrap #ninja #zephyr


sebastian.miethe94@...
 

Hello,

I want to build firmware with ZephyrOS for nRF52840. I set up the toolchain (on Windows) and everything works so far (Pyhton, West, CMake, Ninja..). I can even build most programs with "cmake -GNinja -DBOARD=nrf52840_pca10056".

But there is a problem with programs that need C++, which support is activated with "CONFIG_CPLUSPLUS=y" in Config-File (https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_CPLUSPLUS.html).

When I try to build the sample ("echo_server" sample vom samples/net/socket/echo_server) with "cmake -GNinja -DBOARD=nrf52840_pca10056 -DCONF_FILE="prj.conf overlay-ot.conf" .." eveything seams to work so far:

Fine: cmake -GNinja -DBOARD=nrf52840_pca10056 -DCONF_FILE="prj.conf overlay-ot.conf

But, when I then run "ninja" to create .hex-File I get an error:

Error: "The command ".\bootstrap" can not be found or is written wrong"

"FAILED: zephyr/ext_proj/STamp/ot/ot-bootstrap The command ".\bootstrap" can not be found or is written wrong No patch step for 'ot'" "

I think it has something to do with my Complier and/or C++ because when I change to "CONFIG_CPLUSPLUS=n" in the .conf-File, it builds the binaries without any errors. The problem is that without C++-support I can not use some features I want to use (Openthread) because they depend on C++.

I'm using Windows 10, GNU_ARM_Embedded_Toolchain (7-2018q2) and with other Tools from the Getting Started Guide from Zephyr (Python3, pip, west, Ninja, CMake). (https://docs.zephyrproject.org/latest/getting_started/index.html)

Hope you have some ideas, thanks for your help! With best regards

Sebastian


Kumar Gala
 

Sebastian,

The builds list is for reporting from our CI. Its best to ask this question on the ‘user' or ‘devel' lists.

- k

On Jun 1, 2019, at 2:49 PM, sebastian.miethe94@gmail.com wrote:

Hello,

I want to build firmware with ZephyrOS for nRF52840. I set up the toolchain (on Windows) and everything works so far (Pyhton, West, CMake, Ninja..). I can even build most programs with "cmake -GNinja -DBOARD=nrf52840_pca10056".

But there is a problem with programs that need C++, which support is activated with "CONFIG_CPLUSPLUS=y" in Config-File (https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_CPLUSPLUS.html).

When I try to build the sample ("echo_server" sample vom samples/net/socket/echo_server) with "cmake -GNinja -DBOARD=nrf52840_pca10056 -DCONF_FILE="prj.conf overlay-ot.conf" .." eveything seams to work so far:

Fine: cmake -GNinja -DBOARD=nrf52840_pca10056 -DCONF_FILE="prj.conf overlay-ot.conf

But, when I then run "ninja" to create .hex-File I get an error:

Error: "The command ".\bootstrap" can not be found or is written wrong"

"FAILED: zephyr/ext_proj/STamp/ot/ot-bootstrap The command ".\bootstrap" can not be found or is written wrong No patch step for 'ot'" "

I think it has something to do with my Complier and/or C++ because when I change to "CONFIG_CPLUSPLUS=n" in the .conf-File, it builds the binaries without any errors. The problem is that without C++-support I can not use some features I want to use (Openthread) because they depend on C++.

I'm using Windows 10, GNU_ARM_Embedded_Toolchain (7-2018q2) and with other Tools from the Getting Started Guide from Zephyr (Python3, pip, west, Ninja, CMake). (https://docs.zephyrproject.org/latest/getting_started/index.html)

Hope you have some ideas, thanks for your help! With best regards

Sebastian