Cannot compile LVGL 9.2.2 on ESP32-S3

Description

I cannot get lvgl 9.2.2 to compile on a ESP32-S3.

What MCU/Processor/Board and compiler are you using?

Waveshare ESP32-S3-Touch-LCD-7 (800*480)
VScode / Platformio / Arduino

What LVGL version are you using?

9.2.2

What do you want to achieve?

Use LVGL on this board.

What have you tried so far?

Code to reproduce

This is my platformio.ini:

[env:esp32dev]
platform = espressif32@6.4.0
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
board_build.arduino.memory_type = qio_opi
board_build.flash_mode = qio
board_upload.flash_size = 8MB
board_upload.maximum_size = 8388608
board_build.extra_flags = -DBOARD_HAS_PSRAM

lib_deps = lvgl/lvgl @ 9.2.2

I do not even need to include lvgl in the main file, as soon as it is there as libdep, it doesn’t compile.
Therefore the main file is just a “Hullo Wurld” to Serial.
If i comment lvgl from libdeps, it compiles.

It compiles normally until:

Compiling .pio\build\esp32dev\liba12\lvgl\draw\sw\lv_draw_sw_fill.c.o
Compiling .pio\build\esp32dev\liba12\lvgl\draw\sw\lv_draw_sw_gradient.c.o

then comes a yellow line:

...\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\machine\_default_types.h: Assembler messages:

then a flood of errors saying all the same (different file names and line numbers):

...\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\machine\_default_types.h:41: Error: unknown opcode 
or format name 'typedef'

LVGL 8.1

lvgl 8.1 throws a few warnings but it builds, only, I would really like to have 9.2.2, so I can reuse code from another project.

 warning: assignment discards 'const' qualifier from pointer target type

Any hint?

Edit: Sorry, was in How-to category, but I think it’s gotta be here.