William Harrington wrote: > Greetings, > > In chapter 5 binutils, --disable-werror exists and the explanation is > there. > > However, in chapter 6, if someone is using optimizations, O3 > specifically, the build will fail without using --disable-werror. > > https://bugzilla.redhat.com/show_bug.cgi?id=918189 > > The bug comments state that O3 aggressive inlining is the culprit.
Section 6.1. Introduction We do not recommend using optimizations. They can make a program run slightly faster, but they may also cause compilation difficulties and problems when running the program. If a package refuses to compile when using optimization, try to compile it without optimization and see if that fixes the problem. Even if the package does compile when using optimization, there is the risk it may have been compiled incorrectly because of the complex interactions between the code and build tools. Also note that the -march and -mtune options using values not specified in the book have not been tested. This may cause problems with the toolchain packages (Binutils, GCC and Glibc). The small potential gains achieved in using compiler optimizations are often outweighed by the risks. I think users who change the optimization to something other than what's in the book are on their own. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page