+++ This bug was initially created as a clone of Bug #38992 +++ On RHEL5/ia32 and RHEL5/ia64, revision 151545 gave cc1: warnings being treated as errors ../../src-lto/gcc/lto/lto-elf.c: In function 'validate_file': ../../src-lto/gcc/lto/lto-elf.c:453:3: error: implicit declaration of function 'elf_getshdrstrndx' make[6]: *** [lto/lto-elf.o] Error 1
You need newer libelf.
Subject: Re: [LTO] Bootstrap failed on RHEL5/ia32 and RHEL5/ia64 On Fri, 11 Sep 2009, rguenth at gcc dot gnu dot org wrote: > You need newer libelf. This should result in a configure error, not an error at a later stage; it should disable LTO if libelf is too old and LTO is not explicitily requested, or give an error at configure time if LTO is explicitly requested but libelf is too old.
needs configure magician...
...but bug is real.
Should be fixed now. We now test for libelf features during configuration. Please reopen if it still fails.