I use the gcc-3.3.4-r2 and the gcc-3.4.2-r2 compilers side by side, using the excellent gcc-config program, but lately this seems broken. When I try to compile a program with gcc-3.3.4 it complains: checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables config.log: g++: spec failure: unrecognized spec option '<' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/as: unrecognized option `-.s' cc1plus: error: output filename specified twice configure:2115: $? = 1 gcc -v:Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/specs Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/specs Configured with: /var/tmp/portage/gcc-3.3.4-r2/work/gcc-3.3.4/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --disable-nls --disable-multilib --enable-__cxa_atexit --enable-clocale=generic Thread model: posix gcc driver version 3.3.4 20040623 (Gentoo Linux 3.3.4-r2, ssp-3.3.2-2, pie-8.7.6) executing gcc version 3.4.2 Note especially the lines which refer to gcc-3.4.2 in the gcc -v of a gcc 3.3.4! Also, this bug prevents me from remerging gcc 3.3.4-r2 emerge --info Portage 2.0.51_rc9 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20041006-r0, 2.6.8.1-ck9 i686) ================================================================= System uname: 2.6.8.1-ck9 i686 AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe -ffast-math -fomit-frame-pointer -ftracer -momit-leaf-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/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=athlon-xp -pipe -ffast-math -fomit-frame-pointer -ftracer -momit-leaf-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.2/gentoo-portage" USE="3dnow 3dnowex X alsa apm applypatches arts artswrappersuid audiofile avi bitmap-fonts cdparanoia cdr crypt cscope dvd dvdread encode f77 fam final flac foomaticdb gdbm gif gphoto2 gpm gtk gtk2 guile imagemagick imap imlib ithreads jabber java javascript jpeg junit kde libcaca libg++ libwww live mad mikmod mmx mmx2 motif mpeg mysql ncurses network nfsnptl nptlonly oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline rtc sdl slang sse ssl svga tcltk tcpd tetex theora threads tiff truetype v4l2 x86 xml2 xprint xv xvid zlib" With gcc-3.4.2-r2 everything works fine.
This problems seems glibc related (according to thread http://forums.gentoo.org/viewtopic.php?t=237120 on the forums).
Upgrading to glibc-2.3.4.20041021 solves the problem