From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr 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 ACAF7BB9C for ; Wed, 23 Nov 2005 09:56:41 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jAN8ufmE032612 for ; Wed, 23 Nov 2005 09:56:41 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA32220 for ; Wed, 23 Nov 2005 09:56:40 +0100 (MET) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.176]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jAN8ue97006044 for ; Wed, 23 Nov 2005 09:56:40 +0100 Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1EeqQg-0003WW-00; Wed, 23 Nov 2005 09:56:38 +0100 Received: from [84.58.139.31] (helo=gate.lan.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1EeqQf-00087b-00; Wed, 23 Nov 2005 09:56:37 +0100 Received: from gps.dynxs.de (localhost [127.0.0.1]) by gate.lan.gerd-stolpmann.de (Postfix) with ESMTP id 7761FC097; Wed, 23 Nov 2005 09:56:37 +0100 (CET) Received: from 192.168.1.2 (proxying for 194.127.8.19) (SquirrelMail authenticated user gerd) by gps.dynxs.de with HTTP; Wed, 23 Nov 2005 09:56:37 +0100 (CET) Message-ID: <2483.192.168.1.2.1132736197.squirrel@gps.dynxs.de> In-Reply-To: <4382FDEE.5010708@enix.org> References: <20051121225903.0551f20e@crazy.kos.nx> <2659.192.168.1.2.1132656882.squirrel@gps.dynxs.de> <4382FDEE.5010708@enix.org> Date: Wed, 23 Nov 2005 09:56:37 +0100 (CET) Subject: Re: [Caml-list] Trouble with findlib and threads From: "Gerd Stolpmann" To: "Thomas Petazzoni" Cc: caml-list@inria.fr User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a6865a839c0178d9aa0ce41878507ea2 X-Miltered: at nez-perce with ID 43842EC9.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 43842EC8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 findlib:01 threads:01 gerd:01 stolpmann:01 gerd:01 stolpmann:01 findlib:01 ocamlc:01 -custom:01 -thread:01 threads:01 posix:01 threading:01 bug:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Thomas Petazzoni said: > Hi again, > > Gerd Stolpmann wrote: > >> This is a configuration issue. I need the output of the configure scri= pt >> of findlib to help you. Obviously, findlib did not detect that >> multi-threading is supported. > > Here is the output of the test made by the configure script: > > [tpetazzoni@thomas findlib-1.1]$ ocamlc -custom -thread -o > itest-aux/simple unix.cma threads.cma itest-aux/simple_threads.ml > i loop index unused ? > > I don't know if it's useful or not. Yes, very useful. Obviously, the printed warning prevents findlib from detecting posix threading. This is a bug in findlib-1.1. You can work around this by setting the variable OCAML_THREADS=3Dposix in Makefile.config. Gerd ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------