Bug 16140 - [4.0 Regression] Errors in libstdc++ testsuite; recent CVS
Summary: [4.0 Regression] Errors in libstdc++ testsuite; recent CVS
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2004-06-22 15:20 UTC by James McKelvey
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host: sparc-sun-solaris2.7
Target: sparc-sun-solaris2.7
Build: sparc-sun-solaris2.7
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Log file from libstdc++ testsuite run (31.47 KB, application/octet-stream)
2004-06-22 15:21 UTC, James McKelvey
Details
Zipped log file of libstdc++ test suite (33.83 KB, application/octet-stream)
2004-07-12 15:16 UTC, James McKelvey
Details
Latest log of libstdc++ tests (21.25 KB, application/octet-stream)
2004-07-16 14:48 UTC, James McKelvey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James McKelvey 2004-06-22 15:20:31 UTC
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)
Comment 1 James McKelvey 2004-06-22 15:21:48 UTC
Created attachment 6604 [details]
Log file from libstdc++ testsuite run
Comment 2 Andrew Pinski 2004-06-22 15:37:28 UTC
For some reasons the symbols are not in libstdc++ when they should be.  I will look into this when I get 
some time.
Comment 3 Andrew Pinski 2004-07-09 04:56:00 UTC
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 ***
Comment 4 James McKelvey 2004-07-12 15:14:11 UTC
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
Comment 5 James McKelvey 2004-07-12 15:16:06 UTC
Created attachment 6733 [details]
Zipped log file of libstdc++ test suite
Comment 6 Andrew Pinski 2004-07-12 15:19:12 UTC
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.
Comment 7 James McKelvey 2004-07-16 14:45:50 UTC
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.
Comment 8 James McKelvey 2004-07-16 14:48:10 UTC
Created attachment 6765 [details]
Latest log of libstdc++ tests
Comment 9 James McKelvey 2004-08-12 14:54:59 UTC
I built yesterday and this bug seems to have disappeared.
Comment 10 Andrew Pinski 2004-08-12 14:57:13 UTC
So closing as fixed.