Bug 41336 - [LTO] Bootstrap failed on RHEL5/ia32 and RHEL5/ia64
Summary: [LTO] Bootstrap failed on RHEL5/ia32 and RHEL5/ia64
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: lto
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build, lto
Depends on: 38992
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-11 14:36 UTC by H.J. Lu
Modified: 2019-08-05 05:31 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2009-09-11 17:30:05


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2009-09-11 14:36:29 UTC
+++ 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
Comment 1 Richard Biener 2009-09-11 14:48:38 UTC
You need newer libelf.
Comment 2 jsm-csl@polyomino.org.uk 2009-09-11 15:51:02 UTC
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.

Comment 3 Steven Bosscher 2009-09-11 17:29:42 UTC
needs configure magician...
Comment 4 Steven Bosscher 2009-09-11 17:30:05 UTC
...but bug is real.
Comment 5 Diego Novillo 2009-09-28 16:24:25 UTC
Should be fixed now.  We now test for libelf features during configuration.  Please reopen if it still fails.