Summary: | dev-embedded/raspberrypi-utils-0_p20240203 fails to compile with LTO | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jakub Bidžan <jakub> |
Component: | Current packages | Assignee: | James Le Cuirot <chewi> |
Status: | CONFIRMED --- | ||
Severity: | major | CC: | batyiev, chewi, jakub |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | ARM64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: |
emerge --info and build log of raspberrypi-utils
proposed fix |
Please try without LTO. I did try with only -O2 and -pipe and got same reult(In reply to Sam James from comment #1) > Please try without LTO. tried with only -O2 and -pipe and got the same result (In reply to Jakub Bidžan from comment #2) > tried with only -O2 and -pipe and got the same result Really? I only get this when I use -flto. (In reply to Jakub Bidžan from comment #2) > I did try with only -O2 and -pipe and got same reult(In reply to Sam James > from comment #1) > > Please try without LTO. > > tried with only -O2 and -pipe and got the same result In general, you should give the log for the most simple build failure. I've had a look, but I don't know how to deal with this one. Seems like an odd case. Maybe someone with more LTO experience will have a better idea. Created attachment 889082 [details, diff] proposed fix I've made a fix and created an issue in upstream tracker: https://github.com/raspberrypi/utils/issues/75 The problem is that LTO aggressively removes sections from object files. |
Created attachment 886805 [details] emerge --info and build log of raspberrypi-utils This package fails to compile on a raspberry pi 5 (Cortex-A76 CPU). Attaching complete build-log and emerge --info