This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Patch for libstdc++ bootstrap on sparc-sun-solaris2.6
- To: libstdc++ at sources dot redhat dot com
- Subject: Patch for libstdc++ bootstrap on sparc-sun-solaris2.6
- From: Branko Čibej <brane at xbc dot nu>
- Date: Tue, 21 Nov 2000 23:06:14 +0100
- CC: gcc-patches at gcc dot gnu dot org
It seems there were some bits missing in the config files for Solaris
2.6. With the attached patch, I can bootstrap current CVS and pass the
testsuite 166/16, using binutils 2.10.1.
2000-11-21 Branko Cibej <brane@xbc.nu> <mailto:brankoe@xbc.nu>
* config/os/solaris/solaris2.6/bits/os_defines.h: Define
_XOPEN_SOURCE, _LARGEFILE64_SOURCE, __EXTENSIONS__, __off_t,
__off64_t and __ssize_t.
--
Brane Čibej
home: <brane@xbc.nu> http://www.xbc.nu/brane/
work: <branko.cibej@hermes.si> http://www.hermes-softlab.com/
ACM: <brane@acm.org> http://www.acm.org/
Index: config/os/solaris/solaris2.6/bits/os_defines.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/os/solaris/solaris2.6/bits/os_defines.h,v
retrieving revision 1.3
diff -u -p -r1.3 os_defines.h
--- os_defines.h 2000/10/25 12:50:06 1.3
+++ os_defines.h 2000/11/21 21:33:37
@@ -31,9 +31,19 @@
#ifndef _GLIBCPP_OS_DEFINES
# define _GLIBCPP_OS_DEFINES
+// Need these to get sane definitions, esp. of 64-bit types and typedefs.
+#define _XOPEN_SOURCE 500
+#define _LARGEFILE64_SOURCE 1
+#define __EXTENSIONS__
-/* System-specific #define, typedefs, corrections, etc, go here. This
- file will come before all others. */
+// These are typedefs which libio assumes are already in place (because
+// they really are, under Linux).
+#define __off_t off_t
+#define __off64_t off64_t
+#define __ssize_t ssize_t
+
+// Without this all the libio vtbls are offset wrongly.
+#define _G_USING_THUNKS 0
#endif
host: SunOS 5.6 Generic_105181-17 sun4u
compiler: g++: No input files
Configured with: /home/brane/eval/gcc/gcc/configure --prefix=/home/brane/eval/gcc/inst --enable-languages=c++ --enable-libstdcxx-v3 --with-gnu-as --with-gnu-ld --with-dwarf2 --with-as=/home/brane/eval/gcc/inst/bin/as --with-ld=/home/brane/eval/gcc/inst/bin/ld
compiler flags: -ggdb3 -DDEBUG_ASSERT -ffunction-sections -fdata-sections
date: 20001121
pass/fail results: 166/16
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
+ 3 0.216 135008 251520 17_intro/header_ciso646.cc
+ 3 0.218 1336 5671 17_intro/header_ciso646.cc
+ 11 0.194 16832 222822 17_intro/header_fstream.cc
+ 13 0.220 960 194259 17_intro/header_fstream.cc
+ 9 0.195 16832 170837 17_intro/header_iomanip.cc
+ 9 0.221 960 142007 17_intro/header_iomanip.cc
+ 7 0.192 16832 131760 17_intro/header_ios.cc
+ 7 0.221 960 102930 17_intro/header_ios.cc
+ 3 0.195 16488 34196 17_intro/header_iosfwd.cc
+ 3 0.221 616 5358 17_intro/header_iosfwd.cc
+ 10 0.212 378172 3118910 17_intro/header_iostream.cc
+ 8 0.226 1156 138914 17_intro/header_iostream.cc
+ 8 0.196 16832 166897 17_intro/header_istream.cc
+ 8 0.222 960 138067 17_intro/header_istream.cc
+ 7 0.196 16832 131768 17_intro/header_ostream.cc
+ 7 0.220 960 102938 17_intro/header_ostream.cc
+ 8 0.198 16832 166897 17_intro/header_sstream.cc
+ 9 0.221 960 138067 17_intro/header_sstream.cc
+ 8 0.198 16832 131748 17_intro/header_streambuf.cc
+ 8 0.224 960 102918 17_intro/header_streambuf.cc
+ 21 0.197 378676 3225500 17_intro/headers.cc
+ 19 0.222 1660 245811 17_intro/headers.cc
+ 5 0.194 154308 381175 18_support/numeric_limits.cc
+ 4 0.221 10392 134001 18_support/numeric_limits.cc
-b 5 0.221 0 0 0 20_util/auto_ptr.cc
-b 5 0.221 0 0 0 20_util/auto_ptr.cc
+ 13 0.200 181280 877787 21_strings/append.cc
+ 13 0.245 30936 360576 21_strings/append.cc
+ 15 0.199 183436 764521 21_strings/capacity.cc
+ 14 0.223 38032 435357 21_strings/capacity.cc
+ 9 0.199 160712 560111 21_strings/char_traits.cc
+ 8 0.222 15308 229815 21_strings/char_traits.cc
+ 9 0.202 164688 569158 21_strings/compare.cc
+ 9 0.238 18672 238808 21_strings/compare.cc
+ 13 0.202 170884 656013 21_strings/ctor_copy_dtor.cc
+ 11 0.227 24864 326163 21_strings/ctor_copy_dtor.cc
+ 9 0.196 161232 562275 21_strings/element_access.cc
+ 9 0.228 15828 232501 21_strings/element_access.cc
+ 10 0.198 172628 764302 21_strings/find.cc
+ 9 0.219 20268 243522 21_strings/find.cc
+ 13 0.196 174288 661786 21_strings/insert.cc
+ 12 0.224 28268 332449 21_strings/insert.cc
-r 21 0.000 392140 3299430 21_strings/inserters_extractors.cc
-r 21 0.000 37956 443014 21_strings/inserters_extractors.cc
+ 11 0.200 169976 609007 21_strings/invariants.cc
+ 10 0.225 23956 278612 21_strings/invariants.cc
+ 12 0.199 178252 643134 21_strings/nonmember.cc
+ 11 0.222 32232 313248 21_strings/nonmember.cc
+ 8 0.198 162036 563639 21_strings/operations.cc
+ 9 0.220 16636 233498 21_strings/operations.cc
+ 12 0.204 173388 673754 21_strings/replace.cc
+ 11 0.220 27368 343599 21_strings/replace.cc
+ 9 0.204 162048 563318 21_strings/rfind.cc
+ 9 0.228 16028 232440 21_strings/rfind.cc
+ 11 0.195 165652 606172 21_strings/substr.cc
+ 9 0.221 19632 276100 21_strings/substr.cc
+ 14 0.198 380612 3208114 22_locale/codecvt_char_char.cc
+ 12 0.221 13020 328710 22_locale/codecvt_char_char.cc
+ 11 0.198 16832 222839 22_locale/codecvt_unicode_char.cc
+ 13 0.225 960 194276 22_locale/codecvt_unicode_char.cc
+ 12 0.194 16832 222845 22_locale/codecvt_unicode_wchar_t.cc
+ 12 0.227 960 194282 22_locale/codecvt_unicode_wchar_t.cc
-r 13 0.232 381520 3210920 22_locale/codecvt_wchar_t_char.cc
-r 13 0.295 13756 331251 22_locale/codecvt_wchar_t_char.cc
+ 12 0.197 16832 222825 22_locale/ctor_copy_dtor.cc
+ 11 0.223 960 194262 22_locale/ctor_copy_dtor.cc
+ 13 0.200 379472 3188486 22_locale/ctype.cc
+ 13 0.224 10800 315821 22_locale/ctype.cc
+ 13 0.200 380348 3187282 22_locale/ctype_char_members.cc
+ 12 0.219 11720 295885 22_locale/ctype_char_members.cc
+ 11 0.206 16832 222841 22_locale/ctype_wchar_t_members.cc
+ 11 0.222 960 194278 22_locale/ctype_wchar_t_members.cc
+ 23 0.206 402108 3412645 22_locale/facet.cc
+ 21 0.224 53400 575995 22_locale/facet.cc
+ 14 0.200 384028 3231621 22_locale/global_templates.cc
+ 13 0.225 16768 350662 22_locale/global_templates.cc
+ 15 0.201 384512 3234419 22_locale/operators.cc
+ 14 0.228 17700 354311 22_locale/operators.cc
+ 13 0.199 384300 3211172 22_locale/static_members.cc
+ 13 0.224 17260 330557 22_locale/static_members.cc
+ 14 0.205 391684 3246182 23_containers/bitset_ctor.cc
+ 12 0.245 24864 362018 23_containers/bitset_ctor.cc
+ 16 1.449 403156 3280349 23_containers/bitset_shift.cc
+ 16 1.475 35208 394641 23_containers/bitset_shift.cc
-b 14 1.475 0 0 0 23_containers/map_operators.cc
-b 13 1.475 0 0 0 23_containers/map_operators.cc
+ 14 0.000 388144 3226132 23_containers/multiset.cc
+ 12 0.000 19788 338788 23_containers/multiset.cc
-b 10 0.000 0 0 0 23_containers/set_operators.cc
-b 10 0.000 0 0 0 23_containers/set_operators.cc
+ 8 0.196 163400 507962 23_containers/vector_capacity.cc
+ 8 0.219 19484 261593 23_containers/vector_capacity.cc
+ 16 0.200 416464 3367604 23_containers/vector_ctor.cc
+ 15 0.223 48044 479858 23_containers/vector_ctor.cc
+ 9 0.203 380528 3094520 23_containers/vector_element_access.cc
+ 6 0.221 12108 207086 23_containers/vector_element_access.cc
+ 12 0.195 172932 639490 23_containers/vector_modifiers.cc
+ 11 0.223 29016 393179 23_containers/vector_modifiers.cc
+ 14 0.199 387600 3215798 24_iterators/istreambuf_iterator.cc
+ 13 0.229 24872 343662 24_iterators/istreambuf_iterator.cc
+ 18 0.199 189092 810892 24_iterators/iterator.cc
+ 17 0.221 43688 481038 24_iterators/iterator.cc
+ 6 0.202 136348 341805 25_algorithms/lower_bound.cc
+ 6 0.224 2676 95957 25_algorithms/lower_bound.cc
+ 5 0.198 135072 312510 25_algorithms/min_max.cc
+ 6 0.224 1400 66662 25_algorithms/min_max.cc
+ 15 0.000 382588 3261235 26_numerics/binary_closure.cc
+ 14 0.000 14396 376821 26_numerics/binary_closure.cc
+ 4 0.194 16992 40734 26_numerics/buggy_complex.cc
+ 4 0.221 1120 11896 26_numerics/buggy_complex.cc
+ 3 0.195 148136 325206 26_numerics/c_math.cc
+ 4 0.237 1116 32134 26_numerics/c_math.cc
+ 15 0.203 400536 3377856 26_numerics/complex_inserters_extractors.cc
+ 14 0.226 29192 349807 26_numerics/complex_inserters_extractors.cc
+ 10 0.213 154928 488886 26_numerics/valarray.cc
+ 9 0.218 11008 242118 26_numerics/valarray.cc
-r 18 0.000 396408 3262522 27_io/filebuf.cc
-r 17 0.000 33672 391409 27_io/filebuf.cc
-r 15 0.000 382000 3217485 27_io/filebuf_members.cc
-r 14 0.000 17184 340749 27_io/filebuf_members.cc
+ 8 0.216 137008 356589 27_io/fpos.cc
+ 9 0.223 3336 110749 27_io/fpos.cc
+ 17 0.724 381920 3214411 27_io/ifstream_members.cc
+ 16 1.079 17644 338035 27_io/ifstream_members.cc
+ 16 0.428 384988 3196805 27_io/ios_base_callbacks.cc
+ 12 0.243 21020 319457 27_io/ios_base_callbacks.cc
+ 12 0.250 383368 3190558 27_io/ios_base_members_static.cc
+ 11 0.219 18540 312204 27_io/ios_base_members_static.cc
+ 12 0.198 384428 3194621 27_io/ios_ctor.cc
+ 12 0.221 20376 317155 27_io/ios_ctor.cc
+ 19 777.000 389824 3280676 27_io/ios_manip_basefield.cc
+ 17 777.000 28676 412750 27_io/ios_manip_basefield.cc
+ 19 0.000 390212 3285278 27_io/ios_manip_fmtflags.cc
+ 20 0.000 30532 419985 27_io/ios_manip_fmtflags.cc
+ 11 0.476 383388 3142097 27_io/ios_members.cc
+ 10 0.223 16248 258544 27_io/ios_members.cc
+ 8 0.195 16832 166877 27_io/istream.cc
+ 8 0.222 960 138047 27_io/istream.cc
+ 24 0.199 403272 3305448 27_io/istream_extractor_arith.cc
+ 22 0.225 45064 443408 27_io/istream_extractor_arith.cc
+ 14 0.199 389196 3213587 27_io/istream_extractor_char.cc
+ 14 0.224 26056 338504 27_io/istream_extractor_char.cc
+ 18 0.232 390148 3269445 27_io/istream_extractor_other.cc
+ 16 0.239 27356 394976 27_io/istream_extractor_other.cc
+ 15 0.199 385276 3204015 27_io/istream_manip.cc
+ 12 0.223 22552 332089 27_io/istream_manip.cc
-r 20 0.000 393300 3280797 27_io/istream_seeks.cc
-r 18 0.000 34976 415676 27_io/istream_seeks.cc
+ 13 0.197 383188 3195111 27_io/istream_sentry.cc
+ 12 0.224 19416 318023 27_io/istream_sentry.cc
+ 21 0.317 397544 3302080 27_io/istream_unformatted.cc
+ 19 0.296 38424 437581 27_io/istream_unformatted.cc
+ 15 0.200 385508 3228764 27_io/istringstream_members.cc
+ 13 0.223 23940 358778 27_io/istringstream_members.cc
+ 21 0.000 379232 3245572 27_io/narrow_stream_objects.cc
+ 21 0.000 2284 267646 27_io/narrow_stream_objects.cc
+ 16 0.893 381984 3213619 27_io/ofstream_members.cc
+ 14 0.895 17624 337159 27_io/ofstream_members.cc
+ 7 0.195 16832 131748 27_io/ostream.cc
+ 8 0.225 960 102918 27_io/ostream.cc
+ 19 0.211 397772 3296222 27_io/ostream_inserter_arith.cc
+ 18 0.237 38172 430425 27_io/ostream_inserter_arith.cc
+ 19 0.469 392488 3284382 27_io/ostream_inserter_char.cc
+ 20 0.449 35392 421692 27_io/ostream_inserter_char.cc
+ 18 0.330 384432 3243437 27_io/ostream_inserter_other.cc
+ 17 0.286 24996 377404 27_io/ostream_inserter_other.cc
+ 16 0.197 386964 3230914 27_io/ostream_manip.cc
+ 14 0.225 26772 362276 27_io/ostream_manip.cc
+ 17 0.455 382432 3235522 27_io/ostream_seeks.cc
+ 18 0.224 23524 369216 27_io/ostream_seeks.cc
+ 13 0.259 383184 3196243 27_io/ostream_unformatted.cc
+ 12 0.219 20156 323458 27_io/ostream_unformatted.cc
+ 13 0.200 391004 3179016 27_io/streambuf.cc
+ 11 0.407 26104 301155 27_io/streambuf.cc
+ 16 0.198 400768 3251572 27_io/stringbuf.cc
+ 13 0.239 38360 376327 27_io/stringbuf.cc
+ 19 0.198 389244 3254302 27_io/stringstream.cc
+ 18 0.225 30836 389021 27_io/stringstream.cc
+ 20 0.203 378708 3225719 27_io/wide_stream_objects.cc
+ 19 0.223 1692 246030 27_io/wide_stream_objects.cc
+ 15 0.200 378172 3225465 ext/headers.cc
+ 15 0.275 1156 245475 ext/headers.cc
testrun == 2426 seconds