adding lvgl to thing53 breaks building

im trying to develop a prototype that uses a thingy53 and lvgl to draw a screen on a solomon ssd1306 attached via i2c (kwiic) but am having issues with getting it to build

im using v2.91 SDK and toolchain  installed via nRF Connect Extension


after various failed attempts

i created a blank new application

with a board target thingy53/nrf5340/cpuapp which builds with only warnings


if i add proj.conf with  CONFIG_LVGL=y  the build breaks

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[291/367] Building C object modules/lvgl/CMakeFiles/modules__lvgl.dir/lvgl.c.obj
FAILED: modules/lvgl/CMakeFiles/modules__lvgl.dir/lvgl.c.obj
ccache /home/fireblade/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DLV_CONF_INCLUDE_SIMPLE=1 -DLV_CONF_PATH=/home/fireblade/ncs/v2.9.1/zephyr/modules/lvgl/include/lv_conf.h -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/fireblade/test/simple/build/simple/zephyr/include/generated/zephyr -I/home/fireblade/ncs/v2.9.1/zephyr/include -I/home/fireblade/test/simple/build/simple/zephyr/include/generated -I/home/fireblade/ncs/v2.9.1/zephyr/soc/nordic -I/home/fireblade/ncs/v2.9.1/zephyr/soc/nordic/nrf53/. -I/home/fireblade/ncs/v2.9.1/zephyr/soc/nordic/common/. -I/home/fireblade/ncs/v2.9.1/zephyr/subsys/usb/device -I/home/fireblade/ncs/v2.9.1/zephyr/drivers/usb/common/nrf_usbd_common/. -I/home/fireblade/ncs/v2.9.1/nrf/include -I/home/fireblade/ncs/v2.9.1/nrf/tests/include -I/home/fireblade/ncs/v2.9.1/modules/hal/cmsis/CMSIS/Core/Include -I/home/fireblade/ncs/v2.9.1/zephyr/modules/cmsis/. -I/home/fireblade/ncs/v2.9.1/modules/hal/nordic/nrfx -I/home/fireblade/ncs/v2.9.1/modules/hal/nordic/nrfx/drivers/include -I/home/fireblade/ncs/v2.9.1/modules/hal/nordic/nrfx/mdk -I/home/fireblade/ncs/v2.9.1/zephyr/modules/hal_nordic/nrfx/. -I/home/fireblade/ncs/v2.9.1/modules/lib/gui/lvgl/src -I/home/fireblade/ncs/v2.9.1/zephyr/modules/lvgl/include -isystem /home/fireblade/ncs/v2.9.1/zephyr/lib/libc/common/include -isystem /home/fireblade/ncs/v2.9.1/nrfxlib/crypto/nrf_cc312_platform/include -Os -DNDEBUG -fno-strict-aliasing -Os -imacros /home/fireblade/test/simple/build/simple/zephyr/include/generated/zephyr/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=/home/fireblade/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/fireblade/ncs/v2.9.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/fireblade/test/simple=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/fireblade/ncs/v2.9.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/fireblade/ncs/v2.9.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT modules/lvgl/CMakeFiles/modules__lvgl.dir/lvgl.c.obj -MF modules/lvgl/CMakeFiles/modules__lvgl.dir/lvgl.c.obj.d -o modules/lvgl/CMakeFiles/modules__lvgl.dir/lvgl.c.obj -c /home/fireblade/ncs/v2.9.1/zephyr/modules/lvgl/lvgl.c
In file included from /home/fireblade/ncs/v2.9.1/zephyr/include/zephyr/arch/arm/arch.h:20,
from /home/fireblade/ncs/v2.9.1/zephyr/include/zephyr/arch/cpu.h:19,
from /home/fireblade/ncs/v2.9.1/zephyr/include/zephyr/kernel_includes.h:36,
from /home/fireblade/ncs/v2.9.1/zephyr/include/zephyr/kernel.h:17,
from /home/fireblade/ncs/v2.9.1/zephyr/modules/lvgl/lvgl.c:8:
/home/fireblade/ncs/v2.9.1/zephyr/include/zephyr/devicetree.h:2729:32: error: 'DT_CHOSEN_zephyr_display_P_width' undeclared here (not in a function); did you mean 'DT_CHOSEN_zephyr_sram_EXISTS'?
2729 | #define DT_CHOSEN(prop) DT_CAT(DT_CHOSEN_, prop)
| ^~~~~~~~~~
/home/fireblade/ncs/v2.9.1/zephyr/include/zephyr/devicetree.h:4879:29: note: in definition of macro 'DT_CAT3'
4879 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
| ^~
/home/fireblade/ncs/v2.9.1/zephyr/modules/lvgl/lvgl.c:34:24: note: in expansion of macro 'DT_PROP'
34 | #define DISPLAY_WIDTH DT_PROP(DISPLAY_NODE, width)
| ^~~~~~~
/home/fireblade/ncs/v2.9.1/zephyr/include/zephyr/devicetree.h:2729:25: note: in expansion of macro 'DT_CAT'
2729 | #define DT_CHOSEN(prop) DT_CAT(DT_CHOSEN_, prop)
| ^~~~~~
/home/fireblade/ncs/v2.9.1/zephyr/modules/lvgl/lvgl.c:28:22: note: in expansion of macro 'DT_CHOSEN'
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX