-
Notifications
You must be signed in to change notification settings - Fork 78
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
Linker fails on avr-gcc 8.4 & 9.3 #182
Comments
Yes, I've got the same issue, I'm investigating. |
I've found the issue, it was the |
Building succeeds again with the new bottles now - thanks for your hard work @ladislas :) |
Closes #184. Signed-off-by: Ladislas de Toldi <ladislas@detoldi.me>
@fauxpark How did you install with the new bottles? I tried reinstalling but I think it's just installing the same thing edit: never mind I think I erased the cashe and then it worked. |
@matsutakehoyo I think i have the same problem. May I ask you how you erased your cashe? |
@myraz when I tried to reinstall I got a prompt saying something like
I just when to the directory that Already downloaded points to, found the downloaded file and manually deleted it. I think Hope this helps |
|
@matsutakehoyo @ladislas . Thank you very much for the quick help! At first it did not work but after unlinking my old avr-gcc and relinking, it now works!
|
Yes, you cannot have two different versions of gcc linked at the same time. avr-gcc will by default me linked and available in path. If you want another version linked, you must unlink the main one and manually link a @x version. |
I tried the above suggestions but I got no success compiling.
|
@metropt have you tried |
@ladislas |
I've tried all of the above and still experiencing this issue. ❯ qmk setup benwoodward/qmk_firmware -b apple_fn_k320
Ψ Found qmk_firmware at /Users/ben/qmk_firmware.
Ψ QMK Doctor is checking your environment.
Ψ Detected macOS.
Ψ QMK home: /Users/ben/qmk_firmware
Ψ All dependencies are installed.
Ψ Found arm-none-eabi-gcc version 8.3.1
Ψ Found avr-gcc version 8.4.0
Ψ Found avrdude version 6.3
Ψ Found dfu-util version 0.10
Ψ Found dfu-programmer version 0.7.2
Ψ Submodules are up to date.
Ψ QMK is ready to go
❯ qmk compile -kb kbdfans/kbd75/rev2 -km default
Ψ Compiling keymap with make kbdfans/kbd75/rev2:default
QMK Firmware 0.11.43
Making kbdfans/kbd75/rev2 with keymap default
avr-gcc (Homebrew AVR GCC 8.4.0) 8.4.0
Copyright (C) 2018 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.
Linking: .build/kbdfans_kbd75_rev2_default.elf [ERRORS]
|
| /usr/local/opt/avr-binutils/bin/avr-ld: cannot find crtatmega32u4.o: No such file or directory
| /usr/local/opt/avr-binutils/bin/avr-ld: cannot find -latmega32u4
| collect2: error: ld returned 1 exit status
|
make[1]: *** [.build/kbdfans_kbd75_rev2_default.elf] Error 1
make: *** [kbdfans/kbd75/rev2:default] Error 1
Make finished with errors EDIT: Looks like the issue is perhaps because the EDIT: My workaround was to install brew remove avr-gcc@8
wget https://raw.githubusercontent.com/osx-cross/homebrew-avr/3f86697315aad66d6213e158e0c0af88dd6c241f/Formula/avr-gcc%408.rb
brew install avr-gcc@8.rb
brew link --overwrite --force avr-gcc@8 EDIT: Made a PR to reapply the fix: #206 EDIT: Actually, I'm still experiencing the error 😞 EDIT: OK, It does work, I just needed to remove So the full list of steps (if you have the same problem): brew uninstall --ignore-dependencies avr-binutils
brew uninstall --ignore-dependencies avr-gcc@8
wget https://raw.githubusercontent.com/osx-cross/homebrew-avr/3f86697315aad66d6213e158e0c0af88dd6c241f/Formula/avr-gcc%408.rb
brew install avr-gcc@8.rb
brew link --overwrite --force avr-gcc@8 |
yes, sorry for that! while working on the new bottle system, I took the opportunity to update the formula and follow what brew/core does. That's how I reintroduced the multilib thing... it will soon be fixed. |
Just as note both v9 and avr-gcc@10 have this problem:
I'm now trying this workaround:
|
This is fixed! 🎉 you can brew remove and brew install avr-gcc@8 again :) |
Good to know, for now the workaround worked for me and it takes a long time to recompile here so I'm leaving it. Any ideas when avr-gcc v9 and @10 will also get this fix? |
everything is fixed, you need to |
After updating to 8.4, avr-ld produces this error:
and when building for AT90USB1286:
The text was updated successfully, but these errors were encountered: