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] Compilation/linking error: arm-none-eabi, undefined reference to _exit / _kill / _getpid #10902
Comments
I do get warnings for missing $ qmk setup
Ψ Found qmk_firmware at /home/timvisee/git/timvisee-qmk_firmware.
Would you like to set /home/timvisee/git/timvisee-qmk_firmware as your QMK home? [y/n] y
Ψ Wrote configuration to /home/timvisee/.config/qmk/qmk.ini
Ψ QMK Doctor is checking your environment.
Ψ Detected Linux.
⚠ Missing udev rules for 'atmel-dfu' boards. See https://docs.qmk.fm/#/faq_build?id=linux-udev-rules for more details.
⚠ Missing udev rules for 'kiibohd' boards. See https://docs.qmk.fm/#/faq_build?id=linux-udev-rules for more details.
⚠ Missing udev rules for 'stm32' boards. See https://docs.qmk.fm/#/faq_build?id=linux-udev-rules for more details.
⚠ Missing udev rules for 'bootloadhid' boards. See https://docs.qmk.fm/#/faq_build?id=linux-udev-rules for more details.
⚠ Missing udev rules for 'usbasploader' boards. See https://docs.qmk.fm/#/faq_build?id=linux-udev-rules for more details.
⚠ Missing udev rules for 'massdrop' boards. See https://docs.qmk.fm/#/faq_build?id=linux-udev-rules for more details.
⚠ Detected ModemManager without the necessary udev rules. Please either disable it or set the appropriate udev rules if you are using a Pro Micro.
⚠ Missing udev rules for 'caterina' boards. See https://docs.qmk.fm/#/faq_build?id=linux-udev-rules for more details.
Ψ QMK home: /home/timvisee/git/timvisee-qmk_firmware
Ψ All dependencies are installed.
Ψ Found arm-none-eabi-gcc version 9.2.1
Ψ Found avr-gcc version 5.4.0
Ψ Found avrdude version 6.3-20171130
Ψ Found dfu-util version 0.9
Ψ Found dfu-programmer version 0.6.1
Ψ Submodules are up to date.
Ψ Problems detected, please fix these problems before proceeding. |
I got the same problem for another keyboard, but I could solve it. Simple set CONSOLE_ENABLE = yes and it compiled fine for me. |
This doesn't seem to solve it for me, sadly. I keep getting the same error. |
I tried it on QMK version 0.11.3 and the default layout compiled fine for me. Do you have the most recent version? |
Still doesn't seem to work, unless I'm missing something. This is version Here's a recording: https://asciinema.org/a/2PRRXrCnNGR0vTEwk4OwnukFD |
Have you got your code floating around on github somewhere? |
It's available at my fork on https://github.com/timvisee/qmk_firmware/. I'm on the git clone https://github.com/timvisee/qmk_firmware.git qmk-timvisee
cd qmk-timvisee
git checkout user-timvisee The keymap I'm using is at |
I have tested it with your fork. After changing CONSOLE_ENABLE = yes to no in the keyboards rules.mk the build worked fine for me. Compiler version: 10.2.0 on Manjaro. It seems to be caused by defining NO_PRINT in combination with TERMINAL_ENABLE = yes. Same for my compile on the ZSA fork which uses QMK Firmware 19 AUTO_SHIFT_ENABLE = yes and NO_PRINT defined. Same thing happens for your build when autoshift is enabled. |
@DerGeist Thanks. It appears I set Changing This does still seem like it is a bug though. I might open a new issue for this specific issue (the compilation failure for Ergodox Infinity with |
Similar error codes when trying to compile cKeys' Handwire101 keyboard. Removing Though just running I'm not going in depth to actually fix this, as it works enough for me now - but figured I'd add any info to this issue to help you or future peoples. |
Same thing for the Moonlder and Planck compiling on the ZSA fork when TERMINAL_ENABLE or AUTO_SHIFT_ENABLE but in my case only if NO_PRINT is defined. In my case by setting COMMAND_ENABLE = no. |
The flags in rules file is what worked for me! |
@timvisee I just encountered this on a fresh Gentoo install. Although it took a little elbow grease to get the toolchain working to compile any ARM keymaps without linkage errors related to hard/soft float, it was working until I added my fork. Re: what @tzarc said, I have a silly TESTING macro that utilizes Re: what @julowe said, if I leave the I've chosen to just leave it commented out for now as it's just not that important to me. I'm not sure that anything changed recently as I am able to build None of the other Sorry if none of this is useful to you. |
Today I tried compiling with just Edit: RAW_ENABLE still works, just the program on desktop-side stopped working |
Would be great if people striking this issue can have a go with #11573 applied. It's currently targeting ARM builds using ChibiOS as the HAL -- I don't have a newer AVR setup to validate any sort of failures. |
Works for me! For completeness: NB: And yes, |
Should now be fixed on |
Describe the Bug
I'm getting an error during compilation/linking. My qmk installation is up-to-date as far as I can see, and my system is up-to-date as well.
Any ideas what is going on?
System Information
Additional Context
This seems related: #9309
The text was updated successfully, but these errors were encountered: