samples/net/lwm2m_client does not anymore build on native_posix target.
Git bisecting shows:
9ceeb3a0ae0739bb3e5fba00b7d18eda343209ea is the first bad commit
commit 9ceeb3a0ae0739bb3e5fba00b7d18eda343209ea
Author: Kumar Gala <galak@kernel.org>
Date: Wed Jul 6 11:20:53 2022 -0500
samples: lwm2m_client: Convert to use gpio_dt_spec
Move sample to use gpio_dt_spec for GPIO access.
Signed-off-by: Kumar Gala <galak@kernel.org>
samples/net/lwm2m_client/src/lwm2m-client.c | 23 ++++++-----------------
1 file changed, 6 insertions(+), 17 deletions(-)
To Reproduce
Steps to reproduce the behavior:
cd samples/net/lwm2m_client
west build -b native_posix
Expected behavior
Should build normally.
Impact
Blocks testing on native_posix environment
Logs and console output
/usr/bin/ld: app/libapp.a(lwm2m-client.c.obj): in function `gpio_pin_set':
/home/seta/src/ncs/zephyr/include/zephyr/drivers/gpio.h:1265: undefined reference to `__device_dts_ord_25'
/usr/bin/ld: app/libapp.a(lwm2m-client.c.obj): in function `gpio_pin_set_raw':
/home/seta/src/ncs/zephyr/include/zephyr/drivers/gpio.h:1224: undefined reference to `__device_dts_ord_25'
/usr/bin/ld: app/libapp.a(lwm2m-client.c.obj): in function `z_impl_gpio_port_set_bits_raw':
/home/seta/src/ncs/zephyr/include/zephyr/drivers/gpio.h:995: undefined reference to `__device_dts_ord_25'
/usr/bin/ld: app/libapp.a(lwm2m-client.c.obj): in function `z_impl_gpio_port_clear_bits_raw':
/home/seta/src/ncs/zephyr/include/zephyr/drivers/gpio.h:1033: undefined reference to `__device_dts_ord_25'
/usr/bin/ld: app/libapp.a(lwm2m-client.c.obj): in function `z_impl_device_is_ready':
/home/seta/src/ncs/zephyr/include/zephyr/device.h:831: undefined reference to `__device_dts_ord_25'
/usr/bin/ld: app/libapp.a(lwm2m-client.c.obj):/home/seta/src/ncs/zephyr/include/zephyr/drivers/gpio.h:693: more undefined references to `__device_dts_ord_25' follow
collect2: error: ld returned 1 exit status
Environment (please complete the following information):
OS: Linux
Toolchain Zephyr SDK 0.14.2
Commit SHA or Version used: zephyr-v3.1.0-2630-g1c1c57b31b
Describe the bug
samples/net/lwm2m_client
does not anymore build onnative_posix
target.Git bisecting shows:
To Reproduce Steps to reproduce the behavior:
cd samples/net/lwm2m_client
west build -b native_posix
Expected behavior Should build normally.
Impact Blocks testing on native_posix environment
Logs and console output
Environment (please complete the following information):