Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006058OCaml-for ocamlbuild use 17:202015-12-11 19:21
Assigned Togasche 
PlatformOSOS Version
Product Version4.00.1 
Target Version4.01.0+devFixed in Version4.01.0+dev 
Summary0006058: 'ocamlbuild -use-ocamlfind -tag thread -package threads t.cma' fails
DescriptionThis bug is also present in the latest 4.01.0+dev snapshot from opam (4.01.0+dev18-2013-06-13).

The full command and output:

$ ocamlbuild -use-ocamlfind -tag thread -package threads t.cma
+ ocamlfind ocamlc -a -package threads t.cmo -o t.cma
ocamlfind: Error from package `threads': Missing -thread or -vmthread switch
Command exited with code 2.
Compilation unsuccessful after building 3 targets (0 cached) in 00:00:00.

The bug is present when trying to compile:
t.cma, t.cmxa

but not when trying to compile:
t.native, t.byte
Steps To Reproduce1. Create a (possibly empty) file to compile (ex.
2. Run 'ocamlbuild -use-ocamlfind -tag thread -package threads t.cma'
Additional InformationTested against 4.00.1 and 4.01.0+dev18-2013-06-13.
TagsNo tags attached.
Attached Files

- Relationships
has duplicate 0006127closedgasche -use-ocamlfind and -tag thread doesn't work. 

-  Notes
william (reporter)
2013-07-26 11:55

I add the following to ocamlbuild :

"-lflags -thread"

as we have to choose between -thread and -vmthread.

Do not know if this is exactly the same problem or an answer...
gasche (developer)
2013-07-26 21:46

This should now be fixed in trunk and version/4.01.

(Note that ocamlbuild provides no tag to select -vmthread instead. I don't suppose there has been any demand for that.)

- Issue History
Date Modified Username Field Change
2013-06-28 17:20 hcarty New Issue
2013-07-02 14:29 doligez Status new => confirmed
2013-07-02 14:29 doligez Target Version => 4.01.0+dev
2013-07-26 10:39 meyer Priority normal => high
2013-07-26 10:39 meyer Severity minor => major
2013-07-26 11:55 william Note Added: 0009866
2013-07-26 21:46 gasche Note Added: 0009875
2013-07-26 21:46 gasche Status confirmed => resolved
2013-07-26 21:46 gasche Fixed in Version => 4.01.0+dev
2013-07-26 21:46 gasche Resolution open => fixed
2013-07-26 21:46 gasche Assigned To => gasche
2013-08-08 01:24 gasche Relationship added has duplicate 0006127
2015-12-11 19:21 xleroy Status resolved => closed
2017-02-23 16:34 doligez Category OCamlbuild (the tool) => for ocamlbuild use [^]
2017-02-23 16:44 doligez Category for ocamlbuild use [^] => -for ocamlbuild use [^]

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker