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

thread tag with .top and .inferred,mli targets #5330

vicuna opened this issue Aug 4, 2011 · 0 comments

thread tag with .top and .inferred,mli targets #5330

vicuna opened this issue Aug 4, 2011 · 0 comments


Copy link

@vicuna vicuna commented Aug 4, 2011

Original bug ID: 5330
Reporter: @ygrek
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2012-09-25T18:06:17Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.1
Fixed in version: 3.13.0+dev
Category: -for ocamlbuild use
Monitored by: @hcarty

Bug description

$ cat
let f x = Thread.delay x

$ cat top.mltop

$ rm -rf _build && /opt/ocaml-3.12.1/bin/ocamlbuild -classic-display -tags thread,use_unix
/opt/ocaml-3.12.1/bin/ocamldep.opt -modules >
/opt/ocaml-3.12.1/bin/ocamlc.opt -c -thread -o q.cmo
/opt/ocaml-3.12.1/bin/ocamlmktop unix.cma q.cmo -o

  • /opt/ocaml-3.12.1/bin/ocamlmktop unix.cma q.cmo -o
    File "none", line 1, characters 0-1:
    Error: Error while linking q.cmo:
    Reference to undefined global `Thread'
    Command exited with code 2.

$ rm -rf _build && /opt/ocaml-3.12.1/bin/ocamlbuild -classic-display -tags thread,use_unix q.inferred.mli
/opt/ocaml-3.12.1/bin/ocamldep.opt -modules >
/opt/ocaml-3.12.1/bin/ocamlc.opt -i > q.inferred.mli

  • /opt/ocaml-3.12.1/bin/ocamlc.opt -i > q.inferred.mli
    File "", line 1, characters 10-22:
    Error: Unbound module Thread
    Command exited with code 2.

Additional information

.inferred.mli with thread tag doesn't work in any ocaml version
.top with thread tag works only in 3.11.2 (not any earlier or later version), this is regression from #4873

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

Successfully merging a pull request may close this issue.

None yet
1 participant