RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 978572 - Building GCC 4.6.2 - ld: stubs don't match calculated size
Summary: Building GCC 4.6.2 - ld: stubs don't match calculated size
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: binutils
Version: 6.4
Hardware: ppc64
OS: Linux
medium
urgent
Target Milestone: rc
: ---
Assignee: Patsy Griffin
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks: 1023566 1056252
TreeView+ depends on / blocked
 
Reported: 2013-06-26 20:26 UTC by Russell Harper
Modified: 2014-03-05 14:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-04 22:55:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Russell Harper 2013-06-26 20:26:36 UTC
Description of problem:

Trying to update gcc 4.4.7 to gcc 4.6.2.

During the build of gcc, this error occurs:

> rpmbuild -ba rpmbuild/SPECS/gcc.spec

/home/u0013225/rpmbuild/BUILD/gcc-4.6.2-20111027/obj-ppc64-redhat-linux/gcc64   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H  -o cc1 c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o rs6000-c.o \
	  cc1-checksum.o main.o  libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a  -lmpc -lmpfr -lgmp -ldl -rdynamic -ldl  -lz
stubs don't match calculated size
/usr/bin/ld: can not build stubs: Invalid operation
collect2: ld returned 1 exit status

There is an existing bug report Bug 728201 for Fedora 16 where this problem has been reported fixed in RPM binutils-2.21.53.0.1-2.fc16.src.rpm - that RPM was installed and built successfully.

Version-Release number of selected component (if applicable):

gcc 4.4.7 being used to build gcc 4.6.2.

How reproducible:

Unknown. I'm using a Power7 VM from IBM via their VLP.

Steps to Reproduce:

A basic summary:

1. wget -c http://mirror.optus.net/fedora/linux/releases/16/Fedora/source/SRPMS/binutils-2.21.53.0.1-2.fc16.src.rpm
2. wget -c http://mirror.optus.net/fedora/linux/releases/16/Fedora/source/SRPMS/gcc-4.6.2-1.fc16.src.rpm
3. rpm -Uvh binutils-2.21.53.0.1-2.fc16.src.rpm
4. rpm -Uvh gcc-4.6.2-1.fc16.src.rpm
5. QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild -ba ~/rpmbuild/SPECS/binutils.spec
6. rpm -Uvh ~/rpmbuild/RPMS/ppc64/binutils-*
7. rpmbuild -ba ~/rpmbuild/SPECS/gcc.spec

[At step 5, other RPMs may need to be installed, e.g. elfutils-devel elfutils-libelf-devel graphviz libmpc-devel gtk2-devel glib2-devel libart_lgpl-devel libXtst-devel libXt-devel mock createrepo pigz python-decoratortools ...]

Actual results:

Unsuccessful compilation.

stubs don't match calculated size
/usr/bin/ld: can not build stubs: Invalid operation
collect2: ld returned 1 exit status

Expected results:

Successful compilation.

Additional info:

Comment 2 Jeff Law 2014-03-04 22:55:47 UTC
If I'm reading this correctly, you ran into this error using binutils-2.21.53.0.1-2 which you fetched from Fedora 16's source repository, correct?

If so, you should upgrade to a newer binutils.  2.21.53.0.1-6 was fixed in late 2011 and includes a fix for this problem.  The fix for this problem also appeared in an errata for Red Hat Enterprise Linux 6 which shipped in June 2012.


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