InBetweenNames / gentooLTO

A Gentoo Portage configuration for building with -O3, Graphite, and LTO optimizations
GNU General Public License v2.0
571 stars 97 forks source link

lto-rebuild issue with: LTO version 11.2 instead of the expected 11.3 #843

Open StefanSalewski opened 2 years ago

StefanSalewski commented 2 years ago

I did a fresh Gentoo-Linux install, and when trying to switch to Gentoo-LTO I now get for

lto-rebuild -r

lto1: fatal error: bytecode stream in file '/usr/lib64/binutils/x86_64-pc-linux-gnu/2.37_p1/libiberty.a' generated with LTO version 11.2 instead of the expected 11.
3

A week ago, I did a fresh Gentoo install on a different notebook, and enabling GentooLTO gave no issues. maybe the problem is, that gcc 11.3 just became stable?

StefanSalewski commented 2 years ago

I found no better solution then just deleting the file /usr/lib64/binutils/x86_64-pc-linux-gnu/2.37_p1/libiberty.a as suggested in https://github.com/InBetweenNames/gentooLTO/issues/739.

Well it is recreated when we then emerge binutils again. Seems to work, I am just running emerge -e --keep-going @world.