Re: Ocamlfind does not allow -thread

"Gabriel Scherer [email protected] [ocaml_beginners]" <[email protected]> Tue, 22 Dec 2015 13:28:41 +0100
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <CAPFanBHJdRGS3QC9bN=1htYcPzSqrBqz4LN9S7frhwyq+rrdDg@mail.gmail.com>
After looking at findlib's ./configure script, it appears that the
type_of_thread setting depends on the output of $(ocamlc -config | grep
systhread_supported). On my machine,

$ ocamlc -config | grep systhread_supported
systhread_supported: true

In the output of the OCaml compiler ./configure script, I have the lines

POSIX threads library supported.
[..]
Bytecode threads library supported.
[..]
Additional libraries supported:
        unix str num dynlink bigarray systhreads threads graph

Look for "POSIX thread" in OCaml's ./configure script to see how this
variable is determined.

On Tue, Dec 22, 2015 at 1:11 PM, Sébastien Dailly
[email protected] [ocaml_beginners] <
[email protected]> wrote:

> Hello, I'm back with this problem and some new tests :
>
> - I've switch back to ocaml system.
> - Renamed « ~/.opam/4.02.1 » and removed this entry in « ~/.opam/aliases
> »
> - did « opam switch 4.02.1;opam install ocamlfind »
>
> And I reproduced the same error :
>
> $ grep type_of_threads /home/dailly/.opam/4.02.1/lib/threads/META
> /home/dailly/.opam/4.02.1/lib/threads/META:type_of_threads = "vm"
>
> (which was fine before I recompile this version)
>
> This does not seems related to the ocaml version, but rather a change in
> the environnement (cygwin update ?)
>
> Is there a way to check this just after the ocaml compilation ? I'll try
> to compile ocaml from source outside opam and check the compilation
> result.
>
> 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
>
>
>
>