This takes place under 2005.0 profile. After emerging both gcc-3.4.3-20050110 and -r1 versions, environment variable LDPATH in /etc/env.d/05gcc is set to: LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/.:/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" which is copied and sed'ed result of falsely created /etc/env.d/gcc/x86_64-pc-linux-gnu-gcc-3.4.3-20050110 LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/.:/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/." Reproducible: Always Steps to Reproduce: 1. emerge =sys-devel/gcc-3.4.3-20050110 or emerge =sys-devel/gcc-3.4.3-20050110-r1 2. echo 'main() {}' >test.cpp && g++ -m32 test.cpp -o test 3. ./test Actual Results: This mistake makes impossible for 32-bit binaries to find libstdc++.so.6 #3 ./test: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory Expected Results: LDPATH in /etc/env.d/gcc/x86_64-pc-linux-gnu-gcc-3.4.3-20050110 should be set to: LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/.:/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/32/." then the "env-update" would rightfully adjust /etc/env.d/05gcc Gentoo Base System version 1.4.16 Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 x86_64) ================================================================= System uname: 2.6.11-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+ Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 14 2005, 11:33:06)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r6 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-pipe -g0 -O2 -march=athlon64 -mtune=athlon64 -ftracer -fweb -frename-registers -funit-at-a-time" 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 /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="-pipe -g0 -O2 -march=athlon64 -mtune=athlon64 -ftracer -fweb -frename-registers -funit-at-a-time" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LDFLAGS="-Wl,-O1 -Wl,-z,now" 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 aalib acpi alsa arts audiofile avi berkdb bitmap-fonts cddb cdr crypt cscope cups curl directfb divx4linux dv dvd dvdr encode esd fam flac font-server foomaticdb fortran gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jp2 jpeg kde ldap libwww lzw lzw-tiff mad mikmod motif mp3 mpeg mysql nas ncurses nls nptl nptlonly offensive oggvorbis opengl oss pam perl pic png python qt quicktime readline ruby samba sdl slang speex ssl tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev usb userlocales xml xml2 xmms xpm xrandr xv yv12 zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
Created attachment 54129 [details, diff] /usr/portage/eclass/toolchain.eclass patch There are clearly two typos and one logical mistake in toolchain.eclass (/usr/portage/eclass subdirectory) for multilib environments which produce two or more ABI's. This patch corrects them.
Thanks, in cvs