Apparently CPPFLAGS is missing a -I for the newly built compiler's libstdc++
/usr/src/CVS/gcc41/tmp0/./gcc/xgcc -shared-libgcc -B/usr/src/CVS/gcc41/tmp0/./gcc -nostdinc++ -L/usr/src/CVS/gcc41/tmp0/i686-pc-linux-gnu/libstdc++-v3/src -L/usr/src/CVS/gcc41/tmp0/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../../../../../libjava/classpath/native/jni/qt-peer -I../../../include -I../../../../../../../libjava/classpath/include -I../../../../../../../libjava/classpath/native/jni/classpath -I../../../../../../../libjava/classpath/native/target/Linux -I../../../../../../../libjava/classpath/native/target/generic -DQT_SHARED -I/usr/lib/qt4/include -I/usr/lib/qt4/include/Qt -g -O2 -D_GNU_SOURCE -MT componentevent.lo -MD -MP -MF .deps/componentevent.Tpo -c ../../../../../../../libjava/classpath/native/jni/qt-peer/componentevent.cpp -fPIC -DPIC -o .libs/componentevent.o In file included from /usr/lib/qt4/include/QtCore/qnamespace.h:27, from /usr/lib/qt4/include/QtCore/qobjectdefs.h:27, from /usr/lib/qt4/include/QtGui/qwindowdefs.h:27, from /usr/lib/qt4/include/Qt/qwidget.h:27, from /usr/lib/qt4/include/Qt/QWidget:1, from ../../../../../../../libjava/classpath/native/jni/qt-peer/componentevent.cpp:38: /usr/lib/qt4/include/QtCore/qglobal.h:30:15: error: new: No such file or directory In file included from /usr/lib/qt4/include/QtCore/qobject.h:31, from /usr/lib/qt4/include/Qt/qwidget.h:28, from /usr/lib/qt4/include/Qt/QWidget:1, from ../../../../../../../libjava/classpath/native/jni/qt-peer/componentevent.cpp:38: /usr/lib/qt4/include/QtCore/qstring.h:43:20: error: string: No such file or directory [...] -- Summary: --enable-java-awt=qt fails to build Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bero at arklinux dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24403