Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86123 - gcc-3.4.3.20050110-r1 doesn't compile on x86-64
Summary: gcc-3.4.3.20050110-r1 doesn't compile on x86-64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 86665 86975 87195 88769 91486 (view as bug list)
Depends on: 73729
Blocks:
  Show dependency tree
 
Reported: 2005-03-21 04:47 UTC by Raphael Jacquot
Modified: 2005-05-31 17:25 UTC (History)
10 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 Raphael Jacquot 2005-03-21 04:47:54 UTC
./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.3.20050110-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_ -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/32/libgcc.map -o 32/libgcc_s.so.1.tmp  -m32  libgcc/32/_muldi3.o libgcc/32/_negdi2.o libgcc/32/_lshrdi3.o libgcc/32/_ashldi3.o libgcc/32/_ashrdi3.o libgcc/32/_cmpdi2.o libgcc/32/_ucmpdi2.o libgcc/32/_floatdidf.o libgcc/32/_floatdisf.o libgcc/32/_fixunsdfsi.o libgcc/32/_fixunssfsi.o libgcc/32/_fixunsdfdi.o libgcc/32/_fixdfdi.o libgcc/32/_fixunssfdi.o libgcc/32/_fixsfdi.o libgcc/32/_fixxfdi.o libgcc/32/_fixunsxfdi.o libgcc/32/_floatdixf.o libgcc/32/_fixunsxfsi.o libgcc/32/_fixtfdi.o libgcc/32/_fixunstfdi.o libgcc/32/_floatditf.o libgcc/32/_clear_cache.o libgcc/32/_enable_execute_stack.o libgcc/32/_trampoline.o libgcc/32/__main.o libgcc/32/_absvsi2.o libgcc/32/_absvdi2.o libgcc/32/_addvsi3.o libgcc/32/_addvdi3.o libgcc/32/_subvsi3.o libgcc/32/_subvdi3.o libgcc/32/_mulvsi3.o libgcc/32/_mulvdi3.o libgcc/32/_negvsi2.o libgcc/32/_negvdi2.o libgcc/32/_ctors.o libgcc/32/_ffssi2.o libgcc/32/_ffsdi2.o libgcc/32/_clz.o libgcc/32/_clzsi2.o libgcc/32/_clzdi2.o libgcc/32/_ctzsi2.o libgcc/32/_ctzdi2.o libgcc/32/_popcount_tab.o libgcc/32/_popcountsi2.o libgcc/32/_popcountdi2.o libgcc/32/_paritysi2.o libgcc/32/_paritydi2.o libgcc/32/_stack_smash_handler.o libgcc/32/_divdi3.o libgcc/32/_moddi3.o libgcc/32/_udivdi3.o libgcc/32/_umoddi3.o libgcc/32/_udiv_w_sdiv.o libgcc/32/_udivmoddi4.o  libgcc/32/unwind-dw2.o libgcc/32/unwind-dw2-fde-glibc.o libgcc/32/unwind-sjlj.o libgcc/32/gthr-gnat.o libgcc/32/unwind-c.o -lc && rm -f libgcc_s_32.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f 32/libgcc_s.so.1 32/libgcc_s.so.1.backup; else true; fi && mv 32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s 32/libgcc_s.so.1 libgcc_s_32.so
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s_32.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.3.20050110-r1 failed.
!!! Function gcc_do_make, Line 1165, Exitcode 2
!!! make failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 SpanKY gentoo-dev 2005-03-21 05:55:38 UTC
multilib bug
Comment 2 Herbie Hopkins (RETIRED) gentoo-dev 2005-03-21 15:29:56 UTC
Please paste the output of emerge info. What version of emul-linux-x86-glibc do you have installed?
Comment 3 Gian-Carlo Pascutto 2005-03-21 15:32:06 UTC
I have the same problem:

gentoo64 ~ # emerge info
Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20050125-r1, 2.6.11.3 x86_64)
=================================================================
System uname: 2.6.11.3 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 20 2005, 20:12:05)]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r6
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -fomit-frame-pointer -march=k8 -fno-inline-functions"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/lib/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="-O3 -pipe -fomit-frame-pointer -march=k8 -fno-inline-functions"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac acpi alsa apache2 arts audiofile avantgo berkdb bitmap-fonts bluetooth bonobo boundschecking bzlib c++ ccache cdparanoia cdr chroot cjk clamav clanJavaScript clanVoice codecs crypt cscope cups curl dcc dga directfb doc dts dvd dvdr dvdread emacs emoticon erandom esd exif faac faad fam fftw firefox flac font-server foreign-package fortran freetts freetype ftp gcj gdbm gif gimp gnokii gnomedb gnuplot gphoto2 gpm gprof gs gstreamer gtk gtkhtml hal iconv icq idea imagemagick imlib ipv6 irmc j2ee java javacomm javadoc jce jikes jit jp2 jpeg junit kde koffice-plugin ldap libwww lua lzo lzw lzw-tiff mad maildir matroska md5sum mikmod monkey motif mozcalendar mozilla mp3 mpeg4 msn multilib mysql ncurses nls oggvorbis ooo-kde opengl oscar oss pam pcre pda pdf perl png python pyzor qdbm qt radeon razor readline recode ruby samba sdl slang sox spamassassin speex sqlite ssl tcltk tcpd tetex theora thunderbird tiff timidity transcode truetype truetype-fonts type1-fonts usb userlocales vim vim-with-x vnc wxwin wxwindows xinerama xml xml2 xmms xpm xrandr xv xvid xvmc zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 4 Charles Noneman 2005-03-21 16:24:36 UTC
Portage 2.0.51.19 (gcc34-amd64-2004.1, gcc-3.4.3, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 17 2005, 22:24:38)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r2, 2.15.92.0.2-r6
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d/ /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.ccccom.com ftp://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa amd64 apm avi bash-completion berkdb bitmap-fonts cdr crypt cups directfb divx4linux dvd dvdr eds encode flac font-server gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml imlib ipv6 java javascript jpeg libg++ libwww mad motif mozdevelop mozilla moznoirc moznomail mp3 mpeg multilib mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb videos x xinerama xml xml2 xmms xprint xv xvid zlib video_cards_radeon"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

emul-linux-x86-glibc is 2.3.4.20041102
Comment 5 Herbie Hopkins (RETIRED) gentoo-dev 2005-03-22 04:52:43 UTC
Are your lib32 symlinks sane? please post the output of:
file /lib32 /usr/lib32

Charles: you might want to upgrade your profile. 2004.1 is old and unsupported.
Comment 6 Gian-Carlo Pascutto 2005-03-22 09:08:29 UTC
gentoo64 ~ # file /lib32 /usr/lib32
/lib32:     symbolic link to `emul/linux/x86/lib'
/usr/lib32: symbolic link to `../../emul/linux/x86/usr/X11R6/lib32'
Comment 7 Herbie Hopkins (RETIRED) gentoo-dev 2005-03-22 09:29:53 UTC
Gian:
rm -f /usr/lib32
ln -s ../../emul/linux/x86/usr/lib /usr/lib32
emerge gcc

Let us know if that solves it.
Comment 8 Gian-Carlo Pascutto 2005-03-22 11:04:59 UTC
Compilation goes further now:

checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build/gcc/ -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  -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110-r1/work/build'
make: *** [profiledbootstrap] Error 2

I tried

gentoo64 ~ # USE=-sandbox emerge gcc

with the same effect.
Comment 9 Herbie Hopkins (RETIRED) gentoo-dev 2005-03-22 12:53:32 UTC
>I tried
>gentoo64 ~ # USE=-sandbox emerge gcc

Then try:
FEATURES=-sandbox emerge gcc

if there is still a problem, please attach your config.log
Comment 10 Matthias Transier 2005-03-23 12:31:36 UTC
The following solved it for me:

rm -f /usr/lib32
ln -s ../../emul/linux/x86/usr/lib /usr/lib32
FEATURES=-sandbox emerge gcc
Comment 11 SpanKY gentoo-dev 2005-03-25 08:33:05 UTC
*** Bug 86665 has been marked as a duplicate of this bug. ***
Comment 12 SpanKY gentoo-dev 2005-03-28 08:43:31 UTC
*** Bug 86975 has been marked as a duplicate of this bug. ***
Comment 13 Alex Howells (RETIRED) gentoo-dev 2005-03-28 10:23:25 UTC
Problem only appears in 2004.3 stages, everyone involved please upgrade and use the new release =) I've also had confirmation that the fix described above in Comment #10 work - so it's a RESOLVED FIXED all round! :-D
Comment 14 SpanKY gentoo-dev 2005-03-29 18:48:38 UTC
*** Bug 87195 has been marked as a duplicate of this bug. ***
Comment 15 SpanKY gentoo-dev 2005-04-11 18:37:29 UTC
*** Bug 88769 has been marked as a duplicate of this bug. ***
Comment 16 SpanKY gentoo-dev 2005-05-04 15:01:22 UTC
*** Bug 91486 has been marked as a duplicate of this bug. ***
Comment 17 Simon Stelling (RETIRED) gentoo-dev 2005-05-24 02:44:19 UTC
*** Bug 93769 has been marked as a duplicate of this bug. ***
Comment 18 shimi 2005-05-24 05:18:34 UTC
My bug, 93769 was dup'd to this bug.

However, I tried all the solutions in this bug _before_ I sent my bug. As stated
in my bug, this doesn't work.

Attaching again my error:
multidirs=32
with_multisubdir=
Running configure in multilib subdirs 32
pwd: /var/tmp/portage/gcc-3.4.3-r1/work/build/x86_64-pc-linux-gnu/libstdc++-v3
Running configure in multilib subdir 32
pwd: /var/tmp/portage/gcc-3.4.3-r1/work/build/x86_64-pc-linux-gnu
mkdir 32
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc...
/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/xgcc
-B/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/ -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  -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled
programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3-r1/work/build'
make: *** [profiledbootstrap] Error 2

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

# file /lib32 /usr/lib32
/lib32:     symbolic link to `../emul/linux/x86/lib'
/usr/lib32: symbolic link to `../emul/linux/x86/usr/lib'

And it was with FEATURES=-sandbox

See bug 93769 if you need to see the emerge info, I don't wanna clog this
comment more than needed...
Comment 19 Jeremy Huddleston (RETIRED) gentoo-dev 2005-05-31 13:54:16 UTC
shimi: Please come talk to me on IRC.

What's the contents of /etc/ld.so.conf?
Comment 20 shimi 2005-05-31 17:25:25 UTC
(In reply to comment #19)
> shimi: Please come talk to me on IRC.

Sent you a PM

> What's the contents of /etc/ld.so.conf?

# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
/lib
/usr/lib
/usr/local/lib
/lib32
/usr/lib32
/usr/local/lib32
/usr/x86_64-pc-linux-gnu/lib
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2/32
/emul/linux/x86/lib
/emul/linux/x86/usr/lib
/usr/lib/libstdc++-v3/