When trying to compile everything, I get a error message complaining that a file called xxxxxx.lto.o is missing! For example, compiling mysql-5.1.49-r1: x86_64-pc-linux-gnu-g++: /var/tmp/portage/dev-db/mysql-5.1.49-r1/temp/ccQZPul8.lto.o: No such file or directory I'll attach full debugging output and emerge info. Reproducible: Always
Created attachment 241965 [details] compile log This is the output log
Created attachment 241967 [details] emerge --info output emerge --info
Is this common or do I have missconfigured something, because it seems to compile at least nothing with -flto
I can't compile amarok either (and possibly I can't compile anything). Am I wrong using it with -flto, is a gentoo issue? Because it is strange that gcc folks release something that does not work at all.. I'm missed!
As you probably know already, lto is a new feature to gcc 4.5 so you could easily be running into a gcc bug rather than a misconfiguration. For gcc 4.5.0 there were enough known issues that toolchain devs recommended not using lto -- assigning to toolchain team who can tell you whether lto is expected to work yet with gcc 4.5.1.
pretty sure this is not a gcc bug. i thought we already had a bug about this, but i cant find it ... long story short: dont use -flto in your make.conf settings
oop, found it ... it didnt have a cleaned up summary which is why i couldnt locate it ... *** This bug has been marked as a duplicate of bug 324107 ***