Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134447 - After installation of gcc-4.1.1, KDE programs don't work anymore
Summary: After installation of gcc-4.1.1, KDE programs don't work anymore
Status: RESOLVED DUPLICATE of bug 61146
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-26 12:55 UTC by Alexander Skwar
Modified: 2006-06-10 07:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Skwar 2006-05-26 12:55:07 UTC
I upgraded to gcc-4.1.1 from gcc-3.4.6-r1, switched the profile using "gcc-config" and now I cannot start KDE programs anymore. E.g. when starting KNode, I get:

alexander@blatt /var/lib $ knode
knode: /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/kde/3.5/lib/libkhtml.so.4)

I get the same error message, when I start konqueror.

I ran "/sbin/fix_libtool_files.sh 3.4.6" which fixed quite some KDE files.

Is this somehow related to bug #122788? In this bugreport, I also find "version `CXXABI_1.3.1' not found".

alexander@blatt /var/lib $ emerge --info
Portage 2.1_rc2-r3 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-suspend2-r6.043.security-models i686)
=================================================================
System uname: 2.6.16-suspend2-r6.043.security-models i686 Intel(R) Celeron(R) M processor         1.50GHz
Gentoo Base System version 1.12.0
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  0.4.2-r1
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/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig buildpkg ccache collision-protect confcache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="        http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/   http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/  ftp://ftp.tu-clausthal.de/pub/linux/gentoo/     http://distro.ibiblio.org/pub/linux/distributions/gentoo/     ftp://distro.ibiblio.org/pub/linux/distributions/gentoo      http://distfiles.gentoo.org/ "
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
PKGDIR="/Gentoo/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="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc /usr/portage/local/layman/vmware /usr/portage/local/layman/nx /usr/portage/local/layman/gentoo-de"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 GAPING_SECURITY_HOLE X acpi alsa amd apache2 apm arts artswrappersuid async avi bash-completion bdf berkdb bitmap-fonts bluetooth bootsplash cairo caps cardbus ccache cdda cddb cdio cdparanoia cdr cdrom cle266 cli crypt css curlwrappers dbus devmap dillo divx4linux dlloader dri dvd dvdread emoticon esd exif fam fbcon fbdev firefox fping freetype gdbm gif gnokii gnome gstreamer gtk gtk2 hal hpn icc id3 idn imap imlib imlib2 insecure-drivers insecure-savers isdnlog javascript jikes jpeg kde kdeenablefinal kdehiddenvisibility libedit libwww linuxthreads-tls logrotate lynxkeymap mad madwifi maildir matroska mbox mmx mmxext mozilla moznoirc mozsvg mp3 mpeg mpeg2 mpeg4 mplayer multicall ncurses netboot network new-login nfs nis nls no-old-linux no-suexec noantlr nobcel nobeanutils nobsf nobsh nocd nocommonslogging nocommonsnet nodrm nogg nogulm nojsch nojython nolog4j nomac nooro nopri norhino noxalan noxerces nozaptel nptl nsplugin offensive ogg opengl openssh pam_console pam_timestamp passfile password patented pccts pcmcia pcre perl perlsuid pic player png pnp pppd qt quicktime rar readline real recode reflection reiserfs sdl sendfile sensord session sftp sms spell spf spl sse sse2 ssl startup-notification stream subp subtitles suid symlink sysfs syslog tiff transcode truetype truetype-fonts trusted type1-fonts udev underscores unichrome unicode unsafe usb utf8 uudeview vim vim-pager vlm vorbis wifi win32codecs wma123 x11vnc xinetd xml xmms xorg xpm xprint xscreensaver xv xvid xvmc zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_-synaptics kernel_linux linguas_de userland_GNU video_cards_fbdev video_cards_vesa video_cards_vga video_cards_via"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexander Skwar 2006-05-26 12:59:31 UTC
Hm.

I had all the KDE packages compiled with gcc 3.4.6. After I upgraded to gcc 4.1.1, I re-compiled qt 3 and qt 4.

Might this be related?
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2006-05-26 13:02:17 UTC
What does `gcc -v` show you?  What is the output of `gcc-config -l`?  Did you run `source /etc/profile` after using gcc-config?
Comment 3 Alexander Skwar 2006-05-26 13:08:23 UTC
(In reply to comment #2)
> What does `gcc -v` show you?

alexander@blatt /var/db/pkg $ LC_ALL=C gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /Gentoo/Portage/build/portage/gcc-4.1.1/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++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1)
alexander@blatt /var/db/pkg $


>  What is the output of `gcc-config -l`? 

