Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52072 - Emerging QT results in a segmentation fault while trying to include topicchooser.cpp
Summary: Emerging QT results in a segmentation fault while trying to include topicchoo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-26 02:03 UTC by Philip Herzer
Modified: 2004-06-21 22:24 UTC (History)
1 user (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 Philip Herzer 2004-05-26 02:03:25 UTC
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.
Comment 1 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-06-02 13:14:39 UTC
gcc-3.3.3 needs -fno-strict-aliasing in the cflags on ppc, you'll have weird issues like the one reported here. 
Comment 2 Christian Holtje 2004-06-21 22:09:41 UTC
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!
Comment 3 Christian Holtje 2004-06-21 22:24:22 UTC
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?