#Wiki page about LTO needs updating - help needed!

1 messages ยท Page 1 of 1 (latest)

clear cedar
#

hi. the wiki page about LTO recommends (https://wiki.gentoo.org/wiki/LTO#Enable_LTO) putting some flags to have the compiler throw errors on some C/C++ warnings. This was recently added, and wasn't there when I last checked some months ago.

In the last bit (https://wiki.gentoo.org/wiki/LTO#Disable_LTO_per_Package) it tells you that while waiting for an upstream fix, you should disable LTO for that package, and recommends adding a nolto.conf for it. This file doesn't remove the flags, so the package still doesn't compile. How can I edit the article so that the file removes the warning flags too?

Bonus points: I want to explain in detail what the lto flag means. Because if you read the description, it would seem to enable lto, but that's apparently not the case. In the Toolchain/LTO page this is even referenced in the context of making it more clear.

LTO
fickle wolf
#

I think putting the warning flags as a extra step to do if you want to gentoo better is the fix here

#

I understand why they added it but that page is more about using lto on stable

burnt tapir
fickle wolf
#

(just for future note please use #wiki for stuff like this as we only caught it by chance and this is a very well thought out problem so we would love to see you get more involved to push us all to reach your standard when discussing wiki issues)

clear cedar
fickle wolf
#

basically those flags flag up issues that would normally compile if not set

#

make sense?

#

basically you are telling the compiler to not hide issues from you

clear cedar
#

yeah, i got that! what i'm missing is the why wuold i want this especially for lto, and how much are those errors a problem on their own

#

i'm not really a programmer, i don't know what violating the one definition rule even means ๐Ÿ˜…

#

in any case, what could be a nolto.conf that prevents the previously set flags from appearing?

fickle wolf
#

As a normal user you would run this to help find bugs to report back to gentoo