Bug 185340 - cannot compile ggc 4.x with gcc3
Summary: cannot compile ggc 4.x with gcc3
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: binutils
Version: 4.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 181409
TreeView+ depends on / blocked
 
Reported: 2006-03-13 20:38 UTC by ritz
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

Fixed In Version: RHBA-2006-0489
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-10 21:41:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
gcc 4.1.0 compile log (12.62 KB, text/plain)
2006-03-13 21:06 UTC, ritz
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2006:0489 0 normal SHIPPED_LIVE binutils bug fix update 2006-08-09 04:00:00 UTC

Description ritz 2006-03-13 20:38:38 UTC
Description of problem:
linker error while compiling gcc-4.x from source

Version-Release number of selected component (if applicable):
binutils-2.15.92.0.2-18
gcc-3.4.5-2
cpp-3.4.5-2
libgcc-3.4.5-2


How reproducible:
always

Steps to Reproduce:
1. Download gcc-4.x
2. Compile
3. Fails with internal error
  
Actual results:
Compile fails

Expected results:
Should compile


Additional info:
Works fine with RHEL4U2

binutils-2.15.92.0.2-15 
cpp-3.4.4-2
gcc-3.4.4-2
libgcc-3.4.4-2

Comment 3 ritz 2006-03-13 20:59:57 UTC
Error message

/usr/bin/ld: BFD 2.15.92.0.2 20040927 internal error, aborting at
../../bfd/elf32-i386.c line 2262 in elf_i386_relocate_section

/usr/bin/ld: Please report this bug.

log file attached


Comment 4 ritz 2006-03-13 21:06:35 UTC
Created attachment 126071 [details]
gcc 4.1.0 compile log

Comment 5 Daniel Villeneuve 2006-03-14 02:23:15 UTC
gcc-4.0.2 also compiles properly with binutils-2.16.1 and other packages from
RHEL4U3 (e.g. gcc-3.4.5-2).

Comment 12 Bob Johnson 2006-04-11 16:07:08 UTC
This issue is on Red Hat Engineering's list of planned work items 
for the upcoming Red Hat Enterprise Linux 4.4 release.  Engineering 
resources have been assigned and barring unforeseen circumstances, Red 
Hat intends to include this item in the 4.4 release.

Comment 13 Jakub Jelinek 2006-04-27 09:26:41 UTC
This regression seems to be caused by the
binutils-2.15.92.0.2-weak-size.patch
patch, added to fix #168316, IT#77962.

Comment 14 Jakub Jelinek 2006-04-27 10:00:41 UTC
I should note that what libstdc++-v3 does here is very fragile and haven't
been ever supported, only happens to work with some ld versions (and doesn't
work with most other ld versions).
One object has versioned symbol (in this case _ZNSt11char_traitsIcE2eqERKcS2_)
@@GLIBCXX_3.4.5 and @GLIBCXX_3.4, another one exports the same symbol (weak)
unversioned.  The reason why this works e.g. in gcc4 RHEL4 rpms is that
in RHEL4 gcc4 rpms compatibility.o (which has the versioned symbol) comes last,
while in upstream it comes before string-inst.o which defines the weak symbol.

Comment 19 Red Hat Bugzilla 2006-08-10 21:41:07 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0489.html



Note You need to log in before you can comment on or make changes to this bug.