This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
pthread related breakage (mainline)
- From: Gerald Pfeifer <gp at suse dot de>
- To: gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Mon, 8 Dec 2003 11:11:07 +0100 (CET)
- Subject: pthread related breakage (mainline)
On i686-pc-linux-gnu (SUSE Linux 9.0) I'm getting the following bootstrap
failure for --enable-languages=c,c++,objc,java --disable-checking:
ranlib libv3test.a
`/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/scripts/testsuite_flags --build-cxx` -DHAVE_CONFIG_H -I. -I/cvs/gcc/libstdc++-v3/testsuite -I.. -I/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/include -I/cvs/gcc/libstdc++-v3/libsupc++ -O2 -g -O2 -g -O2 -D_GNU_SOURCE -c -o abi_check.o /cvs/gcc/libstdc++-v3/testsuite/abi_check.cc
LD_RUN_PATH=${LD_RUN_PATH:+$LD_RUN_PATH:}/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/src/.libs /bin/sh ../libtool --tag=CXX --mode=link `/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/scripts/testsuite_flags --build-cxx` -g -O2 -D_GNU_SOURCE -o abi_check abi_check.o -lm
mkdir .libs
/tmp/OBJ-1208-0937/gcc/g++ -shared-libgcc -B/tmp/OBJ-1208-0937/gcc/ -nostdinc++ -B/suse/gp/gcc/i686-pc-linux-gnu/bin/ -B/suse/gp/gcc/i686-pc-linux-gnu/lib/ -isystem /suse/gp/gcc/i686-pc-linux-gnu/include -isystem /suse/gp/gcc/i686-pc-linux-gnu/sys-include -include bits/stdc++.h -g -O2 -D_GNU_SOURCE -o abi_check abi_check.o -L/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/src -L/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/src/.libs -lm
/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `pthread_create'
/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `pthread_getspecific'
/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `pthread_once'
/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `pthread_key_create'
/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status
gmake[4]: *** [abi_check] Error 1
gmake[4]: Leaving directory `/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3/testsuite'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/tmp/OBJ-1208-0937/i686-pc-linux-gnu/libstdc++-v3'
gmake[1]: *** [all-target-libstdc++-v3] Error 2
gmake[1]: Leaving directory `/tmp/OBJ-1208-0937'
gmake: *** [bootstrap-lean] Error 2
On i386-unknown-freebsd4.8 build suceeds, similar problems arise during use:
% cat x.cc
#include <vector>
using namespace std;
main() {
vector<int> i;
}
% gccvs x.cc
/sw/freebsd4/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../libstdc++.so: undefined reference to `pthread_create'
/sw/freebsd4/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../libstdc++.so: undefined reference to `pthread_getspecific'
/sw/freebsd4/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../libstdc++.so: undefined reference to `pthread_once'
/sw/freebsd4/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../libstdc++.so: undefined reference to `pthread_key_create'
/sw/freebsd4/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../libstdc++.so: undefined reference to `pthread_mutex_unlock'
/sw/freebsd4/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../libstdc++.so: undefined reference to `pthread_mutex_lock'
/sw/freebsd4/gcc-current/bin/../lib/gcc/i386-unknown-freebsd4.8/3.4/../../../libstdc++.so: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status
Gerald