Open stalkerg opened 1 year ago
-lc
& -specs=nosys.specs
cflags seems to "fix" this — so qmk compile -kb preonic/rev3_drop -km default -e CFLAGS+="-lc -specs=nosys.specs"
I suggest joining the QMK discord server and reading through this thread.
@waffle87 seems like QMK doesn't support the latest GCC, am I right? Do you have a ticket for such an issue?
GCC 12? It does. Bugs related to it have been fixed for some time now. qmk_firmware/17064 pico-sdk/840 (only relevant if using RP2040)
@waffle87 no, it's gcc 11
Fixed by:
qmk compile -kb preonic/rev3_drop -km default -e EXTRAFLAGS+="-U_FORTIFY_SOURCE"
It's needed because the Gentoo GCC, by default, enables the SSP (FORTIFY level 2) for any tasks with optimization. The current QMK printf implementation doesn't support overwiting the SSP version.
Describe the Bug
Just trying to build it, I see this errors:
Gcc for the arm was installed by
crossdev --stable -t arm-none-eabi -s4
Keyboard Used
preonic/rev3_drop
Link to product page (if applicable)
No response
Operating System
Gentoo Linux
qmk doctor Output
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
No response
Additional Context
No response