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

Closed
vicuna opened this Issue Aug 4, 2011 · 0 comments

Comments

Projects
None yet
1 participant
@vicuna
Copy link
Collaborator

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 https://github.com/ocaml/ocamlbuild/issues
Monitored by: @hcarty

Bug description

$ cat q.ml
let f x = Thread.delay x

$ cat top.mltop
Q

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

  • /opt/ocaml-3.12.1/bin/ocamlmktop unix.cma q.cmo -o top.top
    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 q.ml > q.ml.depends
/opt/ocaml-3.12.1/bin/ocamlc.opt -i q.ml > q.inferred.mli

  • /opt/ocaml-3.12.1/bin/ocamlc.opt -i q.ml > q.inferred.mli
    File "q.ml", 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

@vicuna vicuna closed this Sep 25, 2012

@vicuna vicuna added the ocamlbuild label Mar 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.