Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 41120

Summary: qt-3.3.0 segfaults during compile
Product: Gentoo Linux Reporter: Heiko Helmle <helman>
Component: [OLD] LibraryAssignee: 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
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
make[3]: *** [listboxeditor.h] Speicherzugriffsfehler
make[3]: *** Warte auf noch nicht beendete Prozesse...
make[3]: *** [editfunctions.h] Speicherzugriffsfehler
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 90, Exitcode 2
!!! (no error message)



On that machine, this is absolutely reproducible, it always dies on those two files. I tried running uic manually and it segfaults immediately on invocation:
test root # /var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/bin/uic
Speicherzugriffsfehler



Reproducible: Always
Steps to Reproduce:
1. emerge qt
2.
3.

Actual Results:  
segfault 

Expected Results:  
guess
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-02-10 13:17:13 UTC
not much i can do for you here other than suggest you try upgrading your gcc compiler and/or glibc.
Comment 2 Moshe Kamensky 2004-02-10 14:27:20 UTC
Same here, with gcc 3.3.2-r7 and glibc 2.3.3_pre20040207
Comment 3 Heiko Helmle 2004-02-10 15:40:18 UTC
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.
Comment 4 Alvaro Moran 2004-02-11 00:54:50 UTC
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
Comment 5 Heiko Helmle 2004-02-11 01:54:08 UTC
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.
Comment 6 Selecter 2004-02-11 02:03:11 UTC
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)
Comment 7 Heiko Helmle 2004-02-11 02:40:22 UTC
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
Comment 8 Heiko Helmle 2004-02-11 03:31:03 UTC
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
Comment 9 Philip Webb 2004-02-11 23:47:16 UTC
the bug described in comment 4 is reproducible here
even after updating Gcc & Glibc to the latest in Portage.
Comment 10 Stuart Shelton 2004-02-12 02:47:17 UTC
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"]
Comment 11 Tassilo Horn 2004-02-12 05:30:30 UTC
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)
Comment 12 Christian Kaltepoth 2004-02-12 09:50:52 UTC
Fix for Comment #4:

Befor you merge qt 3.2.0, you'll have to unmerge the old qt lib!

See Bug #25642
Comment 13 Christian Kaltepoth 2004-02-12 09:51:55 UTC
Sorry! 
Of course it has to be 3.3.0 and not 3.2.0!
My fault! :-)
Comment 14 Alvaro Moran 2004-02-12 13:03:15 UTC
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...
Comment 15 Christian Kaltepoth 2004-02-13 01:33:26 UTC
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!
Comment 16 Philip Webb 2004-02-13 02:32:47 UTC
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.
Comment 17 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-14 20:08:38 UTC
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)
Comment 18 Stefan Z. 2004-02-18 15:02:44 UTC
I believe it is the same as this:
http://bugs.gentoo.org/show_bug.cgi?id=41839
which now has a working fix.
Comment 19 Caleb Tennis (RETIRED) gentoo-dev 2004-02-18 16:02:13 UTC
yes, please try the new qt ebuild and make sure it fixes this problem.
Comment 20 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-19 01:03:17 UTC
-r1 fixes the problem.
Comment 21 Caleb Tennis (RETIRED) gentoo-dev 2004-03-01 05:01:21 UTC
This bug should be fixed in the latest qt ebuilds.
Comment 22 Brad Laue (RETIRED) gentoo-dev 2004-03-01 09:04:41 UTC
Still happening here with 3.3.0-r1.
Comment 23 Caleb Tennis (RETIRED) gentoo-dev 2004-03-01 09:34:27 UTC
it should be fixed in 3.3.1.
Comment 24 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-05-05 11:11:46 UTC
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
Comment 25 Andrew Cooks 2004-08-08 01:41:12 UTC
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?
Comment 26 Caleb Tennis (RETIRED) gentoo-dev 2004-09-02 14:38:44 UTC
closing per above comment.