Summary: | qt-3.3.0 segfaults during compile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Heiko Helmle <helman> |
Component: | [OLD] Library | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | critical | CC: | brad, eradicator, kamensky.fb |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Heiko Helmle
2004-02-10 08:37:16 UTC
not much i can do for you here other than suggest you try upgrading your gcc compiler and/or glibc. Same here, with gcc 3.3.2-r7 and glibc 2.3.3_pre20040207 I have the same combination here. Tomorrow i will try to downgrade back to gcc r5 since i had a successful qt compile on a different machine with that one. This is axactly the same error that happens to me, though the error messages are in english: /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/bin/uic -L /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/plugins listboxeditor.ui -i listboxeditor.h -o listboxeditor.cpp /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/bin/uic: relocation error: /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/bin/uic: undefined symbol: _ZNK7QString3argExii make[3]: *** [listboxeditor.cpp] Error 127 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/tools/designer/designer' make[2]: *** [sub-designer] Error 2 make[2]: Leaving directory `/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/tools/designer' make[1]: *** [sub-designer] Error 2 make[1]: Leaving directory `/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/tools' make: *** [sub-tools] Error 2 !!! ERROR: x11-libs/qt-3.3.0 failed. !!! Function src_compile, Line 90, Exitcode 2 !!! (no error message) Now my gcc version is 3.3.2 (latest stable), and glib is glib-2.2.3 ok, i merged gcc 3.3.2-r5 and tried to recompile qt, but it segfaults at the same place. So this does not seem to be a gcc problem. I have(on experemental partition): gcc version 3.3.2 20040119 (Gentoo Linux 3.3.2-r7, propolice-3.3-7), glibc 2.3.3_pre20040207, portage 2.0.50-r1. But have different output: emerge -U qt >>> --upgradeonly implies --update... adding --update to options. Calculating dependencies ...done! >>> emerge (1 of 1) x11-libs/qt-3.3.0 to / >>> md5 src_uri ;-) qt-x11-free-3.3.0.tar.bz2 >>> Unpacking source... >>> Unpacking qt-x11-free-3.3.0.tar.bz2 to /var/tmp/portage/qt-3.3.0/work >>> Source unpacked. gif mysql sqlite cups opengl zlib Precompiled-headers support disabled. IBASE auto-detection... Could not find libgds.* anywhere in /lib /usr/lib /usr/lib/mysql IBASE disabled. MySQL auto-detection... Found libmysqlclient.* in /usr/lib Found mysql.h in /usr/include/mysql MySQL enabled. ODBC auto-detection... Could not find libodbc.* anywhere in /lib /usr/lib /usr/lib/mysql ODBC disabled. PostgreSQL auto-detection... Could not find libpq.* anywhere in /lib /usr/lib /usr/lib/mysql PostgreSQL disabled. NIS auto-detection... (-L/usr/lib/mysql -I/usr/include/mysql) Found nsl lib in /usr/lib Found rpcsvc/ypclnt.h in /usr/include Found rpcsvc/yp_prot.h in /usr/include NIS enabled. CUPS auto-detection... (-L/usr/lib/mysql -I/usr/include/mysql) Found cups lib in /usr/lib Found cups/cups.h in /usr/include CUPS enabled. OpenGL auto-detection... (-L/usr/lib/mysql -I/usr/include/mysql) Found GLU lib in /usr/lib Found GL lib in /usr/lib Found Xmu lib in /usr/X11R6/lib Found GL/gl.h in /usr/X11R6/include Found GL/glu.h in /usr/X11R6/include OpenGL enabled. Xcursor auto-detection... (-L/usr/lib/mysql -I/usr/include/mysql) Found Xcursor lib in /usr/X11R6/lib Found X11/Xcursor/Xcursor.h in /usr/X11R6/include Xcursor enabled. XRandR auto-detection... (-L/usr/lib/mysql -I/usr/include/mysql) Found XRandR lib in /usr/X11R6/lib Found X11/extensions/Xrandr.h in /usr/X11R6/include XRandR enabled. XRender auto-detection... (-L/usr/lib/mysql -I/usr/include/mysql) Found XRender lib in /usr/X11R6/lib Found X11/extensions/Xrender.h in /usr/X11R6/include XRender enabled. Xft auto-detection... (-L/usr/lib/mysql -I/usr/include/mysql) Found libXft.a in /usr/X11R6/lib Found X11/Xft/Xft.h in /usr/X11R6/include Found X11/Xft/Xft.h in /usr/include Found Xft version 2.1.0 Found Freetype version 2.1.5 Found freetype2/freetype/freetype.h in /usr/include Found fontconfig/fontconfig.h in /usr/include Xft enabled. XShape auto-detection... (-L/usr/lib/mysql -I/usr/include/mysql) Found X11/extensions/shape.h in /usr/X11R6/include XShape enabled. Xinerama auto-detection... (-L/usr/lib/mysql -I/usr/include/mysql) Found Xinerama lib in /usr/X11R6/lib Found X11/extensions/Xinerama.h in /usr/X11R6/include Xinerama enabled. XKB auto-detection... (-L/usr/lib/mysql -I/usr/include/mysql) Found X11/XKBlib.h in /usr/X11R6/include XkbSetPerClientControls found. XKB enabled. This is the Qt/X11 Free Edition. You are licensed to use this software under the terms of either the Q Public License (QPL) or the GNU General Public License (GPL). Type 'Q' to view the Q Public License. Type 'G' to view the GNU General Public License. Type 'yes' to accept this license offer. Type 'no' to decline this license offer. Do you accept the terms of either license? Creating qmake. Please wait... g++ -c -o project.o -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/include/qmake -I/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/include -I/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP project.cpp project.cpp: In function `void qmake_error_msg(const char*)': project.cpp:64: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/qt-3.3.0/temp/cc9aC4Dz.out file, please attach this to your bugreport gmake: *** [project.o] Error 1 qmake failed to build. Aborting. !!! ERROR: x11-libs/qt-3.3.0 failed. !!! Function src_compile, Line 87, Exitcode 2 !!! (no error message) I just found out that the existing qt on that system (3.2.3-r1) also segfaults when uic is invoked. So this does not seem to be a compilation problem alone... I'll go check the dependencies found the culprit: remerging nvidia-glx solved the problem! Note: It solved the segfaults from the original bug post, it is not likely that it solves comment 4 and 6 as the seem unrelated the bug described in comment 4 is reproducible here even after updating Gcc & Glibc to the latest in Portage. I have exactly the same problem (segfaults when uic is run on editfunctions.ui) with gcc-3.3.2-r5 (but I doubt it's this that's the problem). This is from a laptop with a Radeon graphics processor (so no nvidia-glx). Any clues yet? [CFLAGS="-O2 -march=pentium4 -mfpmath=sse -sse2 -fprefetch-loop-arrays -pipe"] Hi, I get an similar error as above, but with the Intel Compiler. ln -s libqui.so.1.0.0 libqui.so ln -s libqui.so.1.0.0 libqui.so.1 ln -s libqui.so.1.0.0 libqui.so.1.0 rm -f ../../../lib/libqui.so.1.0.0 rm -f ../../../lib/libqui.so rm -f ../../../lib/libqui.so.1 rm -f ../../../lib/libqui.so.1.0 mv -f libqui.so.1.0.0 libqui.so libqui.so.1 libqui.so.1.0 ../../../lib/ make[3]: Leaving directory `/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/tools/designer/uilib' cd designer && make -f Makefile make[3]: Entering directory `/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/tools/designer/designer' /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/bin/uic -L /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/plugins listboxeditor.ui -o listboxeditor.h /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/bin/uic -L /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/plugins editfunctions.ui -o editfunctions.h /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/bin/uic: relocation error: /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/bin/uic: undefined symbol: __intel_cpu_indicator make[3]: *** [listboxeditor.h] Fehler 127 make[3]: *** Warte auf noch nicht beendete Prozesse... /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/bin/uic: relocation error: /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/bin/uic: undefined symbol: __intel_cpu_indicator make[3]: *** [editfunctions.h] Fehler 127 make[3]: Leaving directory `/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/tools/designer/designer' make[2]: *** [sub-designer] Fehler 2 make[2]: Leaving directory `/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/tools/designer' make[1]: *** [sub-designer] Fehler 2 make[1]: Leaving directory `/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/tools' make: *** [sub-tools] Fehler 2 !!! ERROR: x11-libs/qt-3.3.0 failed. !!! Function src_compile, Line 89, Exitcode 2 !!! (no error message) Fix for Comment #4: Befor you merge qt 3.2.0, you'll have to unmerge the old qt lib! See Bug #25642 Sorry! Of course it has to be 3.3.0 and not 3.2.0! My fault! :-) Wait: I didn't understand: should I unmerge the old versione of qt I have installed (currently 3.1.2) *before* emerging qt 3.3? I think this is a misanderstanding, because I thiink that if I uninstall a version of qt and there is a program that is statically linked to a precise version of qt it could be a problem. Of course it's just a supposition, I'm not completely sure about it... I think there should be no problem with unmerging qt-3.1.2 and static linked progs! I had the same problem with this strange "relocation error" and i did the following: # emerge -C qt # env-update # ldconfig # emerge qt This worked for me! According to some Newsgroup message i read, this "relocation error" accures, when there is an old qt installation in you lib path! PS: I don't know if "env-update" and "ldconfig" a realy needed, cause IMHO emerge calls them. But it worked that way! following the advice in comment 15 , i moved /usr/qt/3 to /usr/qt/3.old , then did 'env-update' & 'ldconfig' & Qt 3.3.0 has emerged successfully. i use XFCE as desktop manager, but Konqueror as GUI browser & i play a couple of KDE games regularly, so we'll see what happens when i start my next Linux session, while still using the present KDE 3.1.3 . i will emerge KDE 3.2.0 tomorrow, when there's more time available, after which hopefully there wb no more major problems. thanx for the advice. The linker is using the installed (3.2) version of uic which is not forwards compatible. ~ $ ldd /usr/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/bin/uic | grep qt libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 (0x40016000) I believe it is the same as this: http://bugs.gentoo.org/show_bug.cgi?id=41839 which now has a working fix. yes, please try the new qt ebuild and make sure it fixes this problem. -r1 fixes the problem. This bug should be fixed in the latest qt ebuilds. Still happening here with 3.3.0-r1. it should be fixed in 3.3.1. I have the same bug on ppc. gcc-3.3.3 glibc_pre0207. segfaults in the designer thing. It was reported the following qt fixed the problem: http://www.metadistribution.org/gentoo/qt-3.3.1-r2.ebuild This bug has been inactive for more than 90 days. qt-3.3.2 is latest stable on all arches but mips. qt-3.3.1-r2 is latest stable for mips. Presumably this bug can be closed (FIXED) now? closing per above comment. |