Re: Ocamlfind does not allow -thread

"Hendrik Boom [email protected] [ocaml_beginners]" <[email protected]> Fri, 18 Dec 2015 10:12:57 -0500
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
On Fri, Dec 18, 2015 at 01:46:53PM +0100, SĂ©bastien Dailly [email protected] [ocaml_beginners] wrote:
> Hello,
> 
> I do not know where I should post this message, if this should be 
> reported to opam or ocamlfind…
> 
> I've switch my opam env from ocaml 4.02.1 to 4.02.3

Just how did you perform the switch?  The opam switch statement updates 
definitions in your ~/.bashrc and a few others.  When you start a 
new shell that runs this file, you won't fully be in the new 
environment.

There is a command that does this  update in the same shell, but  frget 
just what it is at the moment.

(I'm saying this from a Linux perspective; I presume that cygwin is the 
same.)

> 
> After this operation, ocamlfind does not detect anymore that my system 
> is thread compatible (I'm using cygwin)
> 
> $ ocamlfind ocamlopt -thread
> ocamlfind: ocamlopt does not support multi-threaded programs for your 
> configuration
> 
> invoking directly ocamlopt does not report errors :
> 
> $ ocamlopt -thread ; echo $?
> 0
> 
> invoking the previous version works also fine :
> 
> $ ~/.opam/4.02.1/bin/ocamlfind.exe  ocamlopt -thread ; echo $?
> 0
> 
> Is this a configuration problem ?
> 
> 
> Thanks !
> 
> 
> ------------------------------------
> Posted by: =?UTF-8?Q?S=C3=A9bastien_Dailly?= <[email protected]>
> ------------------------------------
> 
> Archives up to December 31, 2011 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
> The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
> Attachments are banned and you're asked to be polite, avoid flames etc.
> ------------------------------------
> 
> Yahoo Groups Links
> 
> 
>