This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Problems running the testsuite
- To: libstdc++ at gcc dot gnu dot org
- Subject: Problems running the testsuite
- From: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- Date: Tue, 27 Mar 2001 19:37:23 +0200 (CEST)
I have some problems running the libstdc++ testsuite.
First of all, the file istream_unformatted-2.txt is missing:
+ + 27_io/istream_sentry.cc
diff: ./istream_unformatted-2.txt: No such file or directory
+ diff: ./istream_unformatted-2.txt: No such file or directory
+ 27_io/istream_unformatted.cc
+ + 27_io/istringstream_members.cc
I am not sure if that file is really needed for istream_unformatted.cc.
Secondly, all executables are linked in such a way, that the symbols
are looked up in libc before in libstdc++, since tests_flags.in sets
LIBS="${LIBS} -nodefaultlibs -lc -lgcc -lc". This is contrary to the
way the libraries are linked when creating executables in the g++
testsuite and when g++ is invoked normally.
For example, if I compile istream_extractor_char.cc:
g++ -I. -v -o istream_extractor_char istream_extractor_char.cc
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-long-long --enable-languages=c,c++,f77,objc
gcc version 3.1 20010324 (experimental)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/cc1plus -v -I. -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ istream_extractor_char.cc -D__GNUG__=3 -D_GNU_SOURCE -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase istream_extractor_char.cc -version -o /tmp/cclFxxQN.s
GNU CPP version 3.1 20010324 (experimental) (cpplib) (i386 Linux/ELF)
GNU C++ version 3.1 20010324 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.1 20010324 (experimental).
#include "..." search starts here:
#include <...> search starts here:
.
/usr/local/include/g++-v3
/usr/local/include/g++-v3/i686-pc-linux-gnu
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/include
/usr/local/i686-pc-linux-gnu/include
/usr/include
End of search list.
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/bin/as -V -Qy -o /tmp/cclPu8g3.o /tmp/cclFxxQN.s
GNU assembler version 2.11.90.0.1 (i686-pc-linux-gnu) using BFD version 2.11.90.0.1
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o istream_extractor_char /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/crtbegin.o -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1 -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/lib -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../.. /tmp/cclPu8g3.o -lstdc++ -lm -lgcc_s -lc -lgcc_s /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/crtend.o /usr/lib/crtn.o
istream_extractor_char is linked in such a way "-lgcc_s -lc -lgcc_s"
that libgcc_s.so is searched before libc.so, this has as a consequence
that istream_extractor_char runs as expected. If the order is as
given in tests_flags.in, this code does not work since the wrong
exception handling code (from libc) is used.
Therefore, I propose to apply the following patch to tests_flags.in to
make the libstdc++ testsuite behaviour consistent with that of the g++
testsuite and the normal use.
2001-03-11 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* libstdc++-v3/tests_flags.in: Change the order of libstdc++
and libc
*** libstdc++-v3/tests_flags.in.orig Tue Mar 27 18:28:07 2001
--- libstdc++-v3/tests_flags.in Tue Mar 27 18:28:34 2001
*************** case ${query} in
*** 149,155 ****
case @target_os@ in
*cygwin*) LIBS="${LIBS} -nodefaultlibs -lgcc -lcygwin -luser32
-lkernel32 -ladvapi32 -lshell32" ;;
! *) LIBS="${LIBS} -nodefaultlibs -lc -lgcc -lc" ;;
esac
;;
--installed-library)
--- 149,155 ----
case @target_os@ in
*cygwin*) LIBS="${LIBS} -nodefaultlibs -lgcc -lcygwin -luser32
-lkernel32 -ladvapi32 -lshell32" ;;
! *) LIBS="${LIBS} -nodefaultlibs -lgcc -lc -lgcc" ;;
esac
;;
--installed-library)
This patch has the consequence that many additional testsuite
failures are removed, otherwise there are about ten additional
failures for statically and dynamically linked executables.
Results after applying the proposed patch:
host: Linux 2.4.2 #34 Sun Feb 25 20:03:34 CET 2001 i686
compiler: Reading specs from /home/peter/egcs/build/i686-pc-linux-gnu/libstdc++-v3/../../gcc/specs
Configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-long-long --enable-languages=c,c++,f77,objc
gcc version 3.1 20010324 (experimental)
g++: No input files
compiler flags: -ggdb3 -DDEBUG_ASSERT -ffunction-sections -fdata-sections
date: 20010327
pass/fail results: 109/3 shared + 104/8 static = 213/11 total
p == pass/fail execution test
+: pass, -b: build failure, -r: run failure, x: disabled
ctime == time to compile and link
etime == time for executable to run
text == size of the executable text section
data == size of the executable data section
total == size of the executable
p ctime etime text data total name
+ 5 0.181 416 24 2315 17_intro/header_cassert.cc -static
+ 2 0.687 416 24 2638 17_intro/header_cassert.cc
+ 2 0.182 432 24 2471 17_intro/header_cerrno.cc -static
+ 1 0.201 432 24 2794 17_intro/header_cerrno.cc
+ 1 0.184 768 24 3338 17_intro/header_ciso646.cc -static
+ 1 0.201 768 24 3661 17_intro/header_ciso646.cc
+ 1 0.181 448 24 3252 17_intro/header_csetjmp.cc -static
+ 2 0.203 448 24 3575 17_intro/header_csetjmp.cc
+ 1 0.181 416 24 2441 17_intro/header_cstdarg.cc -static
+ 2 0.200 416 24 2764 17_intro/header_cstdarg.cc
+ 1 0.181 432 24 2767 17_intro/header_cstddef.cc -static
+ 2 0.200 432 24 3090 17_intro/header_cstddef.cc
+ 2 0.182 400 24 12995 17_intro/header_cstdio.cc -static
+ 1 0.201 400 24 13318 17_intro/header_cstdio.cc
+ 1 0.181 560 24 11008 17_intro/header_cstdlib.cc -static
+ 2 0.200 560 24 11331 17_intro/header_cstdlib.cc
+ 2 0.182 400 24 2868 17_intro/header_cstring.cc -static
+ 1 0.201 400 24 3191 17_intro/header_cstring.cc
+ 1 0.181 400 24 7533 17_intro/header_ctime.cc -static
+ 2 0.202 400 24 7856 17_intro/header_ctime.cc
+ 1 0.181 400 24 13731 17_intro/header_cwchar.cc -static
+ 1 0.199 400 24 14054 17_intro/header_cwchar.cc
+ 1 0.181 384 24 2151 17_intro/header_cwctype.cc -static
+ 1 0.200 384 24 2474 17_intro/header_cwctype.cc
+ 7 0.181 384 24 114029 17_intro/header_fstream.cc -static
+ 6 0.201 384 24 114352 17_intro/header_fstream.cc
+ 5 0.181 384 24 115595 17_intro/header_iomanip.cc -static
+ 5 0.199 384 24 115918 17_intro/header_iomanip.cc
+ 5 0.181 384 24 77946 17_intro/header_ios.cc -static
+ 5 0.203 384 24 78269 17_intro/header_ios.cc
+ 1 0.181 384 24 17752 17_intro/header_iosfwd.cc -static
+ 1 0.201 384 24 18075 17_intro/header_iosfwd.cc
+ 7 0.186 248016 10680 2559679 17_intro/header_iostream.cc -static
+ 6 0.200 528 24 115105 17_intro/header_iostream.cc
+ 6 0.182 384 24 113984 17_intro/header_istream.cc -static
+ 5 0.200 384 24 114307 17_intro/header_istream.cc
+ 5 0.182 384 24 113984 17_intro/header_ostream.cc -static
+ 6 0.201 384 24 114307 17_intro/header_ostream.cc
+ 5 0.182 384 24 113984 17_intro/header_sstream.cc -static
+ 5 0.199 384 24 114307 17_intro/header_sstream.cc
+ 3 0.182 384 24 59019 17_intro/header_streambuf.cc -static
+ 4 0.200 384 24 59342 17_intro/header_streambuf.cc
+ 11 0.182 248016 10680 2587968 17_intro/headers.cc -static
+ 10 0.201 528 24 143396 17_intro/headers.cc
+ 2 0.181 384 24 23096 17_intro/headers_c++.cc -static
+ 2 0.200 384 24 23419 17_intro/headers_c++.cc
+ 2 0.183 384 24 23093 17_intro/headers_c.cc -static
+ 2 0.199 384 24 23416 17_intro/headers_c.cc
+ 1 0.181 18720 1788 182310 18_support/numeric_limits.cc -static
+ 2 0.200 11120 76 113203 18_support/numeric_limits.cc
+ 4 0.183 252112 10704 2468009 19_diagnostics/stdexceptions.cc -static
+ 4 0.200 16464 172 169121 19_diagnostics/stdexceptions.cc
+ 3 0.182 25920 1912 205668 20_util/auto_ptr.cc -static
+ 2 0.200 17776 164 132840 20_util/auto_ptr.cc
-r 6 0.186 261568 10672 2554301 21_strings/append.cc -static
+ 6 0.200 28464 112 259280 21_strings/append.cc
+ 8 0.181 268416 10672 2608906 21_strings/capacity.cc -static
+ 7 0.199 34976 80 312439 21_strings/capacity.cc
+ 5 0.181 254928 10704 2505836 21_strings/char_traits_requirements.cc -static
+ 5 0.198 19328 124 207050 21_strings/char_traits_requirements.cc
+ 3 0.182 400 24 40416 21_strings/char_traits_typedefs.cc -static
+ 3 0.201 400 24 40739 21_strings/char_traits_typedefs.cc
+ 5 0.181 252832 10672 2470374 21_strings/compare.cc -static
+ 4 0.200 18336 80 171990 21_strings/compare.cc
-r 6 0.000 258480 10672 2531812 21_strings/ctor_copy_dtor.cc -static
+ 5 0.205 23200 136 233376 21_strings/ctor_copy_dtor.cc
-r 4 0.186 251056 10672 2464387 21_strings/element_access.cc -static
+ 4 0.200 15632 112 165196 21_strings/element_access.cc
+ 5 0.184 254272 10672 2469212 21_strings/find.cc -static
+ 5 0.198 19040 80 169810 21_strings/find.cc
-r 6 0.185 259136 10672 2536493 21_strings/insert.cc -static
+ 5 0.202 25872 136 241435 21_strings/insert.cc
+ 13 0.223 263376 10728 2675990 21_strings/inserters_extractors.cc -static
+ 13 0.242 54608 1392 426486 21_strings/inserters_extractors.cc
+ 7 0.181 256832 10672 2496721 21_strings/invariants.cc -static
+ 5 0.199 22960 80 199540 21_strings/invariants.cc
+ 6 0.183 263200 10672 2517927 21_strings/nonmember.cc -static
+ 6 0.200 29584 80 220931 21_strings/nonmember.cc
+ 5 0.182 251344 10672 2466312 21_strings/operations.cc -static
+ 4 0.198 16608 80 167499 21_strings/operations.cc
+ 6 0.185 259584 10672 2541679 21_strings/replace.cc -static
+ 6 0.200 25760 80 244526 21_strings/replace.cc
+ 5 0.181 251536 10672 2463191 21_strings/rfind.cc -static
+ 4 0.198 15632 80 162408 21_strings/rfind.cc
-r 6 0.185 253968 10672 2495545 21_strings/substr.cc -static
+ 5 0.203 18880 112 196971 21_strings/substr.cc
+ 6 0.181 249232 10672 2579257 22_locale/codecvt_char_char.cc -static
+ 6 0.202 11904 76 207604 22_locale/codecvt_char_char.cc
+ 8 0.281 256640 10992 2564466 22_locale/codecvt_unicode_char.cc -static
+ 8 0.220 20832 456 265484 22_locale/codecvt_unicode_char.cc
+ 8 0.204 255040 11024 2561794 22_locale/codecvt_unicode_wchar_t.cc -static
+ 7 0.219 19232 488 262924 22_locale/codecvt_unicode_wchar_t.cc
+ 6 0.181 249472 10672 2580683 22_locale/codecvt_wchar_t_char.cc -static
+ 5 0.200 12144 76 209088 22_locale/codecvt_wchar_t_char.cc
+ 8 0.186 261696 10960 2577805 22_locale/ctor_copy_dtor.cc -static
+ 7 0.205 26256 568 281849 22_locale/ctor_copy_dtor.cc
+ 6 0.181 249888 11024 2576653 22_locale/ctype.cc -static
+ 6 0.199 12496 544 205299 22_locale/ctype.cc
+ 7 0.183 251920 10736 2574667 22_locale/ctype_char_members.cc -static
+ 6 0.200 14336 304 203974 22_locale/ctype_char_members.cc
+ 6 0.183 249648 10736 2570759 22_locale/ctype_wchar_t_members.cc -static
+ 5 0.201 12096 304 200271 22_locale/ctype_wchar_t_members.cc
+ 12 0.183 262112 12464 2697152 22_locale/facet.cc -static
+ 12 0.201 48272 3808 449475 22_locale/facet.cc
+ 7 0.183 251200 10736 2544294 22_locale/global_templates.cc -static
+ 6 0.205 15392 304 246495 22_locale/global_templates.cc
+ 7 0.183 255216 10640 2559448 22_locale/members.cc -static
+ 7 0.201 22480 280 266195 22_locale/members.cc
+ 7 0.182 251136 10864 2530372 22_locale/numpunct.cc -static
+ 7 0.199 15040 312 229744 22_locale/numpunct.cc
+ 8 0.183 252256 10640 2552415 22_locale/numpunct_byname.cc -static
+ 7 0.204 19120 280 258414 22_locale/numpunct_byname.cc
+ 7 0.183 251040 10672 2520623 22_locale/numpunct_char_members.cc -static
+ 8 0.201 15216 80 220815 22_locale/numpunct_char_members.cc
+ 7 0.184 251824 10704 2549225 22_locale/operators.cc -static
+ 7 0.220 16768 272 253078 22_locale/operators.cc
+ 7 0.182 251568 10704 2533795 22_locale/static_members.cc -static
+ 7 0.200 16368 272 237297 22_locale/static_members.cc
+ 9 0.187 257376 10672 2584171 23_containers/bitset_ctor.cc -static
+ 8 0.200 23024 176 287606 23_containers/bitset_ctor.cc
+ 11 0.804 268880 10672 2619495 23_containers/bitset_shift.cc -static
+ 10 0.819 33152 176 320486 23_containers/bitset_shift.cc
-b 9 0.819 0 0 0 23_containers/map_operators.cc -static
-b 9 0.819 0 0 0 23_containers/map_operators.cc
+ 10 0.000 257136 10672 2619237 23_containers/multiset.cc -static
+ 9 0.000 26704 88 327538 23_containers/multiset.cc
-b 4 0.000 0 0 0 23_containers/set_operators.cc -static
-b 4 0.000 0 0 0 23_containers/set_operators.cc
+ 5 0.185 255376 10672 2484957 23_containers/vector_capacity.cc -static
+ 4 0.199 18400 80 181513 23_containers/vector_capacity.cc
+ 9 0.185 282096 10672 2680370 23_containers/vector_ctor.cc -static
+ 9 0.198 45120 80 377064 23_containers/vector_ctor.cc
+ 5 0.184 249536 10672 2456412 23_containers/vector_element_access.cc -static
+ 4 0.204 12560 112 153737 23_containers/vector_element_access.cc
+ 6 0.182 263584 10672 2572302 23_containers/vector_modifiers.cc -static
+ 5 0.199 26608 80 268916 23_containers/vector_modifiers.cc
+ 10 0.183 258144 10672 2610814 24_iterators/istreambuf_iterator.cc -static
+ 9 0.199 29504 584 326954 24_iterators/istreambuf_iterator.cc
+ 9 0.181 274240 10672 2645461 24_iterators/iterator.cc -static
+ 8 0.200 39664 80 347093 24_iterators/iterator.cc
+ 3 0.181 2224 24 57003 25_algorithms/lower_bound.cc -static
+ 3 0.200 2224 24 57326 25_algorithms/lower_bound.cc
+ 2 0.180 912 24 38477 25_algorithms/min_max.cc -static
+ 2 0.200 912 24 38800 25_algorithms/min_max.cc
+ 11 0.000 253472 10672 2629782 26_numerics/binary_closure.cc -static
+ 10 0.000 22928 88 338160 26_numerics/binary_closure.cc
+ 2 0.183 768 24 23798 26_numerics/buggy_complex.cc -static
+ 2 0.201 768 24 24121 26_numerics/buggy_complex.cc
+ 2 0.180 944 24 13153 26_numerics/c_math.cc -static
+ 2 0.200 944 24 13532 26_numerics/c_math.cc
+ 11 0.185 272128 10672 2665990 26_numerics/complex_inserters_extractors.cc -static
+ 10 0.205 35360 592 340881 26_numerics/complex_inserters_extractors.cc
+ 2 0.184 1632 24 26428 26_numerics/complex_value.cc -static
+ 2 0.198 1632 24 26807 26_numerics/complex_value.cc
+ 5 0.181 19808 1816 233987 26_numerics/valarray.cc -static
+ 6 0.200 11664 76 160799 26_numerics/valarray.cc
+ 12 0.184 279056 11336 2736392 27_io/filebuf.cc -static
+ 11 0.201 52832 1364 389468 27_io/filebuf.cc
+ 9 0.183 251168 10696 2633121 27_io/filebuf_members.cc -static
+ 8 0.204 24144 700 284015 27_io/filebuf_members.cc
+ 5 0.181 2192 24 84091 27_io/fpos.cc -static
+ 5 0.201 2192 24 84414 27_io/fpos.cc
+ 9 0.457 251536 10664 2632287 27_io/ifstream_members.cc -static
+ 8 0.512 24400 680 283148 27_io/ifstream_members.cc
+ 9 0.181 255424 10672 2597072 27_io/ios_base_callbacks.cc -static
+ 8 0.199 26544 380 312164 27_io/ios_base_callbacks.cc
-r 10 24689.000 255216 10672 2611713 27_io/ios_base_members_static.cc -static
-r 9 24689.000 31456 400 334496 27_io/ios_base_members_static.cc
+ 9 0.182 254080 10672 2595799 27_io/ios_base_storage.cc -static
+ 8 0.199 25120 584 311610 27_io/ios_base_storage.cc
+ 8 0.182 255776 10672 2594153 27_io/ios_ctor.cc -static
+ 8 0.201 25920 380 307438 27_io/ios_ctor.cc
+ 11 777.000 258416 10704 2632880 27_io/ios_manip_basefield.cc -static
+ 11 777.000 36704 696 360556 27_io/ios_manip_basefield.cc
+ 11 0.000 258736 10736 2636290 27_io/ios_manip_fmtflags.cc -static
+ 11 0.000 38064 792 366151 27_io/ios_manip_fmtflags.cc
+ 6 0.187 250208 10672 2539271 27_io/ios_members.cc -static
+ 5 0.202 14128 188 172221 27_io/ios_members.cc
+ 6 0.180 384 24 113964 27_io/istream.cc -static
+ 5 0.199 384 24 114287 27_io/istream.cc
+ 13 1.000 272864 11152 2683561 27_io/istream_extractor_arith.cc -static
+ 12 1.000 59200 1688 424155 27_io/istream_extractor_arith.cc
+ 9 0.183 260528 10672 2614270 27_io/istream_extractor_char.cc -static
+ 9 0.201 33984 484 333238 27_io/istream_extractor_char.cc
+ 11 0.183 261008 10696 2638787 27_io/istream_extractor_other.cc -static
+ 10 0.204 42160 880 372107 27_io/istream_extractor_other.cc
+ 9 0.184 257328 10672 2614472 27_io/istream_manip.cc -static
+ 9 0.201 31872 584 335754 27_io/istream_manip.cc
+ 12 0.182 262800 10696 2640644 27_io/istream_seeks.cc -static
+ 11 0.200 45408 1040 376517 27_io/istream_seeks.cc
+ 10 0.182 255472 10704 2607848 27_io/istream_sentry.cc -static
+ 9 0.203 28944 676 327638 27_io/istream_sentry.cc
+ 13 0.226 268720 10728 2661030 27_io/istream_unformatted.cc -static
+ 12 0.250 54144 1104 400563 27_io/istream_unformatted.cc
+ 9 0.182 255280 10672 2608014 27_io/istringstream_members.cc -static
+ 9 0.204 28720 592 327759 27_io/istringstream_members.cc
+ 13 0.000 249520 10672 2571734 27_io/narrow_stream_objects.cc -static
+ 11 0.000 18352 88 279873 27_io/narrow_stream_objects.cc
+ 9 0.551 251664 10664 2631590 27_io/ofstream_members.cc -static
+ 8 0.571 24368 680 282291 27_io/ofstream_members.cc
+ 5 0.183 384 24 113964 27_io/ostream.cc -static
+ 6 0.203 384 24 114287 27_io/ostream.cc
+ 15 0.202 272128 10864 2749731 27_io/ostream_inserter_arith.cc -static
+ 14 0.225 64432 1512 506045 27_io/ostream_inserter_arith.cc
+ 12 0.366 263264 10696 2658433 27_io/ostream_inserter_char.cc -static
+ 12 0.383 50032 976 400540 27_io/ostream_inserter_char.cc
+ 11 0.200 257680 10728 2637604 27_io/ostream_inserter_other.cc -static
+ 10 0.217 40416 1044 373955 27_io/ostream_inserter_other.cc
+ 10 0.183 256928 10672 2617042 27_io/ostream_manip.cc -static
+ 10 0.200 34448 592 342700 27_io/ostream_manip.cc
+ 11 0.183 255072 10696 2622427 27_io/ostream_seeks.cc -static
+ 10 0.200 35040 968 354234 27_io/ostream_seeks.cc
+ 9 0.182 255152 10704 2608991 27_io/ostream_unformatted.cc -static
+ 9 0.201 30096 612 331163 27_io/ostream_unformatted.cc
+ 10 0.183 261472 11088 2631729 27_io/streambuf.cc -static
+ 10 0.200 37744 832 354587 27_io/streambuf.cc
+ 10 0.182 267552 10672 2596189 27_io/stringbuf.cc -static
+ 9 0.201 38896 308 309859 27_io/stringbuf.cc
+ 11 0.186 258128 11280 2639894 27_io/stringstream.cc -static
+ 11 0.200 40000 1524 372196 27_io/stringstream.cc
+ 12 0.000 250224 10672 2582900 27_io/wide_stream_objects.cc -static
+ 11 0.000 19856 88 293552 27_io/wide_stream_objects.cc
+ 9 0.183 248016 10680 2621696 ext/headers.cc -static
+ 8 0.204 528 24 177104 ext/headers.cc
testrun == 1552 seconds