-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
Doesn't compile with avrgcc 10.3.0 in Arch GNU/Linux #93
Comments
Yes I know, the size is too large. And I have no clue what was changed in the last versions. Maybe we can improve by enabling a magic compiler switch I do not know yet :-/ |
@anatol can you maybe help here? Do you know of any major gcc change that causes bootloaders to compile with larger sizes? |
I do not know what change can affect it. But let's see what can be found here. Is the problem that If yes then I wonder if |
Also I am about to push |
It seams that gcc-5.4 and gcc-10.3 produce almost the same output. The only Edit (by nicohood): |
I want to note, that this error happens when the size is larger than those defined 4kb. You can edit the makefile and set it to 5kb and it will compile fine. However the bootloader will of course not work. I thought that the original reason was that the newer gcc produces are larger output binary which breaks the linking afterwards. Looking at the map file I can see more debug entries. But I have no idea if that is relevant: |
Sorry for my prediction there is no difference between the output of the two gcc versions. |
Note: Use |
Did you manage to solve this flash issue? |
After multiple tries in vain with different optimization options and avr-gcc-12.0.1, I decided to create However getting the pkgbuilt to compile with recent gcc-versions was a lot of work. Since I don't have the permissions to maintain the repository owned by another maintainer in the aur, I temporarily created a fork that contains my changes on github. |
You have opened a merge request, but you rather want to orphan it. I am a trusted user, so I did that for you. You can now take ownership over the package and push your changes. Sounds like a good plan. I guess you have spend tons of time in research why it does not work. I am still wondering why this is so difficult. That is really a pity, as when gcc versions move on, we will no longer be able to compile this package. This is somehow a downgrade from older versions, which should not happen. Can't we open a bug report at the gcc compiler? Maybe the guys there know it better? |
Compiling Hoodloader2 with avrgcc version 10.3.0 results in the error:
make
[INFO] : Begin compilation of project "HoodLoader2"...
avr-gcc (GCC) 10.3.0
Copyright (C) 2020 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.
[LNK] : Linking object files into "HoodLoader2.elf"
avr-gcc obj/HoodLoader2.o obj/Descriptors.o obj/BootloaderAPI.o obj/BootloaderAPITable.o obj/HID>
/usr/bin/avr-ld: section .apitable_trampolines LMA [0000000000003fa0,0000000000003fb7] overlaps >
collect2: error: ld returned 1 exit status
make: *** [../lufa/LUFA/Build/DMBS/DMBS/gcc.mk:251: HoodLoader2.elf] Fehler 1
The text was updated successfully, but these errors were encountered: