Most of the suite passes, but I get errors like these: /tmp/ccJOH1iG.o: In function `test01()': /tmp/ccJOH1iG.o(.text._Z6test01v+0x6c): undefined reference to `typeinfo for wchar_t' /tmp/ccJOH1iG.o: In function `test01()': /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:43: undefined reference to `typeinfo for short' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:45: undefined reference to `typeinfo for signed char' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:45: undefined reference to `typeinfo for signed char' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:47: undefined reference to `typeinfo for char' collect2: ld returned 1 exit status mushroom~...gcc-obj>uname -a SunOS mushroom 5.7 Generic_106541-19 sun4u sparc SUNW,Ultra-2 mushroom~...gcc-obj>alias CONFIGURECVS setenv CC gcc ; /mnt/home3/utilities/gcc/configure --prefix=/mnt/home3/utilities --verbose --with-as=/mnt/home3/utilities/bin/as --with-ld=/mnt/home3/utilities/bin/ld --with-gnu-as --with-gnu-ld --disable-multilib --enable-languages=c++ |& tee clog mushroom~...gcc-obj>alias BUILD nice gmake CFLAGS='-O' BOOT_CFLAGS='-O' LIBCFLAGS='-g -O' CXXFLAGS='-O' LIBCXXFLAGS='-g -O -fno-implicit-templates' bootstrap |& tee log mushroom~...gcc-obj>g++ -v Reading specs from /mnt/home3/utilities/lib/gcc/sparc-sun-solaris2.7/3.5.0/specs Configured with: /mnt/home3/utilities/gcc/configure --prefix=/mnt/home3/utilities --verbose --with-as=/mnt/home3/utilities/bin/as --with-ld=/mnt/home3/utilities/bin/ld --with-gnu-as --with-gnu-ld --disable-multilib --enable-languages=c++ Thread model: posix gcc version 3.5.0 20040621 (experimental)
Created attachment 6604 [details] Log file from libstdc++ testsuite run
For some reasons the symbols are not in libstdc++ when they should be. I will look into this when I get some time.
This is a dup of bug 4025, the problem is in the documention and nobody has fixed it yet. *** This bug has been marked as a duplicate of 4025 ***
Even after removing no-implicit-template I still get errors. I will attach the entire log, which has other errors, including ICEs. I have not yet checked to see whether those other errors have been reported. /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:61: undefined reference to `typeinfo for long long' /export/home/mckelvey/utilities/gcc-obj/sparc-sun-solaris2.7/libstdc++-v3/include/iostream:77: undefined reference to `typeinfo for long' /mnt/home3/utilities/gcc/libstdc++-v3/libsupc++/typeinfo:104: undefined reference to `typeinfo for long long' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:61: undefined reference to `typeinfo for long' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:41: undefined reference to `typeinfo for int' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:41: undefined reference to `typeinfo for int' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:41: undefined reference to `typeinfo for short' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:43: undefined reference to `typeinfo for short' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:43: undefined reference to `typeinfo for signed char' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:61: undefined reference to `typeinfo for signed char' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:61: undefined reference to `typeinfo for signed char' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:47: undefined reference to `typeinfo for char' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:47: undefined reference to `typeinfo for char' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:50: undefined reference to `typeinfo for wchar_t' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:50: undefined reference to `typeinfo for wchar_t' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:43: undefined reference to `typeinfo for short' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:45: undefined reference to `typeinfo for signed char' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:45: undefined reference to `typeinfo for signed char' /mnt/home3/utilities/gcc/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc:47: undefined reference to `typeinfo for char' collect2: ld returned 1 exit status
Created attachment 6733 [details] Zipped log file of libstdc++ test suite
Are you sure that you are building with a clean source because it looks like you must be doing something wrong as nobody else gets these.
I refetched everything from CVS and rebuilt. I get the same kinds of errors. This is how I'm configuring and building: nice gmake CFLAGS='' BOOT_CFLAGS='' LIBCFLAGS='-g -O' CXXFLAGS='-O' LIBCXXFLAGS='-g -O' bootstrap |& tee log setenv CC gcc ; /mnt/home3/utilities/gcc/configure --prefix=/mnt/home3/utilities --verbose --with-as=/mnt/home3/utilities/bin/as --with-ld=/mnt/home3/utilities/bin/ld --with-gnu-as --with-gnu-ld --disable-multilib --enable-languages=c++ |& tee clog I build in a clean directory. I'm using binutils 2.13.2.
Created attachment 6765 [details] Latest log of libstdc++ tests
I built yesterday and this bug seems to have disappeared.
So closing as fixed.