------- Comment #2 from rob1weld at aol dot com  2007-07-16 22:15 -------
I may be enabling more features than others are using ;)

I re-did ./configure and "make clean" and "make" and got a thousand lines
further, now I am here:


make[7]: Entering directory
`/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/native/jni/qt-peer'
...(at least a 1000 lines later - much further than last try)
libtool: compile:  /opt/gcc-4_3-build/./gcc/xgcc -shared-libgcc
-B/opt/gcc-4_3-build/./gcc -nostdinc++
-L/opt/gcc-4_3-build/i686-pc-linux-gnu/libstdc++-v3/src
-L/opt/gcc-4_3-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/usr/test/i686-pc-linux-gnu/bin/ -B/usr/test/i686-pc-linux-gnu/lib/ -isystem
/usr/test/i686-pc-linux-gnu/include -isystem
/usr/test/i686-pc-linux-gnu/sys-include -march=athlon-xp -mfpmath=sse,387
-m3dnow -msse2 -msse3 -fstrict-aliasing -maccumulate-outgoing-args
-D__NO_MATH_INLINES -fgcse-after-reload -fexpensive-optimizations
-DHAVE_CONFIG_H -I.
-I/root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer
-I../../../include -I/root/downloads/gcc-4_3-trunk/libjava/classpath/include
-I/root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/classpath
-I/root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/native-lib
-DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui
-I../../../../../libstdc++-v3/include/i686-pc-linux-gnu
-I../../../../../libstdc++-v3/include
-I/root/downloads/gcc-4_3-trunk/libjava/classpath/../../libstdc++-v3/include
-I/root/downloads/gcc-4_3-trunk/libjava/classpath/../../libstdc++-v3/libsupc++
-g -O2 -march=athlon-xp -mfpmath=sse,387 -m3dnow -msse2 -msse3
-fstrict-aliasing -maccumulate-outgoing-args -D__NO_MATH_INLINES
-fgcse-after-reload -fexpensive-optimizations -D_GNU_SOURCE -MT
slotcallbacks.lo -MD -MP -MF .deps/slotcallbacks.Tpo -c
/root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer/slotcallbacks.cpp
 -fPIC -DPIC -o .libs/slotcallbacks.o
In file included from
/root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer/slotcallbacks.cpp:200:
./slotcallbacks.moc.h:13:34: error: private/qucomextra_p.h: No such file or
directory
./slotcallbacks.moc.h:15:2: error: #error "This file was generated using the
moc from 3.3.7. It"
./slotcallbacks.moc.h:16:2: error: #error "cannot be used with the include
files from this version of Qt."
./slotcallbacks.moc.h:17:2: error: #error "(The moc has changed too much.)"
In file included from
/root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer/slotcallbacks.cpp:200:
./slotcallbacks.moc.h:20: error: no 'const char* SlotCallback::className()
const' member function declared in class 'SlotCallback'
./slotcallbacks.moc.h:25: error: 'QMetaObject* SlotCallback::metaObj' is not a
static member of 'class SlotCallback'
./slotcallbacks.moc.h:26: error: 'QMetaObjectCleanUp' does not name a type
./slotcallbacks.moc.h:29: error: redefinition of 'static QString
SlotCallback::tr(const char*, const char*)'
/root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer/slotcallbacks.cpp:63:
error: 'static QString SlotCallback::tr(const char*, const char*)' previously
defined here
./slotcallbacks.moc.h:37: error: redefinition of 'static QString
SlotCallback::trUtf8(const char*, const char*)'
/root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer/slotcallbacks.cpp:63:
error: 'static QString SlotCallback::trUtf8(const char*, const char*)'
previously defined here
./slotcallbacks.moc.h:48: error: no 'QMetaObject*
SlotCallback::staticMetaObject()' member function declared in class
'SlotCallback'
./slotcallbacks.moc.h: In member function 'QMetaObject*
SlotCallback::staticMetaObject()':
./slotcallbacks.moc.h:50: error: 'metaObj' was not declared in this scope
./slotcallbacks.moc.h:52: error: no match for call to '(const QMetaObject) ()'
./slotcallbacks.moc.h:53: error: 'QUMethod' does not name a type
./slotcallbacks.moc.h:54: error: 'QUParameter' does not name a type
...
./slotcallbacks.moc.h: In member function 'bool SlotCallback::qt_property(int,
int, QVariant*)':
./slotcallbacks.moc.h:122: error: 'qt_property' is not a member of 'QObject'
./slotcallbacks.moc.h: At global scope:
./slotcallbacks.moc.h:125: error: no 'bool
SlotCallback::qt_static_property(QObject*, int, int, QVariant*)' member
function declared in class 'SlotCallback'
make[7]: *** [slotcallbacks.lo] Error 1
make[7]: Leaving directory
`/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/native/jni/qt-peer'
make[6]: *** [all] Error 2
make[6]: Leaving directory
`/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/native/jni/qt-peer'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/native/jni'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/native'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/opt/gcc-4_3-build'
make: *** [all] Error 2


Libtool uses: "-I/usr/include/qt4 -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui"
and the error says: 

./slotcallbacks.moc.h:13:34: error: private/qucomextra_p.h: No such file or
directory
./slotcallbacks.moc.h:15:2: error: #error "This file was generated using the
moc from 3.3.7. It"
./slotcallbacks.moc.h:16:2: error: #error "cannot be used with the include
files from this version of Qt."
./slotcallbacks.moc.h:17:2: error: #error "(The moc has changed too much.)"


The problem is explained in this bug report:
http://lists.debian.org/debian-qt-kde/2007/06/msg00247.html

Changing this to a bootstrap issue. GCC must use QT4 headers (if it wants to)
and not try to use QT3 some of the time. Applying fix in above report and
rebuiling.

Paolo, can you point out _1_ build with the options I am using (other than my
builds). The closest seems to be that a few people are brave enough to try:
"--enable-java-awt=xlib".

Here is one from half a year ago (for s390):
("--enable-java-awt=gtk-default,qt-default"):
http://gcc.gnu.org/ml/gcc-testresults/2006-10/msg01289.html

Another from half a year ago for hppa: ("--enable-java-awt=gtk,qt):
http://gcc.gnu.org/ml/gcc-testresults/2006-11/msg00669.html


This sort of a search:
http://gcc.gnu.org/cgi-bin/search.cgi?q=awt+qt+xlib+gtk&cmd=Search%21&form=extended&m=all&ps=10&fmt=long&wm=wrd&sp=1&sy=1&wf=2221&type=&GroupBySite=no&ul=%2Fml%2Fgcc-testresults%2F%25

gives about 30 hits for my tests (many 4.3.0) and NO hits by any one else for
4.3.0 and a few for 4.2 and 4.1 .

I enable so many features purposely to full test all features of GCC and then
run the full testsuite and submit the results.

_I_ am not "using the 4_2 library sources together with a 4_3 compiler-proper",
if you see that somewhere there is something wrong with the build scripts.


-- 

rob1weld at aol dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED
          Component|libstdc++                   |bootstrap


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32781

Reply via email to