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
-use-ocamlfind and -tag thread doesn't work. #6127
Comments
Comment author: @dbuenzli Actually they are build correctly with the -thread. The problem seems more to be on ocamlfind (or a wrong invocation of ocamlfind):
|
Comment author: @gasche This should be fixed since #6058. Thanks for the feedback anyway! PS: the problem indeed comes from the fact that ocamlfind's "error" mechanism is not flexible enough to express the difference between linking into a final program (where -thread is needed) and linking into an archive (when -thread is not needed), while OCamlbuild did this fine-grained distinction. The solution is to dumb down OCamlbuild and pass -thread each time. In the other bugtracker item, william proposed a workaround that may interest you before the release: -lflags -thread. |
Original bug ID: 6127
Reporter: @dbuenzli
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:23:45Z)
Resolution: duplicate
Priority: normal
Severity: minor
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Duplicate of: #6058
Bug description
It seems that when -use-ocamlfind is used the thread tag no longer works.
ocamlfind: Error from package `threads': Missing -thread or -vmthread switch
Command exited with code 2.
Without -use-ocamlfind (fails because packages are used):
File "src/tsdl.ml", line 9, characters 0-11:
Error: Unbound module Ctypes
Command exited with code 2.
The text was updated successfully, but these errors were encountered: