An "emerge -vaud gcc" brings the above error in the following context (BTW: gcc 3.4.3-r1 has the same issue on my system): ------------- snipp -------------- ` if [ -f /var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/../binutils/ranlib ] ; then echo /var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/../binutils/ranlib ; else if [ "x86_64-pc-linux-gnu" = "x86_64-pc-linux-gnu" ] ; then echo x86_64-pc-linux-gnu-ranlib; else t='s,y,y,'; echo ranlib | sed -e ; fi; fi` 32/libgcc.a ./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/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.olibgcc/32/__main.o libgcc/32/_absvsi2.o libgcc/32/_absvdi2.o libgcc/32/_addvsi3.o libgcc/32/_addvdi3.o libgcc/32/_subvsi3.olibgcc/32/_subvdi3.o libgcc/32/_mulvsi3.o libgcc/32/_mulvdi3.o libgcc/32/_negvsi2.o libgcc/32/_negvdi2.o libgcc/32/_ctors.olibgcc/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/3.4.3/../../../libc.so when searching for -lc/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../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 -lccollect2: ld returned 1 exit statusmake[3]: *** [32/libgcc_s_32.so] Error 1make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make[2]: *** [stmp-multilib] Error 2rm gcc.pod make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.4.3.20050110 failed. !!! Function gcc_do_make, Line 1079, Exitcode 2 !!! emake failed with bootstrap-lean !!! If you need support, post the topmost build error, NOT this status message. ------------- snipp -------------- Reproducible: Always Steps to Reproduce: 1. Do an "emerge -vud gcc" 2. 3. Actual Results: emerge fails, I cannot continue setting up my system Expected Results: Install a recent version of gcc Portage 2.0.51-r15 (default-amd64-2004.3, gcc-3.3.4, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 x86_64) ================================================================= System uname: 2.6.10-gentoo-r6 x86_64 4 Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 31 2005, 09:44:53)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r5 sys-devel/automake: 1.8.5-r1 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.2-r5 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/rc.d /etc/terminfo /etc/wget /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-z,now" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d acpi alsa apm arts audiofile avi cdb cdr cups dga divx4linux doc dvb dvd dvdr ftp gnome gpm gtk2 kde madmpeg multilib mysql mythtv oggvorbis qt radeon sdk udev xine xml xmms xvid zvbi video_cards_radeon linguas_de linguas_us" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, PORTDIR_OVERLAY
Please file bugs under the "Gentoo Linux" product. Please do not use the "Developer Relations" product unless you have a personnel issue.
What version of xorg-x11 do you have? What version of emul-glibc do you have? Please do: ls -ld /usr/lib32
I get the same problem, but I'm going to try w/out ssp or pie to see if that has anything to do with it. x11-base/xorg-x11-6.8.1.904 app-emulation/emul-linux-x86-glibc-2.3.4.20041102 app-emulation/emul-linux-x86-baselibs-1.2.2-r2 lrwxrwxrwx 1 root root 36 Feb 9 17:03 /usr/lib32 -> ../../emul/linux/x86/usr/X11R6/lib32 EMERGE INFO Portage 2.0.51.16 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 x86_64) ================================================================= System uname: 2.6.10-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 9 2005, 17:17:59)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1, 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r1, 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon64 -pipe -fPIC" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -pipe -fPIC" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/core/Data/portage /home/core/fluidportage/trunk" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 16bit X aac aalib acl acpi alsa apache2 arts audiofile bash-completion beepmp berkdb bitmap-fonts bmp bonobo bzip2 bzlib cairo calendar cddb cdr chroot clamav crypt css cups curl dba dv dvd dvdr dvdread easteregg edl encode escreen esd evms2 evo extensions f77 fam fax fbcon flac flash font-server foomaticdb fortran gd gdbm gif gimp gimpprint glitz glut gmail gnome gphoto2 gpm gstreamer gtk gtkhtml guile hal hardened howl icq imagemagick imap imlib imlib2 ipv6 irda jabber jack java javascript jp2 jpeg kde ldap libgda libwww live lzo lzw lzw-tiff mad maildir matroska mcal menu mikmod mng motif mozilla mozsvg mozxmlterm mpeg4 mplayer msn multilib mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses network nls nntp nptl nptlonly nvidia oav objc offensive ofx oggvorbis opengl oscar oss pam parse-clocks pcap pcre pdflib perl physfs png ppds psyco pwdb python qt readline rplay rtc samba sasl scanner sdl slang snmp socks5 sox speedo speex spell sqlite ssl stroke svg sysvipc tcltk tcpd tetex theora tiff transcode truetype truetype-fonts type1-fonts usb userlocales vhosts virus-scan wmf wxwindows xfs xine xml xml2 xmms xpm xprint xrandr xv xvid xvmc yahoo zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Actually, I'm more interested in what taking out my accidentally left-in -fPIC will do for me if anything.
@Tim Yamin: Sorry, this is my first report to bugzilla, I will keep your advice in mind. Can I change the topic the bug refers to? @Jeremy Huddleston: X11: * x11-base/xorg-x11 Latest version available: 6.8.1.904 Latest version installed: 6.8.1.904 mediacenter ~ # ls -ld /usr/lib32 ls: /usr/lib32: No such file or directory mediacenter ~ # emerge --search emul-linux-x86 Searching... [ Results for search key : emul-linux-x86 ] [ Applications found : 9 ] * app-emulation/emul-linux-x86-baselibs Latest version available: 1.2.2-r2 Latest version installed: 1.2.2-r2 Size of downloaded files: 3,640 kB Homepage: Description: Base libraries for emulation of 32bit x86 on amd64 License: GPL-2 * app-emulation/emul-linux-x86-compat Latest version available: 1.0 Latest version installed: 1.0 Size of downloaded files: 1,200 kB Homepage: Description: emul-linux-x86 version of lib-compat, with the addition of a32bit libgcc_s and the libstdc++ versions provided by gcc 3.3 and 3.4 for non-multilib systems. License: GPL-2 * app-emulation/emul-linux-x86-glibc Latest version available: 1000 Latest version installed: 1000 Size of downloaded files: 0 kB Homepage: http://www.gentoo.org/ Description: GNU C Library for emulation of 32bit x86 on amd64 License: GPL-2 [...]
Ok, do this: A recent update to xorg-x11 left people with some broken /usr/lib32 symlinks. rm /usr/lib32 ln -s ../../emul/linux/x86/usr/lib32 /usr/lib32
...unfortunately it's not that simple, the error remains nearly the same (see snippet) Maybe a hint: I first compiled my gentoo without multilib and tried afterwards to activate it. --------------------- cut here --------------------- ` if [ -f /var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/../binutils/ranlib ] ; then echo /var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/../binutils/ranlib ; else if [ "x86_64-pc-linux-gnu" = "x86_64-pc-linux-gnu" ] ; then echo x86_64-pc-linux-gnu-ranlib; else t='s,y,y,'; echo ranlib | sed -e ; fi; fi` 32/libgcc.a ./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/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.olibgcc/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.olibgcc/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/3.4.3/../../../libc.so when searching for -lc /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../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/work/build/gcc' make[2]: *** [stmp-multilib] Error 2 rm gcc.pod make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.4.3.20050110 failed. !!! Function gcc_do_make, Line 1079, Exitcode 2 !!! emake failed with bootstrap-lean !!! If you need support, post the topmost build error, NOT this status message. --------------------- cut here ---------------------
BTW: I changed my CFLAGS from: CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" to: CFLAGS="-O2 -march=athlon64 -pipe -fPIC" maybe that's another clue.
WUAH! remove that -fPIC! -fPIC in CFLAGS is EVIL
...done but, didn't change a thing :-(
I think I'm having the same issue. 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/3.4.3/../../../libc.so when searching for -lc /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../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/work/build/gcc' make[2]: *** [stmp-multilib] Error 2 make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.3.20050110 failed. !!! Function gcc_do_make, Line 1092, Exitcode 2 !!! make failed with profiledbootstrap !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-ck5 x86_64) ================================================================= System uname: 2.6.10-ck5 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#2, Feb 8 2005, 19:20:43)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.7.9-r1, 1.5, 1.6.3, 1.4_p6, 1.9.4, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon64 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon64 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="ftp://gentoo.risq.qc.ca// http://gentoo.mirrored.ca// ftp://gentoo.mirrored.ca/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" USE="amd64 16bit S3TC X Xaw3d a52 aac aalib acpi aim alsa arts audiofile avi bash-completion bcmath berkdb bitmap-fonts blas bzip2 bzlib cairo cdio cdparanoia cdr chroot codecs crypt cups curl curlwrappers divx4linux dv dvd dvdr dvdread encode escreen esd exif f77 faad fam fame fb fbcon fbdev ffmpeg flac flash font-server foomaticdb fortran gcj gdbm gif gimp gimpprint ginac glitz gmail gmp gnuplot gphoto2 gpm gtk gtk2 gtkhtml icq idea imagemagick imlib imlib2 ipv6 jabber java jce jikes jp2 jpeg jpeg2k kde kdexdeltas lesstif libsamplerate libwww live lm_sensors lzo lzw lzw-tiff mad mime ming mjpeg mmap mng monkey motif mozilla moznocompose moznoirc moznomail mozp3p mp3 mpeg mpeg2mpeg4 mplayer msn multilib ncurses net network nls no_wxgtk1 nodrm noreiserfs nowin nptl nptlonly nvidia offensive ogg oggvorbis openal opengl oss pam pcre pdf perl plotutils png ppds python qhull qt quicktime readline rtc samba scanner sdl serial sftplogging smime sndfile sox speex spell ssl svg szip tcpd tga theora tidy tiff transcode truetype truetype-fonts type1 type1-fonts unicode usb usepackagedmakefiles userlocales uudeview v4l v4l2 vcdimager vidix vorbis wmf wsconvert xanim xine xinerama xml2 xmms xosdxpm xrandr xscreensaver xv xvid xvmc yv12 zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Ok, for those of you having this issue, do: # file /usr/lib32 # cat /usr/lib32/libc.so And what version of emul-glibc do you have?
staticwave ace # file /usr/lib32 /usr/lib32: symbolic link to `../emul/linux/x86/usr/lib' staticwave ace # cat /usr/lib32/libc.so /* GNU ld script Use the shared library, but some functions are only in the static library, so try that secondarily. */ OUTPUT_FORMAT(elf32-i386) GROUP ( /emul/linux/x86/lib/libc.so.6 /emul/linux/x86/usr/lib/libc_nonshared.a ) app-emulation/emul-linux-x86-glibc Latest version available: 2.3.4.20041102 Latest version installed: 2.3.4.20041102 Size of downloaded files: 11,380 kB Homepage: http://www.gentoo.org/ Description: GNU C Library for emulation of 32bit x86 on amd64 License: GPL-2
# /emul/linux/x86/lib/libc.so.6 # gcc -m32 test.c test.c: int main() { return 0; } Please come see me on IRC...
Created attachment 50987 [details] Contend of /usr/lib32/*
mediacenter tmp # emerge --search emul-linux-x86-glibc Searching... [ Results for search key : emul-linux-x86-glibc ] [ Applications found : 1 ] * app-emulation/emul-linux-x86-glibc Latest version available: 1000 Latest version installed: 1000 Size of downloaded files: 0 kB Homepage: http://www.gentoo.org/ Description: GNU C Library for emulation of 32bit x86 on amd64 License: GPL-2 mediacenter tmp # gcc -m32 hello.c -o hello /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/./libgcc.a when searching for -lgcc /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/libgcc.a when searching for -lgcc /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc collect2: ld returned 1 exit status mediacenter tmp # cat /usr/lib32/libc.so cat: /usr/lib32/libc.so: No such file or directory
Uhm... 3.3.4? Andreas, update to a 3.4 compiler. I don't even want to start thinking about trying to get 3.3 working on am64. Also, you don't have /usr/lib32/libc.so Why do you have app-emulation/emul-linux-x86-glibc-1000 if you're not runnign 2005.0? Your profile (default-amd64-2004.3) doesn't even exist... where did you get it from. Switch to default-linux/amd64/2004.3