Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232879 - emerge gcc fails with "final link failed: Nonrepresentable section on output"
Summary: emerge gcc fails with "final link failed: Nonrepresentable section on output"
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-24 19:52 UTC by Martin Ehmsen (RETIRED)
Modified: 2009-05-05 06:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gcc-4.3.2-r3 build log (build.log,1.90 MB, text/plain)
2009-05-04 22:09 UTC, Jaak Ristioja
Details
gcc-4.3.2-r3 build log (gzipped) (build.log.gz,80.72 KB, text/plain)
2009-05-04 22:09 UTC, Jaak Ristioja
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Ehmsen (RETIRED) gentoo-dev 2008-07-24 19:52:11 UTC
After a profile update (I am not sure thats what caused the problem) I cannot emerge gcc, no matter what version I try. Other packages fail in a similar way, but a lot of packages work.

The error on updating to gcc-4.3.1-r1 is:

x86_64-pc-linux-gnu-gcc   -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common   -DHAVE_CONFIG_H -Wl,-O1 -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o  c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \
          main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lmpfr -lgmp
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: libbackend.a(tree-inline.o)(.text+0x40000097c7): reloc against `bsi_insert_after': error 2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status

I have tried to remerge binutils to see if the problem was /usr/x86_64-pc-linux-gnu/bin/ld, but without success. I have also tried switching profile, but none of the available profiles work (I even tried a non-multilib profile).

Reproducible: Always

Steps to Reproduce:




# emerge --info
Portage 2.2_rc1 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25.4 x86_64)
=================================================================
System uname: Linux-2.6.25.4-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5
Timestamp of tree: Wed, 23 Jul 2008 21:45:02 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r4, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl alac amd64 apache apache2 avahi berkdb bzip2 cli cracklib crypt cups dbus domainkeys dri dvd encode exiscan exiscan-acl ffmpeg firefox flac fortran gdbm gpm iconv imagemagick imap ipv6 isdnlog jpeg lame logrotate maildir mdnsresponder-compat midi mmx mp3 mpeg mudflap multilib mysql ncurses netpbm nls nntp nptl nptlonly ogg openmp pam pcre perl png pop3d pppd python readline reflection session spf spl sse sse2 ssl stream tcpd theora truetype unicode utf8 vhosts vorbis x264 xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martin Ehmsen (RETIRED) gentoo-dev 2008-09-13 15:16:58 UTC
Anyone have any insight into this?
Comment 2 SpanKY gentoo-dev 2009-02-15 23:06:09 UTC
try clearing your ccache and using gcc-4.3.3
Comment 3 Martin Ehmsen (RETIRED) gentoo-dev 2009-02-26 08:38:33 UTC
The box is gone, so I can't test that solution.
Since no other have had this problem I guess it was something I did :-)
Comment 4 Jaak Ristioja 2009-05-04 22:03:19 UTC
Please reopen. I got this too, but with 4.3.2-r3. I'll try 4.3.3-r2 right away.
Comment 5 Jaak Ristioja 2009-05-04 22:09:07 UTC
Created attachment 190359 [details]
gcc-4.3.2-r3 build log

Portage 2.1.6.11 (default/linux/amd64/2008.0/developer, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-hardened-r7-worship x86_64)
=================================================================                                                            
System uname: Linux-2.6.28-hardened-r7-worship-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5                      
Timestamp of tree: Mon, 04 May 2009 19:30:16 +0000                                                                           
app-shells/bash:     3.2_p39                                                                                                 
dev-lang/python:     2.5.4-r2                                                                                                
dev-util/cmake:      2.6.3-r1                                                                                                
sys-apps/baselayout: 1.12.11.1                                                                                               
sys-apps/sandbox:    1.6-r2                                                                                                  
sys-devel/autoconf:  2.13, 2.63                                                                                              
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                               
sys-devel/binutils:  2.18-r3                                                                                                 
sys-devel/gcc-config: 1.4.0-r4                                                                                               
sys-devel/libtool:   1.5.26                                                                                                  
virtual/os-headers:  2.6.28-r1                                                                                               
ACCEPT_KEYWORDS="amd64"                                                                                                      
CBUILD="x86_64-pc-linux-gnu"                                                                                                 
CFLAGS="-O2 -pipe -march=athlon64 -ggdb"                                                                                     
CHOST="x86_64-pc-linux-gnu"                                                                                                  
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"                     
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                                                                              
CXXFLAGS="-O2 -pipe -march=athlon64 -ggdb"                                                                                                                       
DISTDIR="/usr/portage/distfiles"                                                                                                                                 
FEATURES="collision-protect cvs distlocks fixpackages multilib-strict parallel-fetch protect-owned sandbox sfperms sign splitdebug strict unmerge-orphans userfetch usersandbox"                                                                                                                                                  
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ http://trumpetti.atm.tut.fi/gentoo/"                                                                   
LANG="en_US.UTF-8"                                                                                                                                               
LC_ALL="en_US.UTF-8"                                                                                                                                             
LDFLAGS="-Wl,-O1"                                                                                                                                                
LINGUAS="en et en_GB en_US de"                                                                                                                                   
MAKEOPTS="-j2"

Current USE flags:
  gcc: fortran gtk mudflap (multilib) openmp (-altivec) -bootstrap -build -doc* (-fixed-point) -gcj (-hardened) -ip28 -ip32r10k -libffi -multislot (-n32) (-n64) -nls -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla
  binutils: -multislot -multitarget -nls -test -vanilla
  libtool: -vanilla
Comment 6 Jaak Ristioja 2009-05-04 22:09:31 UTC
Created attachment 190360 [details]
gcc-4.3.2-r3 build log (gzipped)

Portage 2.1.6.11 (default/linux/amd64/2008.0/developer, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-hardened-r7-worship x86_64)
=================================================================                                                            
System uname: Linux-2.6.28-hardened-r7-worship-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5                      
Timestamp of tree: Mon, 04 May 2009 19:30:16 +0000                                                                           
app-shells/bash:     3.2_p39                                                                                                 
dev-lang/python:     2.5.4-r2                                                                                                
dev-util/cmake:      2.6.3-r1                                                                                                
sys-apps/baselayout: 1.12.11.1                                                                                               
sys-apps/sandbox:    1.6-r2                                                                                                  
sys-devel/autoconf:  2.13, 2.63                                                                                              
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                               
sys-devel/binutils:  2.18-r3                                                                                                 
sys-devel/gcc-config: 1.4.0-r4                                                                                               
sys-devel/libtool:   1.5.26                                                                                                  
virtual/os-headers:  2.6.28-r1                                                                                               
ACCEPT_KEYWORDS="amd64"                                                                                                      
CBUILD="x86_64-pc-linux-gnu"                                                                                                 
CFLAGS="-O2 -pipe -march=athlon64 -ggdb"                                                                                     
CHOST="x86_64-pc-linux-gnu"                                                                                                  
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"                     
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                                                                              
CXXFLAGS="-O2 -pipe -march=athlon64 -ggdb"                                                                                                                       
DISTDIR="/usr/portage/distfiles"                                                                                                                                 
FEATURES="collision-protect cvs distlocks fixpackages multilib-strict parallel-fetch protect-owned sandbox sfperms sign splitdebug strict unmerge-orphans userfetch usersandbox"                                                                                                                                                  
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ http://trumpetti.atm.tut.fi/gentoo/"                                                                   
LANG="en_US.UTF-8"                                                                                                                                               
LC_ALL="en_US.UTF-8"                                                                                                                                             
LDFLAGS="-Wl,-O1"                                                                                                                                                
LINGUAS="en et en_GB en_US de"                                                                                                                                   
MAKEOPTS="-j2"

Current USE flags:
  gcc: fortran gtk mudflap (multilib) openmp (-altivec) -bootstrap -build -doc* (-fixed-point) -gcj (-hardened) -ip28 -ip32r10k -libffi -multislot (-n32) (-n64) -nls -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla
  binutils: -multislot -multitarget -nls -test -vanilla
  libtool: -vanilla
Comment 7 Jaak Ristioja 2009-05-05 06:19:54 UTC
I just tried 4.3.3-r2 and it fails with the following messages:

Comparing stages 2 and 3
Bootstrap comparison failure!
./expmed.o differs

I don't know whether this is related to this bug, please advise.

PS: Sorry for the double build.log post - I guess bugzilla lies by not enforcing the file size limit (500Kb limit for patches, 1000Kb for other files).