Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocamlbuild does not provide "-thread" option to ocamlfind when compiling with ocamlfind #5165

Closed
vicuna opened this issue Oct 15, 2010 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Oct 15, 2010

Original bug ID: 5165
Reporter: @hcarty
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2012-03-24T14:01:43Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.0
Fixed in version: 3.12.1+dev
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: yziquel mehdi @ygrek Camarade_Tux @hcarty

Bug description

The command

ocamlfind -tag thread -use-ocamlfind -pkg threads ...

should call ocamlfind with "-thread" or "-vmthread", otherwise the threads package can not be used.

@vicuna
Copy link
Author

vicuna commented Oct 19, 2010

Comment author: @hcarty

An example

foo.ml:

open Thread
let () = print_endline "Hello world"

Compile with:

ocamlbuild -use-ocamlfind -pkg threads foo.native
or
ocamlbuild -use-ocamlfind -pkg threads foo.byte
or
ocamlbuild -use-ocamlfind -pkg threads foo.inferred.mli

to see the problem. It looks like the "-thread" option should be passed to ocamlfind for linking and inferring the interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant