On 5 Jan 2008, at 11:48, David Wetzel wrote:
Matt Rice wrote:
adding -pthread on the gcc command line seems to fix it
Neither -lpthread nor -pthread works for me on intel...
<snip>
/Users/dave/projects/gnustep-testfarm/core/base/Testing/obj/
diningPhilosophers: Uncaught
exception NSInternalInconsistencyException, reason: Unable to detach
thread (perhaps No such file or
directory)
That's an odd error message... I changed the code to clear errno
immediately before detaching the thread, so as to be sure we don't
have a value hanging round form an earlier call.
Possibly what you are seeing is an objc runtime bug such that the
detach succeeds but appears to fail because the thread ID is zero?
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18573
Alternatively, could it possibly be that you are picking up a
different/wrong version of the objc runtime library, so that the
runtime is built with a different thread model to what the compiler
was built with?
_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev