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).
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
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.
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
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.
*** Bug 61113 has been marked as a duplicate of this bug. ***
gcc3.3.3-r6 does not resolve the problem for me.
problem solved for me by removing the old qt before emerging the new.... mv /usr/qt/3 /usr/qt/3.removed
*** Bug 63736 has been marked as a duplicate of this bug. ***
*** Bug 61483 has been marked as a duplicate of this bug. ***