Bug 185340

Summary: cannot compile ggc 4.x with gcc3
Product: Red Hat Enterprise Linux 4 Reporter: ritz <rkhadgar>
Component: binutilsAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: amodra, tao
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2006-0489 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-10 21:41:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 181409    
Attachments:
Description Flags
gcc 4.1.0 compile log none

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