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] Planck EZ linking error: “collect2: error: ld returned 1 exit status” #9309
Comments
Your repo is quite out of date; the current tag is 0.9.7. Run |
@fauxpark That’s bad, thank you for pointing that out. As I mentioned above, I’ve setup my build environment using |
You don't have to, just |
You were right. After updating it compiles without problem!
|
So the issue came down to me not understanding how to keep my installation up to date. Let me mention again that I think this is poorly (not at all) explained in the documentation. I will create a separate issue over there. |
It's under the "Git Best Practices" section: https://docs.qmk.fm/#/newbs_git_using_your_master_branch |
I'm getting the same (or at least a similar) error. I'm using QMK 0.10.50. $ ~/.local/bin/qmk compile
Ψ Compiling keymap with gmake ergodox_infinity:timvisee
QMK Firmware 0.10.50
Making ergodox_infinity with keymap timvisee
arm-none-eabi-gcc (15:9-2019-q4-0ubuntu1) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiling: keyboards/ergodox_infinity/keymaps/timvisee/keymap.c [OK]
Compiling: quantum/process_keycode/process_terminal.c [OK]
Compiling: tmk_core/common/command.c [OK]
Linking: .build/ergodox_infinity_timvisee.elf [ERRORS]
|
| /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/thumb/v7e-m/nofp/libg.a(lib_a-abort.o): in function `abort':
| /build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/thumb/v7e-m/nofp/newlib/libc/stdlib/../../../../../../../../newlib/libc/stdlib/abort.c:59: undefined reference to `_exit'
| /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/thumb/v7e-m/nofp/libg.a(lib_a-signalr.o): in function `_kill_r':
| /build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/thumb/v7e-m/nofp/newlib/libc/reent/../../../../../../../../newlib/libc/reent/signalr.c:53: undefined reference to `_kill'
| /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/lib/thumb/v7e-m/nofp/libg.a(lib_a-signalr.o): in function `_getpid_r':
| /build/newlib-CVVEyx/newlib-3.3.0/build/arm-none-eabi/thumb/v7e-m/nofp/newlib/libc/reent/../../../../../../../../newlib/libc/reent/signalr.c:83: undefined reference to `_getpid'
| collect2: error: ld returned 1 exit status
|
gmake[1]: *** [tmk_core/rules.mk:306: .build/ergodox_infinity_timvisee.elf] Error 1
Make finished with errors
gmake: *** [Makefile:584: ergodox_infinity:timvisee] Error 1 I did pull in the newest changes and did run Any ideas? Edit: reported this in a new issue: #10902 |
I’m trying to compile the default keymap of the Planck EZ from the QMK repo.
Describe the Bug
This is the output of the build command:
When I tried to compile the first time, the output was a little longer (it successfully compiled a bunch of files beforehand), but the error message was the same.
System Information
I’ve setup my build environment using
pip install
. Package is up to date (version 0.0.35).Additional Context
I also tried to compile a few other default keymaps, all of which worked fine. So the issue is most likely related to this particular keyboard/keymap.
The text was updated successfully, but these errors were encountered: