Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103922 - sys-devel/gcc-3.4.4-r1 fails to compile on amd64, ld error
Summary: sys-devel/gcc-3.4.4-r1 fails to compile on amd64, ld error
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-27 07:58 UTC by Allan Wang
Modified: 2005-12-12 07:07 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Wang 2005-08-27 07:58:03 UTC
It seems to error on the 32-bit compile of gcc.

./xgcc -B./ -B/usr/x86_64-pc-linux-gnu/bin/ -isystem
/usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include
-L/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/../ld -O2  -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -fPIC -DHAVE_SYSLOG -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED  -D_LIBC_PROVIDES_SSP_ -I. -I.
-I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc
-I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/.
-I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/../include   -DL_floatdidf -c
/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcc2.c -o libgcc/32/_floatdidf.o
( ` if [ -f ./nm ] ; then echo ./nm ; elif [ -f
/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/../binutils/nm-new ] ; then echo
/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/../binutils/nm-new ; else if [
"x86_64-pc-linux-gnu" = "x86_64-pc-linux-gnu" ] ; then echo nm; else t='s,y,y,';
echo nm | sed -e  ; fi; fi` -pg libgcc/32/_floatdidf.o | gawk 'NF == 3 && $2 !~
/^[UN]$/ { print "\t.hidden", $3 }'; cat libgcc//stacknote.s ) |  ./xgcc -B./
-B/usr/x86_64-pc-linux-gnu/bin/ -isystem /usr/x86_64-pc-linux-gnu/include
-isystem /usr/x86_64-pc-linux-gnu/sys-include
-L/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/../ld -O2  -DIN_GCC  -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -fPIC -DHAVE_SYSLOG -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED  -D_LIBC_PROVIDES_SSP_  -m32 -r -nostdinc -nostdlib -o
libgcc/32/_floatdidf.oS libgcc/32/_floatdidf.o -xassembler -
/usr/x86_64-pc-linux-gnu/bin/ld: Relocatable linking with relocations from
format elf64-x86-64 (libgcc/32/_floatdidf.o) to format elf32-i386
(libgcc/32/_floatdidf.oS) is not supported
collect2: ld returned 1 exit status
make[3]: *** [libgcc/32/_floatdidf.oS] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[1]: *** [stagefeedback_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1214, Exitcode 2
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.

Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre6
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -ffast-math"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/kde/devel/env /usr/kde/devel/share/config /usr/kde/devel/shutdown
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks multilib-strict prelink sfperms
strict"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://gentoo.osuosl.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/php /usr/local/overlays/kde-live
/usr/local/overlays/bmg-main /usr/local/portage"
SYNC="rsync://rsync5.us.gentoo.org/gentoo-portage/"
USE="amd64 X aalib alsa apache2 avi bash-completion bitmap-fonts bzip2 cairo cdb
cdr crypt cups curl dvd dvdr dvdread eds encode ffmpeg firefox flac foomaticdb
freetype gamin gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal howl imagemagick
imlib java jpeg jpg kde kdeenablefinal kernel_linux libwww lzw lzw-tiff mad
matroska mikmod motif mozilla mp3 mpeg mpeg4 ncurses nls nptl nptlonly offensive
ogg oggvorbis opengl oss pam pcre pdflib perl php png postgres python qt
quicktime readline real ruby samba sdl spell sqlite ssl subversion svg tcpd
theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vhosts
vorbis xine xinerama xml xml2 xpm xv zlib"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 1 Chipster 2005-08-31 06:43:49 UTC
D__GCC_FLOAT_NOT_NEEDED  -D_LIBC_PROVIDES_SSP_ -I. -I.
-I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc
-I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/.
-I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/../include   -DL_ashldi3 -c
/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcc2.c -o libgcc/./_ashldi3.o
( ` if [ -f ./nm ] ; then echo ./nm ; elif [ -f
/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/../binutils/nm-new ] ; then echo
/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/../binutils/nm-new ; else if [
"x86_64-pc-linux-gnu" = "x86_64-pc-linux-gnu" ] ; then echo nm; else t='s,y,y,';
echo nm | sed -e  ; fi; fi` -pg libgcc/./_ashldi3.o | gawk 'NF == 3 && $2 !~
/^[UN]$/ { print "\t.hidden", $3 }'; cat libgcc//stacknote.s ) |  ./xgcc -B./
-B/usr/x86_64-pc-linux-gnu/bin/ -isystem /usr/x86_64-pc-linux-gnu/include
-isystem /usr/x86_64-pc-linux-gnu/sys-include
-L/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/../ld -O2  -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -fPIC -DHAVE_SYSLOG -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED  -D_LIBC_PROVIDES_SSP_  -r -nostdinc -nostdlib -o
libgcc/./_ashldi3.oS libgcc/./_ashldi3.o -xassembler -
make[3]: *** Pas de r
Comment 2 Chipster 2005-08-31 06:43:49 UTC
D__GCC_FLOAT_NOT_NEEDED  -D_LIBC_PROVIDES_SSP_ -I. -I.
-I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc
-I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/.
-I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/../include   -DL_ashldi3 -c
/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/libgcc2.c -o libgcc/./_ashldi3.o
( ` if [ -f ./nm ] ; then echo ./nm ; elif [ -f
/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/../binutils/nm-new ] ; then echo
/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/../binutils/nm-new ; else if [
"x86_64-pc-linux-gnu" = "x86_64-pc-linux-gnu" ] ; then echo nm; else t='s,y,y,';
echo nm | sed -e  ; fi; fi` -pg libgcc/./_ashldi3.o | gawk 'NF == 3 && $2 !~
/^[UN]$/ { print "\t.hidden", $3 }'; cat libgcc//stacknote.s ) |  ./xgcc -B./
-B/usr/x86_64-pc-linux-gnu/bin/ -isystem /usr/x86_64-pc-linux-gnu/include
-isystem /usr/x86_64-pc-linux-gnu/sys-include
-L/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/../ld -O2  -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -fPIC -DHAVE_SYSLOG -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED  -D_LIBC_PROVIDES_SSP_  -r -nostdinc -nostdlib -o
libgcc/./_ashldi3.oS libgcc/./_ashldi3.o -xassembler -
make[3]: *** Pas de règle pour fabriquer la cible « libgcc/./_ashrdi3.o »,
nécessaire pour « libgcc/./_ashrdi3.oS ». Arrêt.
make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[2]: *** [stmp-multilib] Erreur 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[1]: *** [stagefeedback_build] Erreur 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make: *** [profiledbootstrap] Erreur 2

!!! ERROR: sys-devel/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1214, Exitcode 2
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.

Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mir.zyrianes.net/gentoo/"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 7zip X acpi alsa arts audiofile avi bash-completion berkdb
bitmap-fonts bonobo browserplugin bzip2 cdr crypt cups curl dvd eds encode esd
fam ffmpeg flac foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 gtkhtml
imagemagick imlib ipv6 java jpeg kde latex ldap libwww lzw lzw-tiff mad matroska
mikmod mozilla mp3 mpeg ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl
oss pam pdflib perl png python qt quicktime readline scanner sdl slang speex
spell ssl tcpd tetex tiff truetype-fonts type1-fonts unicode usb userlocales v4l
vorbis xine xml xml2 xmms xpm xv xvid xvidi zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 3 Ian Monroe 2005-09-05 20:19:44 UTC
I have a similar issue.

...
/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/xgcc -shared-libgcc
-B/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/ -nostdinc++
-L/var/tmp/portage/gcc-3.4.4-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/var/tmp/portage/gcc-3.4.4-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
/usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include
-shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/../../../lib64/crti.o
/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/crtbeginS.o  .libs/allocator.o
.libs/codecvt.o .libs/complex_io.o .libs/ctype.o .libs/debug.o
.libs/debug_list.o .libs/functexcept.o .libs/globals_locale.o .libs/globals_io.o
.libs/ios.o .libs/ios_failure.o .libs/ios_init.o .libs/ios_locale.o
.libs/limits.o .libs/list.o .libs/locale.o .libs/locale_init.o
.libs/locale_facets.o .libs/localename.o .libs/stdexcept.o .libs/strstream.o
.libs/tree.o .libs/allocator-inst.o .libs/concept-inst.o .libs/fstream-inst.o
.libs/ext-inst.o .libs/io-inst.o .libs/istream-inst.o .libs/locale-inst.o
.libs/locale-misc-inst.o .libs/misc-inst.o .libs/ostream-inst.o
.libs/sstream-inst.o .libs/streambuf-inst.o .libs/string-inst.o
.libs/valarray-inst.o .libs/wlocale-inst.o .libs/wstring-inst.o
.libs/atomicity.o .libs/codecvt_members.o .libs/collate_members.o
.libs/ctype_members.o .libs/messages_members.o .libs/monetary_members.o
.libs/numeric_members.o .libs/time_members.o .libs/basic_file.o
.libs/c++locale.o -Wl,--whole-archive ../libmath/.libs/libmath.a
../libsupc++/.libs/libsupc++convenience.a -Wl,--no-whole-archive 
-L/var/tmp/portage/gcc-3.4.4-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/var/tmp/portage/gcc-3.4.4-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-lm ../libmath/.libs/libmath.a -lm ../libsupc++/.libs/libsupc++convenience.a -lm
-L/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc -L/usr/x86_64-pc-linux-gnu/bin
-L/usr/x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/../../../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/../.. -L/lib/../lib64 -L/usr/lib/../lib64
-lgcc_s -lc -lgcc_s -lm -lgcc_s -lc -lgcc_s
/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc/crtendS.o
/usr/lib/gcc/x86_64-pc-linux-gnu/../../../lib64/crtn.o  -Wl,-O1
-Wl,--version-script=libstdc++-symbol.ver -Wl,-soname -Wl,libstdc++.so.6 -o
.libs/libstdc++.so.6.0.3
collect2: ld returned 1 exit status
make[4]: *** [libstdc++.la] Error 1
make[4]: Leaving directory
`/var/tmp/portage/gcc-3.4.4-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src'
...

Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20041102-r1, 2.6.12-ck5 x86_64)
=================================================================
System uname: 2.6.12-ck5 x86_64 AMD Athlon(tm) 64 Processor 3800+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 28 2005, 23:33:00)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks nostrip sandbox sfperms
strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.ndlug.nd.edu/pub/gentoo/"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnowex X aac alsa apache2 avi bash-completion berkdb bitmap-fonts
cdparanoia cdr crypt cups curl dga dvd dvdr dvdread encode esd faad fam ffmpeg
flac foomaticdb fortran gdbm ggi gif gnome gpm gstreamer gtk gtk2 imagemagick
imlib ipv6 jack java jpeg jpeg2k kde kipi libwww live lm_sensors lzw lzw-tiff
mad matroska mcal motif mozilla mozsvg mp3 mpeg mysql ncurses network nls nvidia
nvidida oav ogg oggvorbis opengl pam pdflib perl png pnp postgres python qt
quicktime readline real rtc ruby samba sdl snmp socks5 speex spell sqlite ssl
stream svg tcpd theora tiff truetype-fonts type1-fonts usb userlocales vorbis
wifi wmf xine xinerama xml xml2 xpm xprint xv xvid xvmc zeroconf zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 4 Ian Monroe 2005-09-05 22:28:21 UTC
Um, well my / drive was full. So disregard my problem.
Comment 5 SpanKY gentoo-dev 2005-10-05 18:35:17 UTC
it isnt a bug in binutils (ld)

as the error clearly indicates, libgcc/32/_floatdidf.o was wrongly built as 64bit
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2005-12-12 07:07:19 UTC
Anyone still running into this problem?