Before run gcc-config # cat /etc/env.d/05gcc | grep LDPATH LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.0:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3" # gcc-config -l [1] i686-pc-linux-gnu-3.3.3 [2] i686-pc-linux-gnu-3.4.0 # gcc-config 1 * Switching to i686-pc-linux-gnu-3.3.3 compiler... [ ok ] * If you intend to use the gcc from the new profile in an already * running shell, please remember to do: * # source /etc/profile # cat /etc/env.d/05gcc | grep LDPATH LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.0:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3"
I should add: gcc-config-1.3.5-r1 # emerge info Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.4.0, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz Gentoo Base System version 1.4.12 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.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://rsync.gentoo.org/gentoo-portage" USE="X apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod mmx motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"
i'm unable to reproduce this with my gcc-config ... perhaps it's portage bug ? i'm using portage-2.0.51_pre7 over here
Created attachment 31616 [details] bash -x gcc-config 2 > gcc-config.debug 3>&1 1>&2 2>&3 OK. I tried on a similaer machine at work with portage-2.0.51_pre7. Attached is the bash debug output (hope it helpful). # gcc-config -l [1] i686-pc-linux-gnu-3.3.2 [2] i686-pc-linux-gnu-3.3.3 [3] i686-pc-linux-gnu-3.4.0 # emerge info Portage 2.0.51_pre7 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz Gentoo Base System version 1.4.12 ccache version 2.3 [disabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe " CHOST="i686-pc-linux-gnu" COMPILER="gcc3"
Update: After I updated gcc to 3.4.0-r4, I don't have this problem anymore.
what does `grep LDPATH /etc/env.d/gcc/*` show ?
Since I can't reproduce this bug with the latest gcc-3.4.0-r4, I am closing it as FIXED. Thanks. BTW # grep LDPATH /etc/env.d/gcc/* /etc/env.d/gcc/i686-pc-linux-gnu-3.3.2:LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2" /etc/env.d/gcc/i686-pc-linux-gnu-3.3.3:LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3" /etc/env.d/gcc/i686-pc-linux-gnu-3.4.0:LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.0" Note that this output comes from different machine that I've reported initally. I don't have this problem both machine after update to gcc-3.4.0-r4.