The following error happened during the qt 3.0.4.20020606 compile. I tried a bunch of different ways to fix it, including disabling optimizations (below), none worked. I got the same error every time. g++ -c -march=i486 -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/usr/X11R6/include/freetype2 -I../../interfaces -I/var/tmp/portage/qt-3.0.4.20020606-r1/work/qt-copy-3.0.4/include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-mt/ -I/var/tmp/portage/qt-3.0.4.20020606-r1/work/qt-copy-3.0.4/mkspecs/linux-g++ -o .obj/release-mt/mainwindowwizard.o mainwindowwizard.cpp /var/tmp/portage/qt-3.0.4.20020606-r1/work/qt-copy-3.0.4/bin/uic -embed wizards images/down.png images/left.png images/logo.png images/qtwizards_menu_1.png images/qtwizards_menu_2.png images/qtwizards_menu_3.png images/qtwizards_table_1.png images/qtwizards_table_2.png images/qtwizards_table_3.png images/qtwizards_table_4.png images/re-sort.png images/right.png images/up.png -o qmake_image_collection.cpp make[4]: *** [qmake_image_collection.cpp] Illegal instruction make[4]: *** Deleting file `qmake_image_collection.cpp' make[4]: Leaving directory `/var/tmp/portage/qt-3.0.4.20020606-r1/work/qt-copy-3.0.4/tools/designer/plugins/wizards' make[3]: *** [sub-wizards] Error 2 make[3]: Leaving directory `/var/tmp/portage/qt-3.0.4.20020606-r1/work/qt-copy-3.0.4/tools/designer/plugins' make[2]: *** [sub-plugins] Error 2 make[2]: Leaving directory `/var/tmp/portage/qt-3.0.4.20020606-r1/work/qt-copy-3.0.4/tools/designer' make[1]: *** [sub-designer] Error 2 make[1]: Leaving directory `/var/tmp/portage/qt-3.0.4.20020606-r1/work/qt-copy-3.0.4/tools' make: *** [sub-tools] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 77, Exitcode 2 !!! (no error message) The machine is an athlon-tbird. All (de)optimization flags were placed into work/qt-copy-3.0.4/mkspecs/linux-g++/qmake.conf. Since the problem doesn't seem to be in the optimization of gcc 3.1, I really don't know what to make of this.
more recent qt builds work fine, this was a bug in their code, not ours.