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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

OpenBSD 3.2 and GCC 3.2.2


Is threading support buildable on this?

# gcc3 -v
Reading specs from /usr/local/lib/gcc-lib/sparc64-unknown-openbsd3.2/3.2.2/specs
Configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld --disable-nls --program-suffix=3
Thread model: single
gcc version 3.2.2
=============================================
If I try to build with the same and add '--enable-threads=posix' then I it dies during the build with:

gmake[4]: Leaving directory `/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/po'
Making all in testsuite
gmake[4]: Entering directory `/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/testsuite'
`echo /usr/temp/gcc-3.2.2/obj/gcc/xgcc -shared-libgcc -B/usr/temp/gcc-3.2.2/obj/gcc/ -nostdinc++ -L/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src -L/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs -B/usr/local/sparc64-unknown-openbsd3.2/bin/ -B/usr/local/sparc64-unknown-openbsd3.2/lib/ -isystem /usr/local/sparc64-unknown-openbsd3.2/include | sed 's/xgcc/g++/g'` -DHAVE_CONFIG_H -I. -I../../../../libstdc++-v3/testsuite -I.. -nostdinc++ -I/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/sparc64-unknown-openbsd3.2 -I/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include -I../../../../libstdc++-v3/libsupc++ -g -O2 -c ../../../../libstdc++-v3/testsuite/abi_check.cc
LD_RUN_PATH=/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs /bin/sh ../libtool --tag=CXX --mode=link `echo /usr/temp/gcc-3.2.2/obj/gcc/xgcc -shared-libgcc -B/usr/temp/gcc-3.2.2/obj/gcc/ -nostdinc++ -L/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src -L/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs -B/usr/local/sparc64-unknown-openbsd3.2/bin/ -B/usr/local/sparc64-unknown-openbsd3.2/lib/ -isystem /usr/local/sparc64-unknown-openbsd3.2/include | sed 's/xgcc/g++/g'` -g -O2 -o abi_check abi_check.o -lm
mkdir .libs
/usr/temp/gcc-3.2.2/obj/gcc/g++ -shared-libgcc -B/usr/temp/gcc-3.2.2/obj/gcc/ -nostdinc++ -B/usr/local/sparc64-unknown-openbsd3.2/bin/ -B/usr/local/sparc64-unknown-openbsd3.2/lib/ -isystem /usr/local/sparc64-unknown-openbsd3.2/include -g -O2 -o abi_check abi_check.o -L/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src -L/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs -lm
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs/libstdc++.a(stl-inst.o): In function `std::__default_alloc_template<(bool)1, (int)0>::_Lock::_Lock[not-in-charge]()':
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/sparc64-unknown-openbsd3.2/bits/gthr-default.h:484: undefined reference to `pthread_mutex_lock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs/libstdc++.a(stl-inst.o): In function `std::__default_alloc_template<(bool)1, (int)0>::_Lock::_Lock[in-charge]()':
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/sparc64-unknown-openbsd3.2/bits/gthr-default.h:484: undefined reference to `pthread_mutex_lock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs/libstdc++.a(stl-inst.o): In function `std::__default_alloc_template<(bool)1, (int)0>::_Lock::~_Lock [not-in-charge]()':
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/sparc64-unknown-openbsd3.2/bits/gthr-default.h:484: undefined reference to `pthread_mutex_unlock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs/libstdc++.a(stl-inst.o): In function `std::__default_alloc_template<(bool)1, (int)0>::_Lock::~_Lock [in-charge]()':
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/sparc64-unknown-openbsd3.2/bits/gthr-default.h:484: undefined reference to `pthread_mutex_unlock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs/libstdc++.a(stl-inst.o): In function `std::__default_alloc_template<(bool)1, (int)0>::allocate(unsigned long)':
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/sparc64-unknown-openbsd3.2/bits/gthr-default.h:502: undefined reference to `pthread_mutex_unlock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/sparc64-unknown-openbsd3.2/bits/gthr-default.h:484: undefined reference to `pthread_mutex_lock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/sparc64-unknown-openbsd3.2/bits/gthr-default.h:502: undefined reference to `pthread_mutex_unlock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs/libstdc++.a(stl-inst.o): In function `std::allocator<char>::allocate(unsigned long, void const*)':
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/bits/stl_alloc.h:431: undefined reference to `pthread_mutex_unlock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/bits/stl_alloc.h:404: undefined reference to `pthread_mutex_lock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/bits/stl_alloc.h:433: undefined reference to `pthread_mutex_unlock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs/libstdc++.a(string-inst.o): In function `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)':
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/bits/stl_algobase.h:153: undefined reference to `pthread_mutex_unlock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs/libstdc++.a(string-inst.o): In function `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)':
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/bits/stl_iterator.h:622: undefined reference to `pthread_mutex_lock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs/libstdc++.a(eh_alloc.o): In function `__cxa_allocate_exception':
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/sparc64-unknown-openbsd3.2/bits/gthr-default.h:502: undefined reference to `pthread_mutex_unlock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/sparc64-unknown-openbsd3.2/bits/gthr-default.h:484: undefined reference to `pthread_mutex_lock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs/libstdc++.a(eh_alloc.o): In function `__cxa_free_exception':
profhz/../../../../libstdc++-v3/libsupc++/eh_alloc.cc:127: undefined reference to `pthread_mutex_unlock'
profhz/../../../../libstdc++-v3/libsupc++/eh_alloc.cc:126: undefined reference to `pthread_mutex_lock'
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/src/.libs/libstdc++.a(eh_globals.o): In function `get_globals_init_once()':
/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/include/sparc64-unknown-openbsd3.2/bits/gthr-default.h:441: undefined reference to `pthread_once'
/usr/temp/gcc-3.2.2/obj/gcc/libgcc.a(unwind-dw2.o): In function `uw_install_context_1':
DW_OP_over/../../gcc/unwind.inc:109: undefined reference to `pthread_once'
/usr/temp/gcc-3.2.2/obj/gcc/libgcc.a(unwind-dw2-fde.o): In function `__register_frame_info_bases':
DW_OP_over/../../gcc/unwind-dw2-fde.c:101: undefined reference to `pthread_mutex_lock'
DW_OP_over/../../gcc/unwind-dw2-fde.c:110: undefined reference to `pthread_mutex_unlock'
/usr/temp/gcc-3.2.2/obj/gcc/libgcc.a(unwind-dw2-fde.o): In function `__register_frame_info_table_bases':
DW_OP_over/../../gcc/unwind-dw2-fde.c:145: undefined reference to `pthread_mutex_lock'
DW_OP_over/../../gcc/unwind-dw2-fde.c:151: undefined reference to `pthread_mutex_unlock'
/usr/temp/gcc-3.2.2/obj/gcc/libgcc.a(unwind-dw2-fde.o): In function `__deregister_frame_info_bases':
DW_OP_over/../../gcc/unwind-dw2-fde.c:188: undefined reference to `pthread_mutex_lock'
DW_OP_over/../../gcc/unwind-dw2-fde.c:215: undefined reference to `pthread_mutex_unlock'
DW_OP_over/../../gcc/unwind-dw2-fde.c:220: undefined reference to `pthread_mutex_unlock'
/usr/temp/gcc-3.2.2/obj/gcc/libgcc.a(unwind-dw2-fde.o): In function `_Unwind_Find_FDE':
DW_OP_over/../../gcc/unwind-dw2-fde.c:992: undefined reference to `pthread_mutex_lock'
DW_OP_over/../../gcc/unwind-dw2-fde.c:1023: undefined reference to `pthread_mutex_unlock'
collect2: ld returned 1 exit status
gmake[4]: *** [abi_check] Error 1
gmake[4]: Leaving directory `/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3/testsuite'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3'
gmake[2]: *** [all-recursive-am] Error 2
gmake[2]: Leaving directory `/usr/temp/gcc-3.2.2/obj/sparc64-unknown-openbsd3.2/libstdc++-v3'
gmake[1]: *** [all-target-libstdc++-v3] Error 2
gmake[1]: Leaving directory `/usr/temp/gcc-3.2.2/obj'
gmake: *** [bootstrap] Error 2
#


Any advice will be appreciated!






--
J.D. Bronson
Aurora Health Care // Information Systems // Milwaukee, WI USA
Office: 414.978.8282 // Fax: 414.328.8282 // Pager: 414.603.8282


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