Build breaks as soon as we enter: gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/native/jni/qt-peer
# gcc/xgcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /root/downloads/gcc-4_3-trunk/configure --verbose --enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --prefix=/usr/test --enable-objc-gc --disable-multilib --with-gxx-include-dir=/usr/test/include/c++/4.3 --enable-libstdcxx-debug --enable-static --enable-shared --enable-initfini-array --enable-__cxa_atexit --enable-threads=posix --enable-version-specific-runtime-libs --enable-libssp --enable-libmudflap --enable-libgomp --disable-werror --enable-nls --with-included-gettext --enable-decimal-float --enable-debug --enable-java-gc=boehm --with-x --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-java-awt=gtk,xlib,qt,x --enable-gtk-cairo --enable-qt-peer --enable-xmlj --enable-gconf-peer --enable-libgcj-debug --enable-plugin --enable-tool-wrappers --enable-portable-native-sync --enable-examples --with-dwarf2 --with-stabs --enable-hash-synchronization --enable-gc-debug --enable-interpreter --with-system-zlib --enable-libada --with-tls --with-tune=athlon-xp --with-cpu=athlon-xp --with-arch=athlon-xp --enable-stage1-checking=assert,df,fold,gc,misc,rtl,rtlflag,runtime,tree Thread model: posix gcc version 4.3.0 20070716 (experimental) Screen output: ... libtool: link: creating libgtkpeer.la libtool: link: ( cd ".libs" && rm -f "libgtkpeer.la" && ln -s "../libgtkpeer.la" "libgtkpeer.la" ) make[6]: Leaving directory `/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/native/jni/gtk-peer' Making all in qt-peer make[6]: Entering directory `/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/native/jni/qt-peer' moc -o slotcallbacks.moc.h /root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer/slotcallbacks.cpp make all-am make[7]: Entering directory `/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava/classpath/native/jni/qt-peer' if /bin/sh ../../../libtool --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -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 componentevent.lo -MD -MP -MF ".deps/componentevent.Tpo" -c -o componentevent.lo /root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer/componentevent.cpp; \ then mv -f ".deps/componentevent.Tpo" ".deps/componentevent.Plo"; else rm -f ".deps/componentevent.Tpo"; exit 1; fi libtool: compile: i686-pc-linux-gnu-g++ -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 componentevent.lo -MD -MP -MF .deps/componentevent.Tpo -c /root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer/componentevent.cpp -fPIC -DPIC -o .libs/componentevent.o In file included from ../../../../../libstdc++-v3/include/bits/char_traits.h:46, from ../../../../../libstdc++-v3/include/string:47, from /usr/include/qt4/QtCore/qstring.h:42, from /usr/include/qt4/QtCore/qobject.h:30, from /usr/include/qt4/QtGui/qwidget.h:28, from /usr/include/qt4/QtGui/QWidget:1, from /root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer/componentevent.cpp:39: ../../../../../libstdc++-v3/include/bits/stl_algobase.h: In function '_OI std::__copy_aux(_II, _II, _OI)': ../../../../../libstdc++-v3/include/bits/stl_algobase.h:363: error: expected primary-expression before ')' token ../../../../../libstdc++-v3/include/bits/stl_algobase.h:363: error: there are no arguments to '__is_pod' that depend on a template parameter, so a declaration of '__is_pod' must be available ../../../../../libstdc++-v3/include/bits/stl_algobase.h:363: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) ../../../../../libstdc++-v3/include/bits/stl_algobase.h:368: error: '__simple' cannot appear in a constant-expression ../../../../../libstdc++-v3/include/bits/stl_algobase.h:368: error: template argument 1 is invalid ../../../../../libstdc++-v3/include/bits/stl_algobase.h: In function '_BI2 std::__copy_backward_aux(_BI1, _BI1, _BI2)': ../../../../../libstdc++-v3/include/bits/stl_algobase.h:479: error: expected primary-expression before ')' token ../../../../../libstdc++-v3/include/bits/stl_algobase.h:479: error: there are no arguments to '__is_pod' that depend on a template parameter, so a declaration of '__is_pod' must be available ../../../../../libstdc++-v3/include/bits/stl_algobase.h:484: error: '__simple' cannot appear in a constant-expression ../../../../../libstdc++-v3/include/bits/stl_algobase.h:484: error: template argument 1 is invalid In file included from ../../../../../libstdc++-v3/include/string:47, from /usr/include/qt4/QtCore/qstring.h:42, from /usr/include/qt4/QtCore/qobject.h:30, from /usr/include/qt4/QtGui/qwidget.h:28, from /usr/include/qt4/QtGui/QWidget:1, from /root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer/componentevent.cpp:39: ../../../../../libstdc++-v3/include/bits/char_traits.h: In static member function 'static const char* std::char_traits<char>::find(const char*, size_t, const char&)': ../../../../../libstdc++-v3/include/bits/char_traits.h:264: error: '__builtin_memchr' was not declared in this scope In file included from ../../../../../libstdc++-v3/include/string:48, from /usr/include/qt4/QtCore/qstring.h:42, from /usr/include/qt4/QtCore/qobject.h:30, from /usr/include/qt4/QtGui/qwidget.h:28, from /usr/include/qt4/QtGui/QWidget:1, from /root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer/componentevent.cpp:39: ../../../../../libstdc++-v3/include/bits/allocator.h: At global scope: ../../../../../libstdc++-v3/include/bits/allocator.h:133: error: expected primary-expression before ')' token ../../../../../libstdc++-v3/include/bits/allocator.h:133: error: there are no arguments to '__is_empty' that depend on a template parameter, so a declaration of '__is_empty' must be available (continues for a few pages) In file included from ../../../../../libstdc++-v3/include/vector:71, from /usr/include/qt4/QtCore/qvector.h:34, from /usr/include/qt4/QtGui/qbrush.h:29, from /usr/include/qt4/QtGui/qpalette.h:29, from /usr/include/qt4/QtGui/qwidget.h:30, from /usr/include/qt4/QtGui/QWidget:1, from /root/downloads/gcc-4_3-trunk/libjava/classpath/native/jni/qt-peer/componentevent.cpp:39: ../../../../../libstdc++-v3/include/bits/stl_bvector.h: In member function 'void std::vector<bool, _Alloc>::swap(std::vector<bool, _Alloc>&)': ../../../../../libstdc++-v3/include/bits/stl_bvector.h:693: error: there are no arguments to '__is_empty' that depend on a template parameter, so a declaration of '__is_empty' must be available ../../../../../libstdc++-v3/include/bits/stl_bvector.h:693: error: '__is_empty' was not declared in this scope ../../../../../libstdc++-v3/include/bits/stl_bvector.h:693: error: template argument 2 is invalid ../../../../../libstdc++-v3/include/bits/stl_bvector.h:694: error: invalid type in declaration before '(' token make[7]: *** [componentevent.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 I'll give it a go but I'm not a C++ expert - someone else please. Just tried update to 126682, same result. -- Summary: Build breaks - libstdc++-v3/include/bits/stl_algobase.h: In function '_OI std::__copy_aux(_II, _II, _OI)': error: expected primary-expression before ')' token Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rob1weld at aol dot com 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=32781