English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Trouble with findlib and threads
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-23 (08:56)
From: Gerd Stolpmann <info@g...>
Subject: Re: [Caml-list] Trouble with findlib and threads
Thomas Petazzoni said:
> Hi again,
> Gerd Stolpmann wrote:
>> This is a configuration issue. I need the output of the configure script
>> 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=posix in

Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de