When emerge-ing KDE 3.1, KDE libs fails when trying to link if using GCC 3.2.2 libtool seems to try and link to gcc 3.2.1 libs. Full details to follow.
Here is the actual error message. For some reason it is looking in the 3.2.1 lib directory even though I am using 3.2.2 I got the full listing if required: libtool: link: cannot find the library `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.la' make[3]: *** [libartskde.la.closure] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.1-r2/work/kdelibs-3.1/arts/kde' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.1-r2/work/kdelibs-3.1/arts' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.1-r2/work/kdelibs-3.1' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.1-r2 failed. !!! Function kde_src_compile, Line 117, Exitcode 2 !!! died running emake, kde_src_compile:make
seems to be same as bug #15025. please do: # cd /usr/portage/sys-devel/gcc/files/ # ./fix_libtool_files.sh 3.2.1
I have tried to unmerge libtool and qt becaused the were compiled with gcc3.2.1 and emerge them again, but that don't help. It only happens when there have been a upgrade from gcc3.2.1 to gcc3.2.2 (after my knowledge)
att #2 the fix_libtool_files 3.2.1 don't work: the fix_libtool_files run: * Scannig libtool files for hardcoded gcc 3.2.1 library path... * Scanning /usr/lib/opengl/nvidia/lib... * Scanning /usr/lib/mozilla... * Scanning /usr/X11R6/lib... * Scanning /opt/blackdown-jre-1.3.1/lib... * Scanning /usr/qt/3/lib... * Scanning /lib... * Scanning /usr/lib... * Scanning /usr/local/lib.. but it still don't compile. /bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=athlon-mp -O3 -pipe -fno-exceptions -fno-check-new -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -o libartskde.la.closure libartskde_la_closure.lo -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib -no-undefined -version-info 2:0:1 artskde.lo kioinputstream_impl.lo kplayobject.lo kplayobjectfactory.lo kartsfloatwatch.lo kartsdispatcher.lo kaudiorecordstream.lo kartsserver.lo kdatarequest_impl.lo kaudioconverter.lo kvideowidget.lo kplayobjectcreator.lo ../../kio/libkio.la -lqtmcop -lsoundserver_idl libtool: link: warning: `-version-info' is ignored for programs g++: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so: No such file or directory make[3]: *** [libartskde.la.closure] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.1-r2/work/kdelibs-3.1/arts/kde' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.1-r2/work/kdelibs-3.1/arts' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.1-r2/work/kdelibs-3.1' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.1-r2 failed. !!! Function kde_src_compile, Line 117, Exitcode 2 !!! died running emake, kde_src_compile:make
I can confirm this bug. I encountered it while trying to emerge kmatplot. The end of error output is attached. locate libstdc++.la returns /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libstdc++.la
Created attachment 9276 [details] error output
omkhar root # cd /usr/portage/sys-devel/gcc/files omkhar files # ./fix_libtool_files.sh 3.2.1 * fix_libtool_files.sh: /lib/rcscripts/awk/fixlafiles.awk does not exist! Suggested fix does not work
*** Bug 17341 has been marked as a duplicate of this bug. ***
Created attachment 9301 [details] /usr/qt/3/include/qevent.h:540: internal error: Segmentation fault kdelibs failed to compile here too, but with this output: In file included from /usr/qt/3/include/qobject.h, from /usr/qt/3/include/qwigdet.h, from ../../kdeprint/management/kmconfigpage.h:23, from kmconfigproxy.h:23, from kmconfigproxy.cpp:20: /usr/qt/3/include/qevent.h:540: internal error: Segmentation fault [kmconfigproxy.lo] "emerge info" output: Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS=" http://ftp.tu-clausthal.de/pub/linux/gentoo/" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb:/usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm arts avi crypt cups encode gif gpm imlib jpeg kde libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline X tcpd pam ssl perl python oggvorbis gtk qt motif opengl acpi alsa cdr dga doc dvd -gnome -java maildir mozilla samba tetex tiff" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="" CXXFLAGS="" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" Greetz, Bj
Created attachment 9301 [details] /usr/qt/3/include/qevent.h:540: internal error: Segmentation fault kdelibs failed to compile here too, but with this output: In file included from /usr/qt/3/include/qobject.h, from /usr/qt/3/include/qwigdet.h, from ../../kdeprint/management/kmconfigpage.h:23, from kmconfigproxy.h:23, from kmconfigproxy.cpp:20: /usr/qt/3/include/qevent.h:540: internal error: Segmentation fault [kmconfigproxy.lo] "emerge info" output: Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS=" http://ftp.tu-clausthal.de/pub/linux/gentoo/" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb:/usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm arts avi crypt cups encode gif gpm imlib jpeg kde libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline X tcpd pam ssl perl python oggvorbis gtk qt motif opengl acpi alsa cdr dga doc dvd -gnome -java maildir mozilla samba tetex tiff" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="" CXXFLAGS="" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" Greetz, Björn
Azarah: this looks at first like a dup of bug #11094, only it's not resolved :-/ Still I can't reproduce it and don't know why the fix doesn't work, so maybe you can shed some light here. Bjorn: that segfault has nothing to do with this bug.
I am having the same problem: libtool: link: warning: `-version-info' is ignored for programs g++: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so: No such file or directory make[3]: *** [libartskde.la.closure] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.1-r2/work/kdelibs-3.1/arts/kde' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.1-r2/work/kdelibs-3.1/arts' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.1-r2/work/kdelibs-3.1' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.1-r2 failed. !!! Function kde_src_compile, Line 116, Exitcode 2 !!! died running emake, kde_src_compile:make is there any way i can help?
Ok, do this: # find / -type f -name '*.la' -exec grep -l 'i686-pc-linux-gnu\/3\.2\.1' {} \; And let us know what file[s] it is. > omkhar root # cd /usr/portage/sys-devel/gcc/files > omkhar files # ./fix_libtool_files.sh 3.2.1 > * fix_libtool_files.sh: /lib/rcscripts/awk/fixlafiles.awk does not exist! > > Suggested fix does not work Do this: # cd /usr/portage/sys-devel/gcc/files # cp awk/fixlafiles.awk /lib/rcscripts/awk/fixlafiles.awk # ./fix_libtool_files.sh 3.2.1 I changed it to hopefully work better, but in current state you should actually have remerged gcc ...
i think i ran the fix_libtool_files.sh command incorrectly the first time i tried it (forgot the 3.2.1 at the end, i am guessing), since trying it again seems to have fixed the problem. in otherwords, running the fix allowed me to compile kdelibs. sorry to add to the confusion.
I'll fix it then