emerge sim produces the following error: letransfer.cpp:(.text+0x2b0e): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' .libs/declinedlg.o: In function `DeclineDlg::accept()': declinedlg.cpp:(.text+0x72c): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' declinedlg.cpp:(.text+0x81c): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' declinedlg.cpp:(.text+0x845): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' collect2: ld returned 1 exit status libtool: install: error: relink `_core.la' with the above command before installing it make[3]: *** [install-sim_pluginLTLIBRARIES] Error 1 make[3]: Leaving directory `/var/tmp/portage/sim-0.9.4/work/sim-0.9.4/plugins/_core' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/var/tmp/portage/sim-0.9.4/work/sim-0.9.4/plugins/_core' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sim-0.9.4/work/sim-0.9.4/plugins/_core' make: *** [install-recursive] Error 1 !!! ERROR: net-im/sim-0.9.4 failed. Call stack: ebuild.sh, line 1546: Called dyn_install ebuild.sh, line 1020: Called src_install sim-0.9.4.ebuild, line 87: Called die ---------------------------------------------------------------------- BOB_HOME ~ # emerge --info Portage 2.1.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.17-gentoo-r8 i686) ================================================================= System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 3100+ Gentoo Base System version 1.12.5 Last Sync: Fri, 29 Sep 2006 19:30:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.0-r2, 2.0.30 dev-lang/python: 2.3.5-r2, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] 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-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kd e/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/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/" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/ter minfo" CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/ Linux/distributions/gentoo" LANG="en_GB.utf8" LC_ALL="" LINGUAS="" 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/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X a52 aac alsa apache2 apm berkdb bidi bitmap-fonts cdr cli crypt cups directfb divx4linux dlloader dri dvb dvd dvdr dvdread eds elibc_glibc emboss encode esd exif faad fbcon ffmpeg foomaticdb fortran gdbm gif gimpprint gpm gstreamer gtk gtk2 icc imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv 6 isdnlog jack jpeg kde kernel_linux libg++ libwww mad matroska mikmod mjpeg mmx motif mozilla mp3 mpeg ncurse s nls nptl nptlonly nvidia ogg opengl oss pam pcre perl png pppd python qt qt3 qt4 quicktime readline real ref lection sdl session spell spl sse ssl tcpd truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v 41 v412 video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 vide o_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_nvidia video_car ds_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis v ideo_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video _cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vidix vorbis win32codecs wxw indows x86 xine xml xmms xorg xv xvid xvmc zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Eh, recompile your toolchain and try again: emerge --oneshot binutils glibc gcc
merge --oneshot binutils glibc gcc DONE. But stil the same error !!!
however now with gcc 4.1.1 the error a bit different, but in general i guess it's the same. (first time i've tryed with gcc-3.4.6) .libs/declinedlg.o: In function `DeclineDlg::accept()': declinedlg.cpp:(.text+0x7d4): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' declinedlg.cpp:(.text+0x8b4): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage' declinedlg.cpp:(.text+0x8e1): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' collect2: ld returned 1 exit status make[3]: *** [_core.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/sim-0.9.4/work/sim-0.9.4/plugins/_core' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sim-0.9.4/work/sim-0.9.4/plugins/_core' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sim-0.9.4/work/sim-0.9.4' make: *** [all] Error 2 !!! ERROR: net-im/sim-0.9.4 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile sim-0.9.4.ebuild, line 83: Called die
Geez, stop mixing gcc versions arbitrarily. http://www.gentoo.org/doc/en/gcc-upgrading.xml
I did all the gcc-upgrading stuff, but it's still the same error ... :-(
by the way .. I've re-emerged more than 100 packages after gcc upgrating and only SIM produced such an error ....