Setting up west and Zephyr on Ubuntu for building

I followed the getting started guide for Ubuntu:

https://docs.zephyrproject.org/latest/getting_started/index.html

I can build Blinky, but when building my project I get some errors exclusive to the zephyr library.  I hope someone can point me in the right direction:

In file included from /root/zephyrproject/zephyr/include/toolchain/gcc.h:72,

                 from /root/zephyrproject/zephyr/include/toolchain.h:50,

                 from /root/zephyrproject/zephyr/include/kernel_includes.h:19,

                 from /root/zephyrproject/zephyr/include/kernel.h:17,

                 from /root/zephyrproject/zephyr/drivers/console/uart_mcumgr.c:13:

/root/zephyrproject/zephyr/drivers/console/uart_mcumgr.c: In function 'uart_mcumgr_register':

/root/zephyrproject/zephyr/include/device.h:96:39: error: '__device_dts_ord_DT_CHOSEN_zephyr_uart_mcumgr_ORD' undeclared (first use in this function)

   96 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)

      |                                       ^~~~~~~~~

/root/zephyrproject/zephyr/include/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'

  132 | #define _DO_CONCAT(x, y) x ## y

      |                          ^

/root/zephyrproject/zephyr/include/device.h:96:31: note: in expansion of macro '_CONCAT'

   96 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)

      |                               ^~~~~~~

/root/zephyrproject/zephyr/include/device.h:291:37: note: in expansion of macro 'DEVICE_NAME_GET'

  291 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id))

      |                                     ^~~~~~~~~~~~~~~

/root/zephyrproject/zephyr/include/device.h:311:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'

  311 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))

      |                                  ^~~~~~~~~~~~~~~~~~

/root/zephyrproject/zephyr/drivers/console/uart_mcumgr.c:249:20: note: in expansion of macro 'DEVICE_DT_GET'

  249 |  uart_mcumgr_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_uart_mcumgr));

      |                    ^~~~~~~~~~~~~

/root/zephyrproject/zephyr/include/device.h:96:39: note: each undeclared identifier is reported only once for each function it appears in

   96 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)

      |                                       ^~~~~~~~~

/root/zephyrproject/zephyr/include/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'

  132 | #define _DO_CONCAT(x, y) x ## y

      |                          ^

/root/zephyrproject/zephyr/include/device.h:96:31: note: in expansion of macro '_CONCAT'

   96 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)

      |                               ^~~~~~~

/root/zephyrproject/zephyr/include/device.h:291:37: note: in expansion of macro 'DEVICE_NAME_GET'

  291 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id))

      |                                     ^~~~~~~~~~~~~~~

/root/zephyrproject/zephyr/include/device.h:311:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'

  311 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))

      |                                  ^~~~~~~~~~~~~~~~~~

/root/zephyrproject/zephyr/drivers/console/uart_mcumgr.c:249:20: note: in expansion of macro 'DEVICE_DT_GET'

  249 |  uart_mcumgr_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_uart_mcumgr));

      |                    ^~~~~~~~~~~~~

[163/237] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj

ninja: build stopped: subcommand failed.

FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /root/build

Parents Reply Children
No Data
Related