On Fri, May 21, 2010 at 04:47:06PM +1000, Paul Steckler wrote:
I asked (and no one answered):
> Could it be that libthreadsnat.a was not built correctly in the Fedora 11
mingw32-ocaml package?
I looked into this issue myself. The source for libthreadsnat.a (posix.c) assumes the
target looks like
Linux (or Sun), not Windows. There is a MinGW pthreads library, which gets you some of
the way there,
but the source also assumes that Unix signals are available on the target.
My conclusion is that you can't get OCaml to use native Win32 threads by building
with the MinGW ocaml
cross-compiler. Does anyone know any different?
I didn't try any multi-threaded programs.
This sounds like an issue for upstream caml-list.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v