V3 testsuite results (with required minor patch), FreeBSD 3.4

Loren James Rittle rittle@latour.rsch.comm.mot.com
Mon Nov 13 21:42:00 GMT 2000


[Note to David: I will be checking 4.2 and CURRENT next.  I think that
 it is more important than fixing shared library support on 3.4 (see
 below) although I'm convinced it must be something simple.]

[Note to other BSD people that always configure with thread support:
 at the very least, you will most likely need an acinclude.m4 patch in the
 region of GLIBCPP_ENABLE_ATOMICITY.  One for FreeBSD was added days ago.]

Off and on, I have tried to get libstdc++-v3 building on FreeBSD again
after the libio upgrade.  Having seen enough others take the arrows in
the back without dying, I was prompted to try again last Friday
(without complete success) and then today.  Tonight, I was able to
build everything in order to run 'make check'.

I have been (mistakingly?) trying to configure and build with
--enable-cshadow-headers (if you have completely bootstrapped with
this option on any platform, please advise me) and without
--enable-cstdio=stdio (I recommend trying this recent option, if your
platform isn't building against libio after the July upgrade).

Thank you Benjamin for adding support for --enable-cstdio=stdio
a few weeks ago!

Here are the interesting flags I used to bootstrap:

--enable-shared --enable-threads=posix --enable-cstdio=stdio

Is there any good reason why I should work towards making
--enable-cstdio=libio work as well?  It appears not.

If not, would an additional patch to make --enable-cstdio=stdio the
default on FreeBSD be accepted?

Regards,
Loren

Here is the small patch required (notice that no patch was yet
required to libstdc++-v3/config/os/bsd/bits/os_defines.h) [Would a V3
guru please review (I think it is obvious and it has passed bootstrap
on i686-unknown-freebsd3.4) and install for me since I have no write
access]:

2000-11-13  Loren J. Rittle  <ljrittle@acm.org>
	* config/c_io_stdio.h: Don't define __c_wfile_type
        when _GLIBCPP_USE_WCHAR_T is not defined.

Index: libstdc++-v3/config/c_io_stdio.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/config/c_io_stdio.h,v
retrieving revision 1.1
diff -c -r1.1 c_io_stdio.h
*** c_io_stdio.h	2000/11/01 21:36:48	1.1
--- c_io_stdio.h	2000/11/14 03:45:16
***************
*** 56,64 ****
  #define _GLIBCPP_BASIC_FILE_ENCAPSULATION 1
    typedef FILE __c_file_type;
  
-   typedef _IO_wide_data __c_wfile_type;
  
  #ifdef _GLIBCPP_USE_WCHAR_T
    extern "C" struct __c_libio_codecvt { };
  #endif 
  
--- 56,64 ----
  #define _GLIBCPP_BASIC_FILE_ENCAPSULATION 1
    typedef FILE __c_file_type;
  
  
  #ifdef _GLIBCPP_USE_WCHAR_T
+   typedef _IO_wide_data __c_wfile_type;
    extern "C" struct __c_libio_codecvt { };
  #endif 
  

Here are the testsuite results (I have not yet determined why results
for shared are much worse than for static - it doesn't appear to be
directly related to the third point learned the hard way by Mark
Mitchell in http://sources.redhat.com/ml/libstdc++/2000-11/msg00139.html
but I haven't confirmed that yet):

host: FreeBSD 3.4-STABLE FreeBSD 3.4-STABLE #1: Tue Mar  7 20:58:44 CST 2000     root@latour.rsch.comm.mot.com:/usr/src/sys/compile/LATOUR  i386
compiler: g++: No input files
Configured with: /usr/users/rittle/outside-cvs-src/egcs/configure --enable-shared --enable-threads=posix --enable-cstdio=stdio --prefix=/usr/local/beta-gcc --with-gnu-as --with-as=/usr/local/beta-gcc/bin/as --with-gnu-ld --with-ld=/usr/local/beta-gcc/bin/ld i686-unknown-freebsd3.4
compiler flags: -ggdb3 -DDEBUG_ASSERT -ffunction-sections -fdata-sections 
date: 20001113
pass/fail results:  105/77
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

(First static, then shared.)
p ctime	etime	text	data	total	name	
+  2	0.097	32867	3824	59035	17_intro/header_ciso646.cc
+  1	0.104	873	16	18348	17_intro/header_ciso646.cc

+  6	0.099	858	44	167516	17_intro/header_fstream.cc
+  6	0.104	426	32	165432	17_intro/header_fstream.cc

+  5	0.097	858	32	116131	17_intro/header_iomanip.cc
+  5	0.104	426	20	114047	17_intro/header_iomanip.cc

+  4	0.098	858	32	85197	17_intro/header_ios.cc
+  4	0.101	426	20	83113	17_intro/header_ios.cc

+  2	0.098	858	28	7311	17_intro/header_iosfwd.cc
+  1	0.105	426	16	5224	17_intro/header_iosfwd.cc

+  5	0.152	207047	8504	1735802	17_intro/header_iostream.cc
-b 5	0.152	0	0	0	17_intro/header_iostream.cc

+  5	0.097	858	32	113651	17_intro/header_istream.cc
+  5	0.102	426	20	111567	17_intro/header_istream.cc

+  4	0.202	858	32	85205	17_intro/header_ostream.cc
+  4	0.102	426	20	83121	17_intro/header_ostream.cc

+  5	0.097	858	32	113651	17_intro/header_sstream.cc
+  5	0.101	426	20	111567	17_intro/header_sstream.cc

+  4	0.097	858	28	83230	17_intro/header_streambuf.cc
+  4	0.101	426	16	81146	17_intro/header_streambuf.cc

+  13	0.100	207399	9016	1819365	17_intro/headers.cc
-b 12	0.100	0	0	0	17_intro/headers.cc

+  2	0.099	57079	4348	205656	18_support/numeric_limits.cc
+  2	0.101	16317	500	125941	18_support/numeric_limits.cc

-b 3	0.101	0	0	0	20_util/auto_ptr.cc
-b 3	0.101	0	0	0	20_util/auto_ptr.cc

+  8	0.117	85026	4508	630696	21_strings/append.cc
-b 8	0.117	0	0	0	21_strings/append.cc

+  9	0.098	85021	4508	557712	21_strings/capacity.cc
-b 9	0.098	0	0	0	21_strings/capacity.cc

+  5	0.097	64013	4508	345959	21_strings/char_traits.cc
-b 5	0.097	0	0	0	21_strings/char_traits.cc

+  5	0.098	68029	4508	358537	21_strings/compare.cc
-b 6	0.098	0	0	0	21_strings/compare.cc

+  8	0.099	73309	4508	452628	21_strings/ctor_copy_dtor.cc
-b 7	0.099	0	0	0	21_strings/ctor_copy_dtor.cc

+  5	0.098	64925	4508	350749	21_strings/element_access.cc
-b 4	0.098	0	0	0	21_strings/element_access.cc

+  6	0.099	85452	4508	515302	21_strings/find.cc
-b 6	0.099	0	0	0	21_strings/find.cc

+  7	0.099	76317	4508	458232	21_strings/insert.cc
-b 7	0.099	0	0	0	21_strings/insert.cc

-r 13	0.000	214359	8504	1895270	21_strings/inserters_extractors.cc
-b 12	0.000	0	0	0	21_strings/inserters_extractors.cc

+  7	0.099	72749	4508	391660	21_strings/invariants.cc
-b 6	0.099	0	0	0	21_strings/invariants.cc

+  7	0.098	79405	4508	425201	21_strings/nonmember.cc
-b 7	0.098	0	0	0	21_strings/nonmember.cc

+  5	0.107	65773	4508	352660	21_strings/operations.cc
-b 5	0.107	0	0	0	21_strings/operations.cc

+  7	0.100	75709	4508	466216	21_strings/replace.cc
-b 7	0.100	0	0	0	21_strings/replace.cc

+  5	0.098	64845	4508	349197	21_strings/rfind.cc
-b 5	0.098	0	0	0	21_strings/rfind.cc

+  6	0.099	68429	4508	398912	21_strings/substr.cc
-b 6	0.099	0	0	0	21_strings/substr.cc

+  8	0.103	207930	8504	1818216	22_locale/codecvt_char_char.cc
-b 8	0.103	0	0	0	22_locale/codecvt_char_char.cc

+  7	0.100	858	40	165585	22_locale/codecvt_unicode_char.cc
+  8	0.103	426	28	163501	22_locale/codecvt_unicode_char.cc

+  7	0.099	858	40	165591	22_locale/codecvt_unicode_wchar_t.cc
+  6	0.109	426	28	163507	22_locale/codecvt_unicode_wchar_t.cc

-r 8	0.107	208698	8504	1820889	22_locale/codecvt_wchar_t_char.cc
-b 7	0.107	0	0	0	22_locale/codecvt_wchar_t_char.cc

+  6	0.106	858	40	165573	22_locale/ctor_copy_dtor.cc
+  7	0.104	426	28	163489	22_locale/ctor_copy_dtor.cc

+  8	0.099	207978	8792	1797438	22_locale/ctype.cc
-b 7	0.099	0	0	0	22_locale/ctype.cc

+  8	0.102	208618	8568	1795450	22_locale/ctype_char_members.cc
-b 7	0.102	0	0	0	22_locale/ctype_char_members.cc

+  7	0.099	858	40	165587	22_locale/ctype_wchar_t_members.cc
+  6	0.101	426	28	163503	22_locale/ctype_wchar_t_members.cc

+  13	0.117	214935	10072	1983878	22_locale/facet.cc
-b 12	0.117	0	0	0	22_locale/facet.cc

+  9	0.099	208554	8536	1840563	22_locale/global_templates.cc
-b 8	0.099	0	0	0	22_locale/global_templates.cc

+  9	0.098	208090	8536	1842821	22_locale/operators.cc
-b 8	0.098	0	0	0	22_locale/operators.cc

+  8	0.098	208522	8536	1818364	22_locale/static_members.cc
-b 8	0.098	0	0	0	22_locale/static_members.cc

+  9	0.134	213479	9016	1852840	23_containers/bitset_ctor.cc
-b 9	0.134	0	0	0	23_containers/bitset_ctor.cc

+  11	0.730	228135	9016	1880715	23_containers/bitset_shift.cc
-b 9	0.730	0	0	0	23_containers/bitset_shift.cc

-b 7	0.730	0	0	0	23_containers/map_operators.cc
-b 6	0.730	0	0	0	23_containers/map_operators.cc

+  9	0.000	214647	8504	1843337	23_containers/multiset.cc
-b 8	0.000	0	0	0	23_containers/multiset.cc

-b 5	0.000	0	0	0	23_containers/set_operators.cc
-b 6	0.000	0	0	0	23_containers/set_operators.cc

+  5	0.099	65143	4360	297877	23_containers/vector_capacity.cc
+  5	0.108	24381	512	218320	23_containers/vector_capacity.cc

+  10	0.099	240116	8492	1959385	23_containers/vector_ctor.cc
-b 9	0.099	0	0	0	23_containers/vector_ctor.cc

+  5	0.101	209348	8492	1707844	23_containers/vector_element_access.cc
-b 4	0.101	0	0	0	23_containers/vector_element_access.cc

+  6	0.098	74215	4360	417869	23_containers/vector_modifiers.cc
+  7	0.107	33309	512	338204	23_containers/vector_modifiers.cc

+  8	0.142	211015	8472	1822597	24_iterators/istreambuf_iterator.cc
-b 7	0.142	0	0	0	24_iterators/istreambuf_iterator.cc

+  12	0.099	90541	4508	651366	24_iterators/iterator.cc
-b 12	0.099	0	0	0	24_iterators/iterator.cc

+  3	0.099	34303	3824	111386	25_algorithms/lower_bound.cc
+  3	0.103	2309	16	70698	25_algorithms/lower_bound.cc

+  3	0.102	33007	3824	87139	25_algorithms/min_max.cc
+  3	0.102	1013	16	46447	25_algorithms/min_max.cc

+  10	0.000	211383	8504	1871375	26_numerics/binary_closure.cc
-b 9	0.000	0	0	0	26_numerics/binary_closure.cc

+  2	0.098	1251	28	12127	26_numerics/buggy_complex.cc
+  2	0.102	819	16	10040	26_numerics/buggy_complex.cc

+  2	0.098	37425	4560	71555	26_numerics/c_math.cc
-b 2	0.098	0	0	0	26_numerics/c_math.cc

+  9	0.103	218295	8472	1848685	26_numerics/complex_inserters_extractors.cc
-b 8	0.103	0	0	0	26_numerics/complex_inserters_extractors.cc

+  6	0.098	57975	4348	264978	26_numerics/valarray.cc
+  6	0.101	17213	500	173012	26_numerics/valarray.cc

-r 10	0.000	216692	9024	1856711	27_io/filebuf.cc
-b 20	0.000	0	0	0	27_io/filebuf.cc

-r 20	0.000	207700	8448	1826197	27_io/filebuf_members.cc
-b 11	0.000	0	0	0	27_io/filebuf_members.cc

+  4	0.106	34293	3828	143964	27_io/fpos.cc
+  4	0.109	2299	20	103272	27_io/fpos.cc

+  9	0.531	207908	8448	1826064	27_io/ifstream_members.cc
-b 8	0.531	0	0	0	27_io/ifstream_members.cc

+  7	0.113	208151	8440	1804174	27_io/ios_base_callbacks.cc
-b 7	0.113	0	0	0	27_io/ios_base_callbacks.cc

+  7	0.105	207927	8472	1799836	27_io/ios_base_members_static.cc
-b 6	0.105	0	0	0	27_io/ios_base_members_static.cc

+  8	0.099	209207	8440	1803140	27_io/ios_ctor.cc
-b 7	0.099	0	0	0	27_io/ios_ctor.cc

+  11	777.000	210807	8536	1882852	27_io/ios_manip_basefield.cc
-b 10	777.000	0	0	0	27_io/ios_manip_basefield.cc

+  12	0.000	211559	8568	1886615	27_io/ios_manip_fmtflags.cc
-b 11	0.000	0	0	0	27_io/ios_manip_fmtflags.cc

+  6	0.120	208951	8440	1758295	27_io/ios_members.cc
-b 5	0.120	0	0	0	27_io/ios_members.cc

+  5	0.102	858	32	113631	27_io/istream.cc
+  5	0.104	426	20	111547	27_io/istream.cc

+  13	0.103	223271	9848	1894658	27_io/istream_extractor_arith.cc
-b 12	0.103	0	0	0	27_io/istream_extractor_arith.cc

+  8	0.100	213095	8472	1818536	27_io/istream_extractor_char.cc
-b 8	0.100	0	0	0	27_io/istream_extractor_char.cc

+  11	0.103	212676	8480	1871254	27_io/istream_extractor_other.cc
-b 10	0.103	0	0	0	27_io/istream_extractor_other.cc

+  8	0.102	209015	8472	1811838	27_io/istream_manip.cc
-b 8	0.102	0	0	0	27_io/istream_manip.cc

-r 11	0.000	215703	8504	1879618	27_io/istream_seeks.cc
-b 11	0.000	0	0	0	27_io/istream_seeks.cc

+  8	0.100	208087	8472	1806468	27_io/istream_sentry.cc
-b 7	0.100	0	0	0	27_io/istream_sentry.cc

+  13	0.276	220087	8504	1894724	27_io/istream_unformatted.cc
-b 11	0.276	0	0	0	27_io/istream_unformatted.cc

+  8	0.099	208183	8472	1832545	27_io/istringstream_members.cc
-b 7	0.099	0	0	0	27_io/istringstream_members.cc

+  13	0.000	207767	9016	1847854	27_io/narrow_stream_objects.cc
-b 12	0.000	0	0	0	27_io/narrow_stream_objects.cc

+  11	0.588	207940	8448	1824694	27_io/ofstream_members.cc
-b 9	0.588	0	0	0	27_io/ofstream_members.cc

+  4	0.097	858	32	85185	27_io/ostream.cc
+  5	0.101	426	20	83101	27_io/ostream.cc

-r 11	0.114	217751	8536	1894862	27_io/ostream_inserter_arith.cc
-b 11	0.114	0	0	0	27_io/ostream_inserter_arith.cc

+  11	0.323	215671	8504	1885466	27_io/ostream_inserter_char.cc
-b 11	0.323	0	0	0	27_io/ostream_inserter_char.cc

+  10	0.106	209687	8504	1854824	27_io/ostream_inserter_other.cc
-b 10	0.106	0	0	0	27_io/ostream_inserter_other.cc

+  9	0.100	210503	8472	1834666	27_io/ostream_manip.cc
-b 8	0.100	0	0	0	27_io/ostream_manip.cc

+  11	0.100	208119	8504	1846864	27_io/ostream_seeks.cc
-b 9	0.100	0	0	0	27_io/ostream_seeks.cc

+  8	0.102	207799	8472	1805615	27_io/ostream_unformatted.cc
-b 7	0.102	0	0	0	27_io/ostream_unformatted.cc

+  9	0.099	212631	8600	1787421	27_io/streambuf.cc
-b 7	0.099	0	0	0	27_io/streambuf.cc

+  10	0.104	221210	8824	1841208	27_io/stringbuf.cc
-b 9	0.104	0	0	0	27_io/stringbuf.cc

+  10	0.107	211271	8568	1852117	27_io/stringstream.cc
-b 9	0.107	0	0	0	27_io/stringstream.cc

+  13	0.100	207447	9016	1819600	27_io/wide_stream_objects.cc
-b 12	0.100	0	0	0	27_io/wide_stream_objects.cc

+  10	0.102	207047	8504	1831637	ext/headers.cc
-b 9	0.102	0	0	0	ext/headers.cc

testrun == 1392 seconds


More information about the Libstdc++ mailing list