In file included from /home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/toolchain/gcc.h:89,
from /home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/toolchain.h:50,
from /home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/init.h:13,
from /home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:13,
from /home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/drivers/uart.h:26,
from /home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:7:
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c: In function 'lpuart_init':
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:83:41: error: '__device_dts_ord_DT_N_INST_0_nordic_nrf_sw_lpuart_BUS_ORD' undeclared (first use in this function)
83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
| ^~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
132 | #define _DO_CONCAT(x, y) x ## y
| ^
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:83:33: note: in expansion of macro '_CONCAT'
83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
| ^~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:209:37: note: in expansion of macro 'DEVICE_NAME_GET'
209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
| ^~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:226:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
226 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
| ^~~~~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:970:22: note: in expansion of macro 'DEVICE_DT_GET'
970 | data->uart = DEVICE_DT_GET(DT_INST_BUS(0));
| ^~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:83:41: note: each undeclared identifier is reported only once for each function it appears in
83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
| ^~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
132 | #define _DO_CONCAT(x, y) x ## y
| ^
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:83:33: note: in expansion of macro '_CONCAT'
83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
| ^~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:209:37: note: in expansion of macro 'DEVICE_NAME_GET'
209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
| ^~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:226:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
226 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
| ^~~~~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:970:22: note: in expansion of macro 'DEVICE_DT_GET'
970 | data->uart = DEVICE_DT_GET(DT_INST_BUS(0));
| ^~~~~~~~~~~~~
In file included from /home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:12:
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c: At top level:
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:326:40: error: 'DT_N_INST_0_nordic_nrf_sw_lpuart_P_req_pin' undeclared here (not in a function); did you mean 'DT_N_INST_0_nordic_nrf_uarte'?
326 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
| ^~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:3903:29: note: in definition of macro 'DT_CAT3'
3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
| ^~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:3239:34: note: in expansion of macro 'DT_PROP'
3239 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
| ^~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:326:31: note: in expansion of macro 'UTIL_CAT'
326 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
| ^~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:3048:27: note: in expansion of macro 'DT_INST'
3048 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
| ^~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:3239:42: note: in expansion of macro 'DT_DRV_INST'
3239 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
| ^~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:1069:20: note: in expansion of macro 'DT_INST_PROP'
1069 | .req_pin = DT_INST_PROP(0, req_pin),
| ^~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:326:40: error: 'DT_N_INST_0_nordic_nrf_sw_lpuart_P_rdy_pin' undeclared here (not in a function)
326 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
| ^~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:3903:29: note: in definition of macro 'DT_CAT3'
3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
| ^~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:3239:34: note: in expansion of macro 'DT_PROP'
3239 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
| ^~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:326:31: note: in expansion of macro 'UTIL_CAT'
326 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
| ^~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:3048:27: note: in expansion of macro 'DT_INST'
3048 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
| ^~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:3239:42: note: in expansion of macro 'DT_DRV_INST'
3239 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
| ^~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:1070:20: note: in expansion of macro 'DT_INST_PROP'
1070 | .rdy_pin = DT_INST_PROP(0, rdy_pin)
| ^~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:190:36: error: 'DT_N_NODELABEL_lpuart_PARENT_IRQ_IDX_0_VAL_priority' undeclared here (not in a function)
190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/toolchain/gcc.h:78:51: note: in definition of macro 'BUILD_ASSERT'
78 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
| ^~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:2218:9: note: in expansion of macro 'DT_CAT5'
2218 | DT_CAT5(node_id, _IRQ_IDX_, idx, _VAL_, cell)
| ^~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:2245:31: note: in expansion of macro 'DT_IRQ_BY_IDX'
2245 | #define DT_IRQ(node_id, cell) DT_IRQ_BY_IDX(node_id, 0, cell)
| ^~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:1108:14: note: in expansion of macro 'DT_IRQ'
1108 | BUILD_ASSERT(DT_IRQ(DT_PARENT(DT_NODELABEL(lpuart)), priority) ==
| ^~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:351:28: note: in expansion of macro 'UTIL_CAT'
351 | #define DT_PARENT(node_id) UTIL_CAT(node_id, _PARENT)
| ^~~~~~~~
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:1108:21: note: in expansion of macro 'DT_PARENT'
1108 | BUILD_ASSERT(DT_IRQ(DT_PARENT(DT_NODELABEL(lpuart)), priority) ==
| ^~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:190:29: note: in expansion of macro 'DT_CAT'
190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:1108:31: note: in expansion of macro 'DT_NODELABEL'
1108 | BUILD_ASSERT(DT_IRQ(DT_PARENT(DT_NODELABEL(lpuart)), priority) ==
| ^~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:190:36: error: expression in static assertion is not an integer
190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/toolchain/gcc.h:78:51: note: in definition of macro 'BUILD_ASSERT'
78 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
| ^~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:2218:9: note: in expansion of macro 'DT_CAT5'
2218 | DT_CAT5(node_id, _IRQ_IDX_, idx, _VAL_, cell)
| ^~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:2245:31: note: in expansion of macro 'DT_IRQ_BY_IDX'
2245 | #define DT_IRQ(node_id, cell) DT_IRQ_BY_IDX(node_id, 0, cell)
| ^~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:1108:14: note: in expansion of macro 'DT_IRQ'
1108 | BUILD_ASSERT(DT_IRQ(DT_PARENT(DT_NODELABEL(lpuart)), priority) ==
| ^~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:351:28: note: in expansion of macro 'UTIL_CAT'
351 | #define DT_PARENT(node_id) UTIL_CAT(node_id, _PARENT)
| ^~~~~~~~
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:1108:21: note: in expansion of macro 'DT_PARENT'
1108 | BUILD_ASSERT(DT_IRQ(DT_PARENT(DT_NODELABEL(lpuart)), priority) ==
| ^~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:190:29: note: in expansion of macro 'DT_CAT'
190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:1108:31: note: in expansion of macro 'DT_NODELABEL'
1108 | BUILD_ASSERT(DT_IRQ(DT_PARENT(DT_NODELABEL(lpuart)), priority) ==
| ^~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:190:36: error: 'DT_N_NODELABEL_lpuart_FULL_NAME' undeclared here (not in a function)
190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:857:25: note: in definition of macro 'Z_DEVICE_INIT'
857 | .name = name_, \
| ^~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:940:9: note: in expansion of macro 'Z_DEVICE_BASE_DEFINE'
940 | Z_DEVICE_BASE_DEFINE(node_id, dev_id, name, pm, data, config, level, \
| ^~~~~~~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:178:9: note: in expansion of macro 'Z_DEVICE_DEFINE'
178 | Z_DEVICE_DEFINE(node_id, Z_DEVICE_DT_DEV_ID(node_id), \
| ^~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/sys/util_internal.h:69:53: note: in expansion of macro '__DEBRACKET'
69 | #define __GET_ARG2_DEBRACKET(ignore_this, val, ...) __DEBRACKET val
| ^~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/sys/util_internal.h:64:9: note: in expansion of macro '__GET_ARG2_DEBRACKET'
64 | __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
| ^~~~~~~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/sys/util_internal.h:59:9: note: in expansion of macro '__COND_CODE'
59 | __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)
| ^~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/sys/util_macro.h:157:9: note: in expansion of macro 'Z_COND_CODE_1'
157 | Z_COND_CODE_1(_flag, _if_1_code, _else_code)
| ^~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:754:9: note: in expansion of macro 'COND_CODE_1'
754 | COND_CODE_1(DT_NODE_HAS_PROP(node_id, prop), \
| ^~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:144:9: note: in expansion of macro 'DT_PROP_OR'
144 | DT_PROP_OR(node_id, label, DT_NODE_FULL_NAME(node_id))
| ^~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:514:36: note: in expansion of macro 'DT_CAT'
514 | #define DT_NODE_FULL_NAME(node_id) DT_CAT(node_id, _FULL_NAME)
| ^~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:144:36: note: in expansion of macro 'DT_NODE_FULL_NAME'
144 | DT_PROP_OR(node_id, label, DT_NODE_FULL_NAME(node_id))
| ^~~~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/device.h:179:25: note: in expansion of macro 'DEVICE_DT_NAME'
179 | DEVICE_DT_NAME(node_id), init_fn, pm, data, config, \
| ^~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:1112:1: note: in expansion of macro 'DEVICE_DT_DEFINE'
1112 | DEVICE_DT_DEFINE(DT_NODELABEL(lpuart), lpuart_init, NULL,
| ^~~~~~~~~~~~~~~~
/home/som/projs/ams/nrf9160/ncs/zephyr/include/zephyr/devicetree.h:190:29: note: in expansion of macro 'DT_CAT'
190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~
/home/som/projs/ams/nrf9160/ncs/nrf/drivers/serial/uart_nrf_sw_lpuart.c:1112:18: note: in expansion of macro 'DT_NODELABEL'
1112 | DEVICE_DT_DEFINE(DT_NODELABEL(lpuart), lpuart_init, NULL,
| ^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /snap/bin/cmake --build /home/som/projs/ams/nrf9160/ncs/nrf/samples/peripheral/lpuart/build