alexander@blatt /var/db/pkg $ LC_ALL=C gcc-config -l
 [1] i686-pc-linux-gnu-4.1.1 *

(I removed gcc 3.4.6 r1 in the meantime)

> Did you
> run `source /etc/profile` after using gcc-config?

Yes. I verified that this was successful by running "gcc --version" and seeing that v4 was displayed.
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2006-05-26 13:12:23 UTC
Removing 3.4.6 was probably a mistake.  You'll probably have to follow http://www.gentoo.org/doc/en/gcc-upgrading.xml to get everything sane again.

KDE works perfectly fine for me on my systems, and I haven't heard of this problem from anyone else, so I'm assuming it is because you removed 3.4.6 prematurely.  Its normally best to leave around your old compiler until you have recompiled atleast all of the C++ stuff you have sitting around.
Comment 5 Alexander Skwar 2006-05-26 13:16:22 UTC
(In reply to comment #4)
> Removing 3.4.6 was probably a mistake.

I removed 3.4.6 AFTER I saw that KNode was not working. Even with gcc 3.4.6 installed, KNode (and other KDE programs) didn't work. So I disagree - removing 3.4.6 had nothing to do with these problems.

>  You'll probably have to follow
> http://www.gentoo.org/doc/en/gcc-upgrading.xml to get everything sane again.

The newsletter and gcc-upgrading say, that nothing needs to be done after upgrading from 3.4.6 to 4.1.1.

> KDE works perfectly fine for me on my systems, and I haven't heard of this
> problem from anyone else, so I'm assuming it is because you removed 3.4.6
> prematurely.

It's not. KNode and KDE was broken even with 3.4.6 installed.

Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-26 13:24:24 UTC
We can't really do much, when you rebuilt qt3 and qt4 you made a two-versions linkage of libstdc++. Re-emerge of world is suggested.

*** This bug has been marked as a duplicate of 61146 ***
Comment 7 Alexander Skwar 2006-05-26 13:30:41 UTC
(In reply to comment #6)
> We can't really do much, when you rebuilt qt3 and qt4 you made a two-versions
> linkage of libstdc++. Re-emerge of world is suggested.

Hmm, okay.

IMO, A *BIG* *FAT* warning on the gcc-upgrading page should be posted. This should warn people to *not* re-compile qt after upgrading to gcc 4.1.1, so that not too many people run into these problems (yes, I am aware that ~x86 is there to break things).

Given the information on the newsletter and on the gcc-upgrading page, people are not made aware that it's *very* risky to upgrade to gcc 4.1. IMO, it's no good to let people run into problems without warning them.

Comment 8 Mark Loeser (RETIRED) gentoo-dev 2006-05-26 13:36:17 UTC
Yes, I made a mistake in sayign they could be mixed.  I did not run into any problems when I tried it, but obviously it can still happen in some unique cases.  I'm going to have a note added to the current article and change the gcc-update doc.
Comment 9 Jacob Martin 2006-06-01 18:05:01 UTC
This is now happening to me too.  Here's what happens when I start KMail

optimator ~ $ kmail
kmail: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by /usr/kde/3.5/lib64/libkhtml.so.4)


I've been reading up on this problem, but haven't found a good solution yet (besides that in Comment 6, but that applies only because gcc 3.4.* was gone). 

Can someone tell me a simple way to get the right version of libstdc++ installed?  I've tried to 

1) assure that I am using gcc-3.4.x. 

2) rm ~/.revdep-rebuild*
revdep-rebuild -X --soname libstdc++.so.5


and that didn't seem to work.  I also did the above commands with libstdc++.so.6 instead of libstdc++.so.5 (since 6 was in the error message). I've also re-emerged the system and world.  I'm at a loss!  Now, I've got a kde program (kmail) that won't even compile:


libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/libkmime/libkmime.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/libkmime/libkmime.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/libkpgp/libkpgp.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/libkpgp/libkpgp.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/libkdepim/libkdepim.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/libkdepim/libkdepim.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/libkpimidentities/libkpimidentities.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/libkpimidentities/libkpimidentities.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/mimelib/libmimelib.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/mimelib/libmimelib.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/libksieve/libksieve.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/libksieve/libksieve.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/certmanager/lib/libkleopatra.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/certmanager/lib/libkleopatra.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/libkcal/libkcal.la' seems to be moved
libtool: link: warning: `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/libkcal/libkcal.la' seems to be moved
/usr/kde/3.5/lib64/libkhtml.so: undefined reference to `__cxa_get_exception_ptr@CXXABI_1.3.1'
collect2: ld returned 1 exit status
make[3]: *** [kmail] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/kmail'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2/kmail'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kmail-3.5.2-r3/work/kmail-3.5.2'
make: *** [all] Error 2


======================================================
gcc -v
======================================================
optimator ~ $ gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-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)

======================================================
gcc-config -l
======================================================
optimator ~ $ gcc-config -l
 [1] x86_64-pc-linux-gnu-3.4.5
 [2] x86_64-pc-linux-gnu-3.4.5-hardened
 [3] x86_64-pc-linux-gnu-3.4.5-hardenednopie
 [4] x86_64-pc-linux-gnu-3.4.5-hardenednopiessp
 [5] x86_64-pc-linux-gnu-3.4.5-hardenednossp
 [6] x86_64-pc-linux-gnu-4.1.1



======================================================
emerge --info
======================================================
Portage 2.0.54-r2 (default-linux/amd64/2005.1, gcc-4.1.1, glibc-2.3.6-r3, 2.6.16-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r7 x86_64 Dual Core AMD Opteron(tm) Processor 275
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     2.3
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-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -mtune=opteron -O3 -pipe -msse -msse2 -funit-at-a-time -fomit-frame-pointer -frename-registers -fweb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=opteron -mtune=opteron -O3 -pipe -msse -msse2 -funit-at-a-time -fomit-frame-pointer -frename-registers -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
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 Xaw3d alsa apache2 arts audiofile avi berkdb bitmap-fonts blas bzip2 cdr cli crypt cups curl dri dvd dvdr dvdread eds emboss encode esd exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif gimpprint glut gmp gnome gpm graphviz gstreamer gtk gtk2 idn imagemagick imlib ipv6 isdnlog ithreads java jpeg junit kde lapack latex lcms ldap libwww lm_sensors lua lzw lzw-tiff mad mng mozcalendar mozilla mozsvg mp3 mpeg mpi mysql ncurses nls nptl nsplugin nvidia ogg opengl pam pcre pdflib plotutils png ppds pppd python qt quicktime readline reflection ruby samba scanner sdl session slp smp spell spl ssl tcpd tetex threads tiff toolbar truetype truetype-fonts type1-fonts udev unicode usb v4l vorbis xanim xine xinerama xml xml2 xorg xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 10 Jacob Martin 2006-06-02 15:35:09 UTC
Got it fixed now.  

Try for every gcc version you have:

  fix_libtool_files.sh 3.4.5  

Then:

  emerge libstdc++
  emerge kdelibs
  emerge kmail

Oh yes, I don't know if this mattered, but I also discovered that I did not have the multislot USE flag enabled for gcc.  I reenabled that and reemerged gcc and binutils.

Don't know if necessary or not.  




Comment 11 Jacob Martin 2006-06-02 15:36:30 UTC
Forgot to say that kmail is now building correctly with gcc 3.4.5 installed and gcc 4.1.1 installed (and active).  

So, not sure if this was a problem with mixing gcc versions with kde, or with the gcc upgrade script not fixing the libtool files.

Comment 12 Jari-Matti Mäkelä 2006-06-04 11:38:05 UTC
I've upgraded gcc 3.4.6 -> gcc 4.1.1. Ran gcc-config, fix_libtool_files.sh 3.4.6, re-emerged system and world, and prelinked all new compiled binaries. Everything else works now, but openoffice-bin-2.0.2 binaries segfault. Should I re-emerge something like openoffice from sources now or file a new bug?
Comment 13 Jari-Matti Mäkelä 2006-06-07 15:39:25 UTC
(In reply to comment #12)
> I've upgraded gcc 3.4.6 -> gcc 4.1.1. Ran gcc-config, fix_libtool_files.sh
> 3.4.6, re-emerged system and world, and prelinked all new compiled binaries.
> Everything else works now, but openoffice-bin-2.0.2 binaries segfault. Should I
> re-emerge something like openoffice from sources now or file a new bug?

Ok, it seems this is a problem with kde 3.5.3 and OO.org 2.x. False alarm.
Comment 14 Jacob Martin 2006-06-10 07:30:30 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > I've upgraded gcc 3.4.6 -> gcc 4.1.1. Ran gcc-config, fix_libtool_files.sh
> > 3.4.6, re-emerged system and world, and prelinked all new compiled binaries.
> > Everything else works now, but openoffice-bin-2.0.2 binaries segfault. Should I
> > re-emerge something like openoffice from sources now or file a new bug?
> 
> Ok, it seems this is a problem with kde 3.5.3 and OO.org 2.x. False alarm.
> 

Yes, but my Comment 10 should be the solution to this bug.