From: "Ernesto Posse" <eposse@cs.mcgill.ca>
To: caml-list@yquem.inria.fr
Subject: Threads library
Date: Mon, 22 Nov 2004 16:20:31 -0500 (EST) [thread overview]
Message-ID: <33462.132.206.3.150.1101158431.squirrel@mail.cs.mcgill.ca> (raw)
Hi. I have a problem with the threads library. Basically I am unable to
access the library.
The libraries are installed in the default location
(/usr/local/lib/ocaml) (I installed version 3.08.1, on linux
2.6.4-54.5-smp on i686, running SuSE)
I have the problem when I run the normal toplevel and a customized
toplevel.
On the normal toplevel, I first try to do
#load "/usr/local/lib/ocaml/threads/threads.cma";;
which complains about Unix being undefined, so I do
#load "/usr/local/lib/ocaml/unix.cma";;
but then if I try
Thread.create;;
it tells me it the value is unbound.
If I try
open Thread
it tells me "Unbound module Thread".
If I try the VM threads by doing:
#load "/usr/local/lib/ocaml/vmthreads/threads.cma";;
it complains about a conflict of interface with the normal Threads, and
then it ends the toplevel with
# Fatal error: exception Sys_blocked_io
I get the same error even if I load the VM threads without loading the
other Thread module.
I get exactly the same results if I make a customized toplevel as in:
ocamlmktop -thread -custom -o threadtop unix.cma threads.cma -cclib -lunix
-cclib -lthreads
What am I doing wrong?
Thanks
--
Ernesto Posse
Modelling, Simulation and Design Lab - School of Computer Science
McGill University - Montreal, Quebec, Canada
url: http://moncs.cs.mcgill.ca/people/eposse
next reply other threads:[~2004-11-22 21:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-22 21:20 Ernesto Posse [this message]
2004-11-22 22:18 ` [Caml-list] " John Prevost
2004-11-23 16:32 ` Ernesto Posse
2004-11-23 20:08 ` John Prevost
-- strict thread matches above, loose matches on Subject: below --
2000-01-13 19:49 Threads Library Juergen Pfitzenmaier
1999-12-29 9:41 David McClain
2000-01-13 9:32 ` Xavier Leroy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=33462.132.206.3.150.1101158431.squirrel@mail.cs.mcgill.ca \
--to=eposse@cs.mcgill.ca \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox