I have tried seveal times to emerge QT 3..3.2 on my G4 Powerbook aluminum. I'm using the base CFLAGS when I first installed 2004.1 , which are: CFLAGS="-O2 -mcpu=7400 -maltivec -mabi=altivec -pipe" CHOST="powerpc-unknown-linux-gnu" CXXFLAGS="${CFLAGS}" I have my ACCEPT_KEYWORDS to ~ppc.... I have the following important tools installed: GCC pre20040408-r1 automake 2.59-r3 make 3.8 glibc 2.3.3_pre20040420 The emerge goes on for around 30-40 minutes and dies while trying to include elements from freetype. Reproducible: Always Steps to Reproduce: 1.emerge qt 2. 3. Actual Results: make Makefile make[3]: Entering directory `/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/tools/assistant' make[3]: `Makefile' is up to date. make[3]: Leaving directory `/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/tools/assistant' make[2]: Leaving directory `/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/tools/assistant' make[2]: Entering directory `/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/tools/assistant' /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 finddialog.ui -o finddialog.h /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 topicchooser.ui -o topicchooser.h /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 helpdialog.ui -o helpdialog.h /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 settingsdialog.ui -o settingsdialog.h /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 tabbedbrowser.ui -o tabbedbrowser.h /var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/bin/moc main.cpp -o .moc/release-shared-mt/main.moc g++ -c -pipe -fno-exceptions -w -O2 -D_REENTRANT -DQT_INTERNAL_NETWORK -DQT_INTERNAL_XML -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../../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/topicchooserimpl.o topicchooserimpl.cpp g++ -c -pipe -fno-exceptions -w -O2 -D_REENTRANT -DQT_INTERNAL_NETWORK -DQT_INTERNAL_XML -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../../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/docuparser.o docuparser.cpp g++ -c -pipe -fno-exceptions -w -O2 -D_REENTRANT -DQT_INTERNAL_NETWORK -DQT_INTERNAL_XML -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../../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/settingsdialogimpl.o settingsdialogimpl.cpp g++ -c -pipe -fno-exceptions -w -O2 -D_REENTRANT -DQT_INTERNAL_NETWORK -DQT_INTERNAL_XML -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../../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/index.o index.cpp g++ -c -pipe -fno-exceptions -w -O2 -D_REENTRANT -DQT_INTERNAL_NETWORK -DQT_INTERNAL_XML -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../../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/profile.o profile.cpp g++ -c -pipe -fno-exceptions -w -O2 -D_REENTRANT -DQT_INTERNAL_NETWORK -DQT_INTERNAL_XML -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../../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/config.o config.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 topicchooser.ui -i topicchooser.h -o topicchooser.cpp make[2]: *** [topicchooser.cpp] Segmentation fault make[2]: *** Deleting file `topicchooser.cpp' make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/tools/assistant' make[1]: *** [sub-assistant] 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) I have tried several options: reemerging libpng and freetype...Unfortunately, the same result occurs.
gcc-3.3.3 needs -fno-strict-aliasing in the cflags on ppc, you'll have weird issues like the one reported here.
What does -fno-strict-aliasing do and why aren't normal users warned to add that option? I just did an install as per the handbook and the make.conf.example, the gcc compile, etc. had no mention of this option on ppc. If it makes a difference, I have the blueberry ibook with a G3 750 and I'm having the same error. I wouldn't considered this fixed until it becomes difficult for a normal end user to have this problem. It isn't, everyone will have it except those that run across this bug. Ciao!
Okay, I just tried setting my CFLAGS to: CFLAGS="-O3 -mcpu=750 -pipe -fno-strict-aliasing" CXXFLAGS="${CFLAGS}" And it seems that qt doesn't take the option, as it compiled uic without the -fno-strict-aliasing I got the same error as normal. Thoughts?