Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54400 - Building QT 3.3.2 leads to segfault when building listboxeditor
Summary: Building QT 3.3.2 leads to segfault when building listboxeditor
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: PPC Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 61113 61483 63736 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-19 02:54 UTC by J.O. Aho
Modified: 2005-01-01 09:45 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J.O. Aho 2004-06-19 02:54:17 UTC
When I try to emerge qt, it does compile for a good while, but failes always at the building of listboxeditor.ccp with a segmentation fault.

I have

 gcc: 3.3.3_pre20040408 (have tried once with 3.2.3 with the same result)
 binutils: 2.15.90.0.3-r3
 glibc: 2.3.3.20040420
 

Reproducible: Always
Steps to Reproduce:
1. emerge qt

Actual Results:  
make[3]: *** [listboxeditor.cpp] Segmentation fault

Expected Results:  
QT to be built and installed.

I have tried to build QT four times, with some different options in make.config

CFLAGS="-O2 -mcpu=750 -pipe -fno-strict-aliasing -fomit-frame-pointer"

and

CFLAGS="-O2 -mcpu=750 -pipe -fno-strict-aliasing"

and

CFLAGS="-O2 -mcpu=750 -pipe"

All of them result in the same failure during build:

/usr/include/freetype2 -I../shared -I../uilib -I../../../include
-I.moc/release-shared-mt/ -o ./dbconnectionsimpl.o dbconnectionsimpl.cpp
g++ -c -pipe -I/usr/include/mysql -fno-exceptions -fPIC -Wall -W -O2
-D_REENTRANT  -DDESIGNER -DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE
-DQT_INTERNAL_ICONVIEW -DQT_INTERNAL_TABLE -DQT_TABLET_SUPPORT -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -DQT_SHARED
-I/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/mkspecs/linux-g++ -I.
-I/usr/include/freetype2 -I../shared -I../uilib -I../../../include
-I.moc/release-shared-mt/ -o ./tableeditorimpl.o tableeditorimpl.cpp
/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/bin/uic -L
/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/plugins listboxeditor.ui -i
listboxeditor.h -o listboxeditor.cpp
make[3]: *** [listboxeditor.cpp] Segmentation fault
make[3]: *** Deleting file `listboxeditor.cpp'
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/tools/designer/designer'
make[2]: *** [sub-designer] Error 2
make[2]: Leaving directory
`/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/tools/designer'
make[1]: *** [sub-designer] Error 2
make[1]: Leaving directory
`/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/tools'
make: *** [sub-tools] Error 2

!!! ERROR: x11-libs/qt-3.3.2 failed.
!!! Function src_compile, Line 94, Exitcode 2
!!! (no error message)


If I do cd to /var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2 and do a "make",
everything seems to continue to build (not sure if the listboxeditor.cpp is
built or not, as it's said to be deleted).
Comment 1 J.O. Aho 2004-07-01 08:58:47 UTC
I have tried the two methods that I found that may fix this

 1. rebuild libpng and then build qt -> don't work
 2. uninstall previous version of qt -> don't work
Comment 2 David Holm (RETIRED) gentoo-dev 2004-07-02 10:30:47 UTC
If you manage to finish the build manually you can run: 'FEATURES="noclean noauto" ebuild /usr/portage/x11-libs/qt-3.3.2.ebuild install qmerge' to install it.
Comment 3 J.O. Aho 2004-07-02 23:05:55 UTC
After updating linux-headers (2.6.7) and rebuild glibc (2.3.4.20040619) and binutils (2.15.91.0.1-r2), I now get futher before I get a segmentation fault
at projectsettings.cpp (results in Error 2) and if I try to build from here manually I get the following error:

/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/bin/uic: error while loading shared libraries: libqt-mt.so.3: cannot open shared object: No such file or directory 
make[5]: *** [projectsettings.cpp] Error 127


in the /var/.../lib/ I find the libqt-mt.so.3 which is a symlink to libqt-mt.so.3.3.2
Comment 4 J.O. Aho 2004-07-10 00:23:47 UTC
Seems I found the fault, it seems the gcc3.3.3pre was the fault, uppgrading to gcc3.3.3-r6 fixed the problem and qt 3.3.2 did build without any errors.
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2004-08-23 05:38:01 UTC
*** Bug 61113 has been marked as a duplicate of this bug. ***
Comment 6 Toby Dickenson 2004-08-23 11:13:44 UTC
gcc3.3.3-r6 does not resolve the problem for me.
Comment 7 Toby Dickenson 2004-08-23 14:24:38 UTC
problem solved for me by removing the old qt before emerging the new....

mv /usr/qt/3 /usr/qt/3.removed
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2004-09-12 09:22:47 UTC
*** Bug 63736 has been marked as a duplicate of this bug. ***
Comment 9 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-01 09:45:48 UTC
*** Bug 61483 has been marked as a duplicate of this bug. ***