Hi

From http://unu.novajo.ca/simple/

Specific comments and pitfalls:

  1. The thread function sem_init is not implemented on Darwin
whereas the functions sem_open/sem_close is not implemented on Linux.
That's why there is some juggling with the initialization of the
semaphores in the code.

That seems to be the reason its not working, at a point at the correct fix.

Thanks

Neil


On 8/2/06, Neil Mitchell <[EMAIL PROTECTED]> wrote:
Hi,

I've been trying to debug the mac ppc, which fails with:
src/runtime/BCKernel/thread.c:126: failed assertion `rval==0'

The reason is that sem_init returns -1, to indicate error, and an
error number that indicates ENOSYS: The function sem_init() is not
supported by this implementation.

See http://www.opengroup.org/onlinepubs/007908799/xsh/sem_init.html
for more details.

Of course, I have no idea why sem_init isn't supported, or why its
required for a non-threading example, or anything else - just this
might help someone else debug this error.

Thanks

Neil

_______________________________________________
Yhc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/yhc

Reply via email to