Build failure with newer GCC: unterminated string literal in mpy-cross compilation #417
gerogebubl
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
G’day,
I’ve used this LVGL+micropython script many times since I last got your help, and had no issues each time, with a variety of different boards. But this time, I ended up having this issue every time I tried to build, on both my desktop and laptop.
I spent some time trying to get this working (though I don’t really understand the issue), and eventually ended up adding “CWARN += -Wno-unterminated-string-initialization“ to the previously generated mpy-cross Makefile. After making this change, I was able to build and deploy to my board successfully.
I was apprehensive about whether I should mention this, as I don’t want to waste your time if it’s something intrinsic to my system, and thus not something others are likely to face; but from my meager understanding, it seems as though this could be an issue that others are likely to run into, so I figured I would share just in case.
The command I used (amongst variations) which failed repeatedly, until I made the aforementioned changes was:
"python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT"
The error I was getting was:
My gcc version is: 15.1.1 20250425
I am on manjaro (Linux 6.6.99-1-MANJARO)
Thanks heaps for the great work you continue to put into this project.
Beta Was this translation helpful? Give feedback.
All reactions