The problem lies in the fact that lv_micropython does not track a particular version of pico-sdk . It worked with pico-sdk 1.4.0 but since the new release of pico-sdk (at the moment 1.5.0) it stopped working.
Solution: after cloning the lv_micropython repository, change in the .gitmodules file to track the older pico-sdk:
Nope, it did not help. Or more exactly, it worked only once. I´m trying to reproduce the process to pinpoint where it fails.
The compilation fails at some point during the compilation of pico-sdk (with submodule tied to 1.4.0 branch):
Narrowing down the cause, it seems gcc version 10.2.1 20210110 (Debian 10.2.1-6) does not have this problem while the gcc12.something from Fedora does…
This is a problem in the PICO SDK and not in LVGL. Might help to ask the folks over at their repo about it. I would normally do that for you but I have ZERO experience with the PICO and the SDK so I wouldn’t even know what to say or how to say it. I think you would get faster help with it if you ask because you know more about what is happening then I do.