When I try to emerge kdeaccessibilty-3.3.1 it fails with the following error: /bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium3 -fomit-frame-pointer -pipe -02 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o kmag -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.3/lib -R /usr/kde/3.3/lib -R /usr/qt/3/lib -R /usr/X11R6/lib kmagzoomview.o kmagselrect.o kmag.o main.o -lkdeprint libtool: link: cannot find the library `/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/libstdc++.la' make[2]: *** [kmag] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdeaccessibility-3.3.1/work/kdeaccessibility-3.3.1/kmag' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdeaccessibility-3.3.1/work/kdeaccessibility-3.3.1' make: *** [all] Error 2 The problem is that libtool seems to be looking for libstdc++.la in 3.4.2 and I have gcc 3.4.3 installed. Running gcc-config -l yealds the following output: [1] i686-pc-linux-gnu-3.3.4 [2] i686-pc-linux-gnu-3.4.3 [3] i686-pc-linux-gnu-3.4.3-hardened [4] i686-pc-linux-gnu-3.4.3-hardenednossp Then running gcc-config i686-pc-linux-gnu-3.4.3 and source /etc/profile does not fix the problem. My /etc/env.d/05gcc file contains the following PATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4.3" ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4.3" GCCBITS=" 32" MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man" INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info" CC="gcc" CXX="g++" LDPATH="/usr/lib/gcc/i686-pc-linux-gnu/3.4.3:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4:/usr/lib/gcc/i686-pc-linux-gnu/3.4.3:/usr/lib/gcc/i686-pc-linux-gnu/3.4.3" I have sucessfully compiled kdeaccessibility-3.3.1 in the past on this machine but this no longer works after I did an emerge world. Reproducible: Always Steps to Reproduce: 1.emerge kdeaccessibility-3.3.1 2.let it compile for a little while 3.see the failure Actual Results: Got the error shown above in the details section and the emerge stopped Expected Results: Compiled and installed itself emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20041006-r0, 2.6.9-gentoo-r1 i686) ================================================================= System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) III Mobile CPU 866MHz Gentoo Base System version 1.6.6 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/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe -02" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe -02" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://open-systems.ufl.edu/mirrors/gentoo ftp://mirrors.tds.net/gentoo ftp://gentoo.mirrors.pair.com/ftp://ftp.ussg.iu.edu/pub/linux/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 acpi aim apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups dvd emacs encode esd ethereal exif f77 fam flac flash foomaticdb fortran ftp gd gdbm gifgnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib java jpeg kdeldap libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl php png python qt quicktime readline samba sdl slang spell ssl svga tcpd tiff truetype x86 xml xml2 xmms xosd xv zlib"
A note on the above bug: The file libstdc++.la exists in /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/libstdc++.la on my computer
`gcc-config i686-pc-linux-gnu-3.4.3` should fix the problem toolchain herd: I'm not sure, if there are still eclass issues, so please deal with it. :p
ah - and `fix_libtool_files.sh 3.4.2` of course
The `fix_libtool_files.sh 3.4.2` fixed the problem. Thanks!
*** This bug has been marked as a duplicate of 72079 ***