Bug 85218 - Problem building QT with g++
Summary: Problem building QT with g++
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: gcc
Version: 1.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2003-02-26 18:57 UTC by Philip Allen
Modified: 2007-04-18 16:51 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2004-10-03 19:54:23 UTC

Attachments (Terms of Use)

Description Philip Allen 2003-02-26 18:57:55 UTC
Description of problem: 
I edited qt.spec to remove the following lines (to force use of g++): 
 pushd mkspecs 
 for i in *-g++ qws/*-g++; do 
    [ -d $i ] || continue 
    TARGET=`echo $i |sed -e 's,g++$,gcc,'` 
    cp -aR $i $TARGET 
    perl -pi -e "s,g\+\+,gcc,g;s,^(QMAKE_LIBS[[:space:]]*=.*),\1 -lsupc++,g" $TARGET/* 
 perl -pi -e 's,^(.*linux.*)-g\+\+(.*),\1-gcc\2,' configure 
 perl -pi -e 's,^(.*CXX.*LFLAGS.*),\1 -lsupc++,' qmake/GNUmakefile.in 
Then, run rpmbuild -bb qt.spec 
Build crashes before completion. 
Version-Release number of selected component (if applicable): 
Actual results: 
[end of build log:] 
g++ -c -pipe -fno-exceptions -O2 -march=i386 -mcpu=i686 -DGLX_GLXEXT_LEGACY 
-fno-use-cxa-atexit -fno-exceptions  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE 
-I/share/src/redhat/BUILD/qt-x11-free-3.1.1/mkspecs/linux-g++ -I. -I/usr/include/freetype2 
-I../../include -I../tools -I. -o ./qfileinfo_unix.o ../tools/qfileinfo_unix.cpp 
yacc -d moc.y 
rm -f moc_yacc.cpp moc_yacc.h 
mv -f y.tab.h moc_yacc.h 
mv -f y.tab.c moc_yacc.cpp 
g++ -c -pipe -fno-exceptions -O2 -march=i386 -mcpu=i686 -DGLX_GLXEXT_LEGACY 
-fno-use-cxa-atexit -fno-exceptions  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE 
-I/share/src/redhat/BUILD/qt-x11-free-3.1.1/mkspecs/linux-g++ -I. -I/usr/include/freetype2 
-I../../include -I../tools -I. -o ./moc_yacc.o moc_yacc.cpp 
../../include/qdict.h: In member function `uint QDict<type>::count() const 
   [with type = char]': 
../../include/qvaluelist.h:272:   instantiated from here 
../../include/qdict.h:60: internal error: Illegal instruction 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions. 
make[1]: *** [moc_yacc.o] Error 1 
make[1]: Leaving directory `/share/src/redhat/BUILD/qt-x11-free-3.1.1/src/moc' 
make: *** [src-moc] Error 2 
error: Bad exit status from /var/tmp/rpm-tmp.99234 (%build)

Comment 1 Jakub Jelinek 2003-02-26 22:43:41 UTC
Is that reproduceable, always on the same file same ICE when you retry?

Comment 2 Philip Allen 2003-03-04 19:55:46 UTC

Comment 3 Jakub Jelinek 2003-03-04 21:17:12 UTC
Then please submit preprocessed source this can be reproduced on.
(add -save-temps option to g++ command line and attach here moc_yacc.ii
it creates).

Comment 4 Jakub Jelinek 2004-10-03 19:54:23 UTC
Preprocessed source has not been provided (and Qt certainly has built
since then). Closing.

Note You need to log in before you can comment on or make changes to this bug.