I got this: g++ -m32 HW.cpp -o HW /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/libgcc_s_32.so when searching for -lgcc_s_32 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/libgcc_s_32.so when searching for -lgcc_s_32 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc_s_32 collect2: ld returned 1 exit status ls -al /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/libgcc_s_32.so lrwxrwxrwx 1 root root 13 Sep 5 21:59 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/libgcc_s_32.so -> libgcc_s.so.1 Reproducible: Always Steps to Reproduce: 1.take stage2-amd64-gcc34-20040716.tar.bz2 unpack it to new install 2.chroot to new install, configure /etc/make.conf so: # These settings were set by the catalyst build script that automatically built this stage # Please consult /etc/make.conf.example for a more detailed example CFLAGS="-O2 -pipe -march=athlon64" CHOST="x86_64-pc-linux-gnu" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j2" USE="3dnow X alsa apm audiofile avi bzlib cdr crypt cups curl dga dio directfb divx4linux doc dvb dvd dvdr encode ethereal exif fbcon fftw flac gif ginac gmp gpm imagemagick -joystick jpeg -kde matrox mmx mng mozilla mpeg multilib ncurses oggvorbis -pcmcia pdflib png -qt quicktime svga tcltk tetex theora unicode xinerama xv xvid zlib amd64 -arts bonobo" ACCEPT_KEYWORDS="~amd64" GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://www.gigaload.org/gentoo.org/ ftp://mirror.switch.ch/mirror/gentoo/" 3. emerge sync, and then in /usr/portage do a scripts/bootstrap.sh Actual Results: I have a non working compiler for 32 bits Expected Results: Compil 32 bits cleanly Portage 2.0.50-r10 (gcc34-2004.2, gcc-3.4.1, glibc-2.3.4.20040605-r0,2.3.4.20040808-r0, 2.6.9-rc1) ================================================================= System uname: 2.6.9-rc1 x86_64 12 Gentoo Base System version 1.5.3 Autoconf: Automake: ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -march=athlon64" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /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 -pipe -march=athlon64" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://www.gigaload.org/gentoo.org/ ftp://mirror.switch.ch/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 apm audiofile avi berkdb bonobo bzlib cdr crypt cups curl dga dio directfb divx4linux doc dvb dvd dvdr encode ethereal exif fbcon fftw flac foomaticdb gdbm gif ginac gmp gnome gpm gtk gtk2 imagemagick imlib jpeg libg++ libwww matrox mikmod mng motif mozilla mpeg multilib ncurses nls oggvorbis opengl oss pam pdflib png python quicktime readline sdl slang spell ssl tcltk tcpd tetex theora truetype unicode xinerama xml2 xmms xv xvid zlib"
can you try gcc-3.4.2_pre20040902? it should put libgcc_s_32 in /lib32, without any symlink funkiness.
The new version works perfectly with -m32, I compil a new kernel with it right now :-)
Seams also be fixed in gcc-3.3.4-r2