Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17146 - kdelibs-3.1-r2 fails when compiled with gcc 3.2.2
Summary: kdelibs-3.1-r2 fails when compiled with gcc 3.2.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Highest blocker (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 17341 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-09 12:14 UTC by Omkhar Arasaratnam (RETIRED)
Modified: 2004-10-17 12:05 UTC (History)
3 users (show)

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


Attachments
error output (mels_kde.out,3.33 KB, text/plain)
2003-03-11 23:11 UTC, Michael Labhard
Details
/usr/qt/3/include/qevent.h:540: internal error: Segmentation fault (kdelibserror.txt,373 bytes, text/plain)
2003-03-12 07:26 UTC, Björn Michaelsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Omkhar Arasaratnam (RETIRED) gentoo-dev 2003-03-09 12:14:07 UTC
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.
Comment 1 Omkhar Arasaratnam (RETIRED) gentoo-dev 2003-03-09 13:57:17 UTC
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
Comment 2 Hannes Mehnert (RETIRED) gentoo-dev 2003-03-09 22:16:18 UTC
seems to be same as bug #15025. please do: 
# cd /usr/portage/sys-devel/gcc/files/ 
# ./fix_libtool_files.sh 3.2.1 
Comment 3 Eske Christiansen 2003-03-11 02:20:33 UTC
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)
Comment 4 Eske Christiansen 2003-03-11 07:38:25 UTC
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
Comment 5 Michael Labhard 2003-03-11 23:09:38 UTC
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

Comment 6 Michael Labhard 2003-03-11 23:11:17 UTC
Created attachment 9276 [details]
error output
Comment 7 Omkhar Arasaratnam (RETIRED) gentoo-dev 2003-03-12 00:44:29 UTC
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
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-12 04:25:32 UTC
*** Bug 17341 has been marked as a duplicate of this bug. ***
Comment 9 Björn Michaelsen 2003-03-12 07:26:05 UTC
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
Comment 10 Björn Michaelsen 2003-03-12 07:26:05 UTC
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
Comment 11 Dan Armak (RETIRED) gentoo-dev 2003-03-18 18:14:35 UTC
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. 
Comment 12 Rich Kowalczyk 2003-03-18 20:11:35 UTC
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?
Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-21 02:01:55 UTC
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 ...
Comment 14 Rich Kowalczyk 2003-03-22 17:59:59 UTC
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.

Comment 15 Paul de Vrieze (RETIRED) gentoo-dev 2003-04-24 14:35:43 UTC
I'll fix it then