L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib khelpcenter.la.o libkdeinit_khelpcenter.la /usr/kde/3.5/lib/libkhtml.so: undefined reference to `__cxa_get_exception_ptr@CXXABI_1.3.1' collect2: ld returned 1 exit status make[3]: *** [khelpcenter] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/kdebase-3.5.1-r1/work/kdebase-3.5.1/khelpcenter' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdebase-3.5.1-r1/work/kdebase-3.5.1/khelpcenter' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdebase-3.5.1-r1/work/kdebase-3.5.1' make: *** [all] Error 2 !!! ERROR: kde-base/kdebase-3.5.1-r1 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile kdebase-3.5.1-r1.ebuild, line 108: Called kde_src_compile kde.eclass, line 104: Called kde_src_compile 'compile' kde.eclass, line 221: Called kde_src_compile 'all' 'myconf' 'configure' !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, and the call stack if relevant. [ebuild U ] kde-base/kdebase-3.5.1-r1 [3.5.0-r1] USE="arts* cups hal opengl pam -debug -ieee1394 -java* -kdeenablefinal -ldap -lm_sensors -logitech-mouse -openexr -samba* -ssl -xcomposite% -xinerama -xscreensaver% -zeroconf" 0 kB emerge info : Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r2, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1400MHz Gentoo Base System version 1.12.0_pre15 ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -ffast-math -msse2 -falign-functions=64" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -ffast-math -msse2 -falign-functions=64" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache distlocks moo parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="pl_PL" LC_ALL="pl_PL" LINGUAS="pl" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apm arts avi berkdb bitmap-fonts bluetooth crypt cups dbus dvd eds emboss encode extras foomaticdb freetype gdbm gif gpm gtk2 hal imlib ipv6 jabber jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline sdl spell sse sse2 ssl tcpd truetype truetype-fonts type1-fonts unicode userlocales vorbis xml2 xmms xv zlib elibc_glibc kernel_linux linguas_pl userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, PORTDIR_OVERLAY
*** This bug has been marked as a duplicate of 64615 ***
no it is not a duplicate - i did all from the duplicated bug and still have errors - also after recompiling kdelibs with gcc 3.4.4 and 4.0.2
*** Bug 123319 has been marked as a duplicate of this bug. ***
*** Bug 121854 has been marked as a duplicate of this bug. ***
*** Bug 114225 has been marked as a duplicate of this bug. ***
Okay, now that the duped bugs are listed here, while I think this is gcc-4 related, I also think it needs to be fixed. So, we'll combine efforts here.
The first obvious question is: can you re-emerge kdelibs and see if that fixes the problem with your packages?
(In reply to comment #7) > The first obvious question is: can you re-emerge kdelibs and see if that fixes > the problem with your packages? > No, I've tried that. I've even gone as far as to recompile glibc, to no avail
Have you seen this thread? http://forums.gentoo.org/viewtopic-t-407711-highlight-cxagetexceptionptr.html
*** Bug 131280 has been marked as a duplicate of this bug. ***
emerge --info: Portage 2.1_pre9-r5 (default-linux/x86/2005.1, gcc-4.1.0, glibc-2.4-r2, 2.6.16-gentoo-r6 i686) ================================================================= System uname: 2.6.16-gentoo-r6 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.12.0_pre18 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.3 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r1 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -finline-functions -march=athlon-xp" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -finline-functions -march=athlon-xp" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/" LANG="de_DE.utf8" LC_ALL="de_DE.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/nx" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X acpi adsl akode alsa amd amuled ansi apache apache2 apm arts automount avi bash-completion beep berkdb bind-mysql bindist bitmap-fonts bluetooth browserplugin c++ c3p0 calendar ccache cdda cddb clamav clamd cli cpulimit crypt css cups cvsgraph dbus dbx dedicated dga dhcp dio disk-cache dnd dnsdb dpms dri eds elf emboss encode enscript escreen etwin exif extraengine fame fastcgi fat fbcon fbdev firefox flac font-server fontconfig foomaticdb fortran ftp gcj gdbm gif ginac glibc-compat20 glibc-omitfp gpm gstreamer gtk gtk2 hpn icq imlib innodb inode ipv6 irc isdnlog jabber java javacomm javascript jfs jms jpeg kerberos libg++ libwww mad mccp mikmod mmx motif mozcalendar moznocompose moznomail mp3 mpeg multipleip mysql mysqli nas nat ncurses net netboot network nforce2 nls nodrm nptl nptlonly oav offensive ogg oggvorbis opengl oscar pam pcre pdflib perl png pppd python qt quicktime readline real reflection reiserfs rtc sdl session sox spell spl sse sse2 ssl sysfs tcpd teamarena toolbar truetype truetype-fonts type1-fonts unicode userlocales vcd vorbis vorbis-psy win32codecs winbind wma wmf xml xml2 xorg zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_s3virge video_cards_vesa video_cards_vga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Maybe this will help any other desparate soul: I did (generally all previous compilers that might have been used): fix_libtool_files.sh 3.4.4 fix_libtool_files.sh 4.0.2 fix_libtool_files.sh 4.0.3 fix_libtool_files.sh 4.1.0 fix_libtool_files.sh 4.1.0-r1 (installed GCC is 4.1.1) After that: cat /usr/portage/kde-base/kdelibs/kdelibs-3.5.2-r6 Looked at DEPENDS rememerged everything in depends (careful: some packages are virtual and you must reemerge/recompile the target package, not just the virutal itself; first case of this is the libstdc++) then reemerged kdelibs and - yey! - works!
*** Bug 135367 has been marked as a duplicate of this bug. ***
*** Bug 136302 has been marked as a duplicate of this bug. ***
*** Bug 136871 has been marked as a duplicate of this bug. ***
emerge -e world after gcc upgrade from 3.4 to 4.1 is necessary to omit such problems with incompatible ABIs.
i did the emerge -e system and emerge -e world, but already had those compile errors during that. using fix_libtool_files.sh like Boky said, did the trick for me
Same problem with kdelibs-3.5.3-r2, but using fix_libtool_files.sh and re-emerging everything in depends like Boky, doesn't change anything. emerge kdelibs: ... ecma/.libs/libkjs_html.a(kjs_binding.o): In function `KJS::DOMFunction::call(KJS::ExecState*, KJS::Object&, KJS::List const&)': kjs_binding.cpp:(.text+0x1bcb): undefined reference to `__cxa_get_exception_ptr' kjs_binding.cpp:(.text+0x1e82): undefined reference to `__cxa_get_exception_ptr' kjs_binding.cpp:(.text+0x22c1): undefined reference to `__cxa_get_exception_ptr' kjs_binding.cpp:(.text+0x254d): undefined reference to `__cxa_get_exception_ptr' ecma/.libs/libkjs_html.a(kjs_binding.o): In function `KJS::DOMFunction::get(KJS::ExecState*, KJS::Identifier const&) const': kjs_binding.cpp:(.text+0x28d1): undefined reference to `__cxa_get_exception_ptr' ecma/.libs/libkjs_html.a(kjs_binding.o):kjs_binding.cpp:(.text+0x2c32): more undefined references to `__cxa_get_exception_ptr' follow collect2: ld returned 1 exit status make[3]: *** [libkhtml.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.5.3-r2/work/kdelibs-3.5.3/khtml' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.5.3-r2/work/kdelibs-3.5.3/khtml' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.5.3-r2/work/kdelibs-3.5.3' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.5.3-r2 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile kdelibs-3.5.3-r2.ebuild, line 123: Called kde_src_compile kde.eclass, line 164: Called kde_src_compile 'all' kde.eclass, line 299: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 295: Called die emerge --info: Portage 2.1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r9-aro i686) ================================================================= System uname: 2.6.16-gentoo-r9-aro i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.12.1 ccache version 2.4 [enabled] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.mirror.intouch.nl/gentoo/" LINGUAS="fr" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X acpi alsa apache2 audiofile avi berkdb bitmap-fonts browserplugin bzip2 cairo cli crypt dbus dri dts dvd dvdr dvdread emboss encode esd ffmpeg flac foomaticdb fortran ftp gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 hal ieee1394 imagemagick imlib isdnlog java jpeg kde libg++ libwww lm_sensors mad md5sum mikmod mime mmx motif mp3 mpeg ncurses nls nptl nptlonly nvidia ogg oggvorbis openal opengl oss pam pcre pdflib perl pic png posix pppd python qt quicktime readline reflection sdl session spell spl sse ssl symlink tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l vcd videos vidix vorbis xcomposite xface xinerama xml xml2 xorg xv xvid zlib elibc_glibc input_devices_-acecad input_devices_-aiptek input_devices_-calcomp input_devices_-citron input_devices_-digitaledge input_devices_-dmc input_devices_-dynapro input_devices_-elo2300 input_devices_-elographics input_devices_evdev input_devices_-fpit input_devices_-hyperpen input_devices_-jamstudio input_devices_-joystick input_devices_keyboard input_devices_-magellan input_devices_-magictouch input_devices_-microtouch input_devices_mouse input_devices_-mutouch input_devices_-palmax input_devices_-penmount input_devices_-spaceorb input_devices_-summa input_devices_-synaptics input_devices_-tek4957 input_devices_-ur98 input_devices_-vmmouse input_devices_-void input_devices_-wacom kernel_linux linguas_fr userland_GNU video_cards_-i810 video_cards_nvidia video_cards_-via" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
The problem is that gcc 4.1.1 doesn't have a libstdc++.la file. For me, the error occurs when I try to emerge kdelibs, and I get a series of lines that read: libtool: link: warning: libstdc++.la seems to be moved and the package will fail to emerge. Even after I run fix_libtool_files.sh and recompile all the packages that kdelibs depends on anew, the emerge still fails. I took the liberty of snooping around /usr/lib and found that while /usr/lib/gcc/i686-pc-linux-gnu/3.4.6 does contain a copy of libstdc++.la, 4.1.1 does not. is it that gcc 4.1.1 is broken? -Ricardo-
*** Bug 137491 has been marked as a duplicate of this bug. ***
I've been fighting this bug for a long time. I've remerged system -e world -e done the libtool fix thingie... I've had this sytem up for so long.. maybe there are a heck of a lot of small versions lying about? I have no idea what version of gcc to specify in that fix script. I've chopped out useflags.... it still just plain arsed doesn't work.
ok.. 3.4.4 had a few fixes.. and 3.4.5 had one... I already ran it for a few older and newer versions. if the fixlibtool script is a part of libtool... then should we dedicate this bug to having fixlibtool run after every gcc update? or have a "*" option for it so it fixes all of the prior versions of gcc? I know gentoo isn't an install and forget distro... but there is no reason why it shouldn't be. (compiling) fix_libtool_files.sh 3 even had a few fixes... still does not work for me. same error!
I've removed an old gcc version: emerge --prune gcc result: >>> kde-base/kdelibs-3.5.3-r3 merged. Good luck :)
I emerge gcc --pruned and now I get a new error! /bin/sh ../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../kdecore -I../kio/kssl -I../kjs -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdecore -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O2 -fomit-frame-pointer -Wall -pipe -fno-unit-at-a-time -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o libDCOP_la.all_cpp.lo libDCOP_la.all_cpp.cpp dcopserver.cpp: In constructor 'DCOPServer::DCOPServer(bool)': dcopserver.cpp:1051: warning: 'dcopServerFileOld' is deprecated (declared at ./dcopclient.h:728) dcopserver.cpp: In function 'int kdemain(int, char**)': dcopserver.cpp:1708: warning: 'dcopServerFileOld' is deprecated (declared at ./dcopclient.h:728) dcopserver.cpp:1711: warning: 'dcopServerFileOld' is deprecated (declared at ./dcopclient.h:728) ./dcopglobal.h:69: warning: 'DCOPServerAuthProcs' defined but not used /bin/sh ../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O2 -fomit-frame-pointer -Wall -pipe -fno-unit-at-a-time -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o libDCOP.la -rpath /usr/kde/3.5/lib -R /usr/kde/3.5/lib -R /usr/kde/3.5/lib -R /usr/qt/3/lib -R /usr/lib -version-info 6:0:2 -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib libDCOP_la.all_cpp.lo KDE-ICE/libkICE.la -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so: No such file or directory make[4]: *** [libDCOP.la] Error 1 make[4]: Leaving directory `/mnt/sata2/portage_tempdir/portage/kdelibs-3.5.3-r3/work/kdelibs-3.5.3/dcop' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/mnt/sata2/portage_tempdir/portage/kdelibs-3.5.3-r3/work/kdelibs-3.5.3/dcop' make[2]: *** [all] Error 2 make[2]: Leaving directory `/mnt/sata2/portage_tempdir/portage/kdelibs-3.5.3-r3/work/kdelibs-3.5.3/dcop' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/sata2/portage_tempdir/portage/kdelibs-3.5.3-r3/work/kdelibs-3.5.3' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.5.3-r3 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile kdelibs-3.5.3-r3.ebuild, line 123: Called kde_src_compile kde.eclass, line 164: Called kde_src_compile 'all' kde.eclass, line 306: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 302: Called die !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, and the call stack if relevant.
*** Bug 139237 has been marked as a duplicate of this bug. ***
for my latest bugs... I had some symlinks in /usr/lib/gcc/i686-pc-linux-gnu/ 3.4.4 and 3.4.5 that were pointing nowhere... 4.1.1 is the only directory in there now. and fix_libtool_files.sh did fix some 3.4.4 files after that. I remerged libstdc++ again... /usr/lib/libstdc++.la still contains: # Directory that this library needs to be installed in: libdir='/usr/lib/gcc/i686-pc-linux-gnu/3.4.4' which is obviously wrong...
ok.. I manualy edited the libstdc++.la to point to 4.1.1 recompiled kdelibs.. and it worked! So.. this is a libtool bug. The fix_libtool_files.sh said it was fixing stuff.. and it wasn't!
Got this error (on a PPC, but this should not be relevant in this case): ... /bin/sh ../../libtool --silent --tag=CXX --mode=link powerpc-unknown-linux-gnu-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -fno-inline -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o amarokapp -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib -L/usr/kde/3.5/lib -R /usr/lib -R /usr/kde/3.5/lib -R /usr/qt/3/lib -R /usr/lib -R /usr/kde/3.5/lib main.o ../../amarok/src/amarokcore/libamarokcore.la libamarok.la ../../amarok/src/analyzers/libanalyzers.la ../../amarok/src/plugin/libplugin.la ../../amarok/src/statusbar/libstatusbar.la ../../amarok/src/metadata/libmetadata.la -lkutils -lkio -lkdeui -lkdecore -lkhtml -lknewstuff -L/usr/lib -ltag -lGL ../../amarok/src/sqlite/libsqlite.la /usr/kde/3.5/lib/libkhtml.so: undefined reference to `__cxa_get_exception_ptr@CXXABI_1.3.1' collect2: ld returned 1 exit status make[4]: *** [amarokapp] Error 1 make[4]: Leaving directory `/var/tmp/portage/amarok-1.4.1-r2/work/amarok-1.4.1/amarok/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/amarok-1.4.1-r2/work/amarok-1.4.1/amarok/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/amarok-1.4.1-r2/work/amarok-1.4.1/amarok' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/amarok-1.4.1-r2/work/amarok-1.4.1' make: *** [all] Error 2 !!! ERROR: media-sound/amarok-1.4.1-r2 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile amarok-1.4.1-r2.ebuild, line 77: Called kde_src_compile kde.eclass, line 164: Called kde_src_compile 'all' kde.eclass, line 314: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 310: Called die !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, and the call stack if relevant. I have the following gcc versions installed: 3.4.4-r1 4.1.1 So I tried the fix_libtool_files.sh script: ibook ~ # fix_libtool_files.sh 3.4.4 * Scanning libtool files for hardcoded gcc library paths... * [1/10] Scanning /lib ... * [2/10] Scanning /usr/lib ... * FIXING: /usr/lib/kde3/libk3bflacdecoder.la ...[vl] * FIXING: /usr/lib/xmms/Input/libmp4.la ...[vl] * FIXING: /usr/lib/libid3.la ...[vl] * FIXING: /usr/lib/libaspell.la ...[vl] * FIXING: /usr/lib/libgmpxx.la ...[vl] * FIXING: /usr/lib/enchant/libenchant_aspell.la ...[vl] * FIXING: /usr/lib/enchant/libenchant_myspell.la ...[vl] * FIXING: /usr/lib/enchant/libenchant_ispell.la ...[vl] * FIXING: /usr/lib/libgnashasobjs.la ...[vl] * FIXING: /usr/lib/libcdio++.la ...[vl] * FIXING: /usr/lib/libusbpp.la ...[vl] * FIXING: /usr/lib/libmusicbrainz.la ...[vl] * FIXING: /usr/lib/gedit-2/plugins/libspell.la ...[vl] * FIXING: /usr/lib/libmp4v2.la ...[vl] * FIXING: /usr/lib/libiso9660++.la ...[vl] * FIXING: /usr/lib/libOggFLAC++.la ...[vl] * FIXING: /usr/lib/libgnashbackend.la ...[vl] * FIXING: /usr/lib/libFLAC++.la ...[vl] * FIXING: /usr/lib/libpspell.la ...[vl] * FIXING: /usr/lib/libgnashgeo.la ...[vl] * FIXING: /usr/lib/libgnashserver.la ...[vl] * FIXING: /usr/lib/libgnashbase.la ...[vl] * FIXING: /usr/lib/libfaac.la ...[vl] * [3/10] Scanning //usr//lib/opengl/xorg-x11/lib ... * [4/10] Scanning /opt/ibm-jdk-bin-1.4.2.5/jre/bin ... * [5/10] Scanning /usr/athena/lib ... * [6/10] Scanning /usr/games/lib ... * [7/10] Scanning /usr/kde/3.5/lib ... * FIXING: /usr/kde/3.5/lib/kde3/kspell_aspell.la ...[vl] * [8/10] Scanning /usr/local/lib ... * [9/10] Scanning /usr/powerpc-unknown-linux-gnu/lib ... * [10/10] Scanning /usr/qt/3/lib ... This did it, it compiles now.
*** Bug 142135 has been marked as a duplicate of this bug. ***
*** Bug 142382 has been marked as a duplicate of this bug. ***
(In reply to comment #27) > ok.. I manualy edited the libstdc++.la to point to 4.1.1 Erm, first of all you should not have any libstdc++.la installed w/ gcc-4.1.1. So I assume the ones installed by older gcc versions are the problem here?
*** Bug 142749 has been marked as a duplicate of this bug. ***
*** Bug 143130 has been marked as a duplicate of this bug. ***
*** Bug 144608 has been marked as a duplicate of this bug. ***
*** Bug 146127 has been marked as a duplicate of this bug. ***
just for the records, I had the same problem as comment 18 (kdelibs). Seems that some .so files were not unmerged ( /usr/lib64/libstdc++.so and /usr/lib64/libstdc++.so.6 ) equery didn't linked them to any package. Just deleted them and now kdelibs passed. Redoing my "-e world" now and hoping it will finish :D
I encountered this problem when trying to compile Amarok. I first tried recompiling kdelibs and even gcc to no avail. However, fix_libtool_files.sh (with 3.4 - 3.0 as argument) worked for me.
*** Bug 147185 has been marked as a duplicate of this bug. ***
*** Bug 147434 has been marked as a duplicate of this bug. ***
*** Bug 149116 has been marked as a duplicate of this bug. ***
I had the same problem passing from gcc 3.4 to 4.1. I recompiled virtual/libstdc++, sys-libs/libstdc++-v3 and, to be sure, app-emulation/emul-linux-x86-compat, then did fix_libtool_files.sh for all the previous versions of gcc. It's compiling now! I'm compiling KDE 3.5.5.
*** Bug 152298 has been marked as a duplicate of this bug. ***
I frankly don't see why is this bug still open. - run fix_libtool_files.sh x.y.z (substitute x.y.z for any and all obsolete versions you had/still have installed and that might be causing the problem) - run emerge -e {system,world} as advised by http://www.gentoo.org/doc/en/gcc-upgrading.xml - check for any stale junk (symlinks etc.) left over from previous gcc versions - check for stale .la files orphaned by the stupid fix_libtool_files.sh script - if it still doesn't fix the problem, unmerge _all_ but the most recent gcc version once the above is complete and try again (portage will emerge virtual/libstdc++ for you if some binary cruft needs an obsolete libstdc++) For me, this apparently is gcc-mixing issue (as in dupe of Bug 64615); not much that KDE folks could solve here.
*** Bug 152585 has been marked as a duplicate of this bug. ***
*** Bug 152874 has been marked as a duplicate of this bug. ***
*** Bug 152943 has been marked as a duplicate of this bug. ***
*** Bug 153505 has been marked as a duplicate of this bug. ***
*** Bug 155227 has been marked as a duplicate of this bug. ***
*** Bug 155414 has been marked as a duplicate of this bug. ***
*** Bug 155467 has been marked as a duplicate of this bug. ***
*** Bug 155714 has been marked as a duplicate of this bug. ***
*** Bug 155709 has been marked as a duplicate of this bug. ***
*** Bug 156328 has been marked as a duplicate of this bug. ***
*** Bug 156462 has been marked as a duplicate of this bug. ***
*** Bug 157872 has been marked as a duplicate of this bug. ***
(In reply to comment #43) Another note: do NOT use sudo to emerge; do a regular su -
I've noticed this issue when having both 3.4.6 and 4.1.1-r1 installed on my system. steev@sigma ~ % gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.1.1 (Gentoo 4.1.1-r1) as a user root@sigma ~ # gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.1.1 (Gentoo 4.1.1-r1) as root and as sudo gcc -v - I would get 3.4.6 - I unmerged 3.4.6 and now sudo replies with the 4.1.1 as above.
Really, why this is still open? The solution is to have a clean system, and possibly only one selected GCC (or you get other failures too).
Reopen to dupe.
*** Bug 158693 has been marked as a duplicate of this bug. ***
*** Bug 159612 has been marked as a duplicate of this bug. ***
this is STILL a bug ... kdemultimedia depends on libstdc++ libstdc++ ONLY works with gcc-3.3.6-r1 emerge -p libstdc++ These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild NS ] sys-devel/gcc-3.3.6-r1 USE="gcj gtk nls (-altivec) -bootstrap -boundschecking -build -doc -fortran (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" [ebuild R ] virtual/libstdc++-3.3 if you unemerge all gcc versions but the last and then use fix_libtool_files.sh you gonna get missing libstdc++ in some gcc-4.1.1 subdirectory, if you make a link there you gonna get bug error, vicious circle emerging -e world won't solve the problem: emerge -pve world | grep -i gcc [ebuild R ] sys-kernel/linux-headers-2.6.17-r2 USE="-gcc64" 40,347 kB [ebuild R ] sys-devel/gcc-config-1.3.14 0 kB [ebuild R ] x11-misc/gccmakedep-1.0.2 USE="-debug" 69 kB [ebuild NS ] sys-devel/gcc-3.3.6-r1 USE="gcj gtk nls (-altivec) -bootstrap -boundschecking -build -doc -fortran (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 23,534 kB [ebuild R ] sys-devel/gcc-4.1.1-r3 USE="gcj gtk nls (-altivec) -bootstrap -build -doc -fortran (-hardened) -ip28 -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 38,326 kB and by the way ... o wow: emerge -pv kdemultimedia These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild NS ] sys-devel/gcc-3.3.6-r1 USE="gcj gtk nls (-altivec) -bootstrap -boundschecking -build -doc -fortran (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 23,534 kB [ebuild NS ] kde-base/kdemultimedia-3.5.5 USE="alsa arts audiofile encode flac gstreamer mp3 theora vorbis xine -akode -debug -kdeenablefinal -xinerama" 0 kB and i had a emerge --sync just before all this commands
Re-assign to bug-wrangler to prevent KDE folks being flooded by pointless noise.
*** This bug has been marked as a duplicate of bug 64615 ***
*** Bug 234874 has been marked as a duplicate of this bug. ***