This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
all Objective-C tests failing on Solaris
- To: egcs at cygnus dot com (egcs team)
- Subject: all Objective-C tests failing on Solaris
- From: Joe Buck <jbuck at Synopsys dot COM>
- Date: Tue, 12 Jan 99 15:54:19 PST
This is 19990112 on sparc-sun-solaris2.5.1.
All the Objective-C tests fail. The problem seems to be a lack of a
thread library.
>From objc.log:
Executing on host: /remote/dtg103/jbuck/gnu/src/egcs-snap-sol2/gcc/xgcc
-B/remote/dtg103/jbuck/gnu/src/egcs-snap-sol2/gcc/
/remote/dtg103/jbuck/gnu/src/egcs-snap/gcc/testsuite/objc/execute/bf-1.m
-w -O -I/remote/dtg103/jbuck/gnu/src/egcs-snap/gcc/testsuite/../../libobjc
-L/remote/dtg103/jbuck/gnu/src/egcs-snap-sol2/sparc-sun-solaris2.5.1/libobjc
-lobjc -lm -o
/remote/dtg103/jbuck/gnu/src/egcs-snap-sol2/gcc/testsuite/bf-1.x
Undefined first referenced
symbol in file
pthread_getspecific .../libobjc/libobjc.a(thr-posix.o)
pthread_self .../libobjc/libobjc.a(thr-posix.o)
sched_yield .../libobjc/libobjc.a(thr-posix.o)
pthread_key_create .../libobjc/libobjc.a(thr-posix.o)
pthread_setspecific .../libobjc/libobjc.a(thr-posix.o)
pthread_create .../libobjc/libobjc.a(thr-posix.o)
pthread_exit .../libobjc/libobjc.a(thr-posix.o)
If I add -lpthread, then I still get sched_yield undefined.
-lpthread does, however, have a thr_yield function.