This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Severe problems running the libstdc++ test suite on the gcc 3.0branch



I cannot run the libstdc++ testsuite after a checkout of the CVS
sources this afternoon, since the g++ compiler does not find the
required header files. Therefore, all tests fail because there are no
executables generated.  
E.g.:
WARNING: 17_intro/header_cassert.cc compilation failed to produce executable

The header files from libstdc++ are located one level above than
specified in the variable SRC_DIR in testsuite_flags. 

If I replace SRC_DIR= ../../../gcc/libstdc++-v3 by
SRC_DIR=../../../../gcc/libstdc++-v3 in testsuite_flags, the test
suite does work. I know that testsuite_flags is a generated file, but
I have no knowledge of the configure machinery, therefore I do not
know how to fix that problem. All I can glean from testsuite_flags.in,
is that the substitution of SRC_DIR=@glibcpp_srcdir@ seems to go
wrong. Is replacing SRCDIR with SRC_DIR=../@glibcpp_srcdir@ a viable
solution? 
 
Hope this helps,
Peter Schmid  

Results after the modification on i686-pc-linux-gnu.
FAIL: 21_strings/c_strings.cc (test for excess errors)
WARNING: 21_strings/c_strings.cc compilation failed to produce executable
FAIL: 21_strings/ctor_copy_dtor.cc execution test
FAIL: 21_strings/insert.cc execution test
XPASS: 21_strings/inserters_extractors.cc  (test for warnings, line 45)
FAIL: 26_numerics/c99_macros.cc (test for excess errors)
XPASS: 27_io/istream_unformatted.cc  (test for warnings, line 146)
XPASS: 27_io/istream_unformatted.cc  (test for warnings, line 238)
XPASS: 27_io/istream_unformatted.cc  (test for warnings, line 364)
XPASS: 27_io/stringstream.cc  (test for warnings, line 52)

                === libstdc++-v3 Summary ===

# of expected passes            221
# of unexpected failures        4
# of unexpected successes       5
# of expected failures          9

An example for the failures before the modification: 
Executing on host: /mnt/egcs/build/gcc/g++ -B/mnt/egcs/build/gcc/ -nostdinc++ -L/mnt/egcs/build/i686-pc-linux-gnu/libstdc++-v3/src -L/mnt/egcs/build/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 -ggdb3 -DDEBUG_ASSERT -ffunction-sections -fdata-sections -nostdinc++ -I/mnt/egcs/build/i686-pc-linux-gnu/libstdc++-v3/include -I../../../gcc/libstdc++-v3/include -I../../../gcc/libstdc++-v3/include/std -I../../../gcc/libstdc++-v3/include/c_std -I../../../gcc/libstdc++-v3/libsupc++ -I../../../gcc/libstdc++-v3/libio -I../../../gcc/libstdc++-v3/testsuite -I../../../gcc/libstdc++-v3/include/backwards -I../../../gcc/libstdc++-v3/include/ext -static /mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc    -DDEBUG_ASSERT  -lm   -o ./a.out    (timeout = 300)
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc:23:19: cassert: No such file or directory
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc: In function 
   `void gnu::test01()':
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc:29: `assert' 
   undeclared (first use this function)
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc:29: (Each 
   undeclared identifier is reported only once for each function it appears 
   in.)
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc:31:6: #error "assert_must_be_a_macro"
compiler exited with status 1
output is:


Test Run By peter on Tue May 15 19:32:20 2001
Native configuration is i686-pc-linux-gnu

		=== libstdc++-v3 tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target.
Using /mnt/egcs/gcc/libstdc++-v3/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /mnt/egcs/gcc/libstdc++-v3/testsuite/libstdc++-v3.dg/dg.exp ...
Executing on host: ulimit -d 16384   (timeout = 300)
Executing on host: ulimit -v 16384   (timeout = 300)
Executing on host: /mnt/egcs/build/gcc/g++ -B/mnt/egcs/build/gcc/ -nostdinc++ -L/mnt/egcs/build/i686-pc-linux-gnu/libstdc++-v3/src -L/mnt/egcs/build/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 -ggdb3 -DDEBUG_ASSERT -ffunction-sections -fdata-sections -nostdinc++ -I/mnt/egcs/build/i686-pc-linux-gnu/libstdc++-v3/include -I../../../gcc/libstdc++-v3/include -I../../../gcc/libstdc++-v3/include/std -I../../../gcc/libstdc++-v3/include/c_std -I../../../gcc/libstdc++-v3/libsupc++ -I../../../gcc/libstdc++-v3/libio -I../../../gcc/libstdc++-v3/testsuite -I../../../gcc/libstdc++-v3/include/backwards -I../../../gcc/libstdc++-v3/include/ext -static /mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc    -DDEBUG_ASSERT  -lm   -o ./a.out    (timeout = 300)
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc:23:19: cassert: No such file or directory
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc: In function 
   `void gnu::test01()':
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc:29: `assert' 
   undeclared (first use this function)
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc:29: (Each 
   undeclared identifier is reported only once for each function it appears 
   in.)
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc:31:6: #error "assert_must_be_a_macro"
compiler exited with status 1
output is:
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc:23:19: cassert: No such file or directory
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc: In function 
   `void gnu::test01()':
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc:29: `assert' 
   undeclared (first use this function)
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc:29: (Each 
   undeclared identifier is reported only once for each function it appears 
   in.)
/mnt/egcs/gcc/libstdc++-v3/testsuite/17_intro/header_cassert.cc:31:6: #error "assert_must_be_a_macro"

                === libstdc++-v3 Summary ===

# of expected passes            2
# of unexpected failures        114
# of unexpected successes       5
# of expected failures          9
make[2]: *** [check-DEJAGNU] Error 1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]