-
-
Notifications
You must be signed in to change notification settings - Fork 40.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Multiple definitions of pmw33xx_pointing_device_driver' #24810
Comments
Don't use CFLAGS in the command line. It breaks things, as even with "+=", it actually just replaces it, completely. Eg, it wipes out any values that have been assigned to it previously. Add it to a |
Strangely enough I got "arm-none-eabi-gcc (Gentoo 14.2.1_p20241221 p7) 14.2.1 20241221" on another machine and it works. Still needs I will give it a try with CFLAGS in rules.mk on the machine where it's not working later. |
Actually this looks like a bug in qmk_firmware/drivers/sensors/pmw33xx_common.h Line 108 in 26f898c
The extern keyword is missing from the declaration, therefore it is actually recognized as a “tentative definition” in every compilation unit that includes pmw33xx_common.h . Normally CFLAGS += -fcommon added in builddefs/common_rules.mk should hide that problem; maybe you are losing that flag due to some broken override of CFLAGS , or the handling of -fcommon for const data changed in GCC 14.
|
I think the first thing is the case. |
Describe the Bug
When compiling the tractyl manuform with the default keymap I get a whole bunch of
also for
during linking.
I think this is due to the new gcc 14 that I am using, though I haven't tested it with an earlier version of gcc yet. Edit: Yes, gcc 8.50 works
When compiling with
CFLAGS+="-lc -specs=nosys.specs -Wl,--allow-multiple-definition"
it works.Where I put in
-lc -specs=nosys.specs
because of #19071Here is the whole build log of
qmk compile -kb handwired/tractyl_manuform/5x6_right/f411 -km default -e CFLAGS+="-lc -specs=nosys.specs" > build.log
https://bpa.st/37IQ
Keyboard Used
Tractyl Manuform
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
The text was updated successfully, but these errors were encountered: