From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 441ADBB81 for ; Mon, 22 Nov 2004 22:20:32 +0100 (CET) Received: from mail.cs.mcgill.ca (mail.CS.McGill.CA [132.206.51.234]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iAMLKVPK016312 for ; Mon, 22 Nov 2004 22:20:32 +0100 Received: from mail.cs.mcgill.ca (localhost [127.0.0.1]) by mail.cs.mcgill.ca (Postfix) with SMTP id 6496A2F94F for ; Mon, 22 Nov 2004 16:20:31 -0500 (EST) Received: from 132.206.3.150 (SquirrelMail authenticated user eposse) by mail.cs.mcgill.ca with HTTP; Mon, 22 Nov 2004 16:20:31 -0500 (EST) Message-ID: <33462.132.206.3.150.1101158431.squirrel@mail.cs.mcgill.ca> Date: Mon, 22 Nov 2004 16:20:31 -0500 (EST) Subject: Threads library From: "Ernesto Posse" To: caml-list@yquem.inria.fr Reply-To: eposse@cs.mcgill.ca User-Agent: SquirrelMail/1.4.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal X-Miltered: at nez-perce with ID 41A2581F.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; threads:01 threads:01 usr:01 lib:01 ocaml:01 toplevel:01 toplevel:01 usr:01 lib:01 ocaml:01 ocamlmktop:01 -thread:01 -custom:01 -cclib:01 -lunix:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: 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