Summary: | After installation of gcc-4.1.1, KDE programs don't work anymore | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexander Skwar <askwar> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | CC: | foontala, toolchain |
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alexander Skwar
2006-05-26 12:55:07 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? What does `gcc -v` show you? What is the output of `gcc-config -l`? Did you run `source /etc/profile` after using gcc-config? (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. 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. (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. 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 *** (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. 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. 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 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. 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. 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? (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. (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. |