Current build failure when libgcj is enabled on i386-unknown-freebsd4.2

Jeff Sturm jsturm@one-point.com
Wed Apr 25 00:33:00 GMT 2001


On 2001年4月24日, Loren James Rittle wrote:
> During the configuration of boehm-gc, it doesn't detect the mismatch
> between the configuration requested and the fact that there is no code
> path for generic POSIX threads. It appears that this version of
> boehm-gc only supports POSIX threads on some platforms even though
> additional platforms support the required POSIX pthread_* API.

Yep. The GC needs to know how to find all threads, plus suspend/restart
individual threads. Unfortunately that can't be done with generic
pthreads, so there is a port for each supported OS.
For the rest you can configure threads without GC, or GC without
threads. I consider it a bug that boehm-gc/configure doesn't abort if you
attempt to build with posix threads on an unsupported target. Here's a
suggestion:
diff -u -p -r1.21 configure.in
--- configure.in 2000年12月30日 12:18:38 1.21
+++ configure.in 2001年04月25日 07:24:35
@@ -60,7 +60,7 @@ if test "$THREADS" = yes; then
 ;;
 *)
 # For now.
- THREADS=none
+ THREADS=posix
 ;;
 esac
 fi
@@ -84,6 +84,9 @@ case "$THREADS" in
 ;;
 *-*-irix*)
 AC_DEFINE(IRIX_THREADS)
+ ;;
+ *)
+ AC_MSG_ERROR(posix threads not yet supported on $host)
 ;;
 esac
 THREADLIBS=-lpthread


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /