Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004611OCaml-for ocamlbuild use 01:402016-12-07 11:34
Assigned Toxclerc 
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version3.10.2 
Target Version4.02.0+devFixed in Version 
Summary0004611: Dependencies not built despite matching tags
DescriptionI have a line like below in my ocamlbuild plugin, which doesn't get triggered when cmi files are tagged with use_custom_compiler. Even though the set of the tags when using 'ocamlbuild -show-tags <target.cmi>' is a superset of the tags in the below dependency rule, the dependencies are ignored. However, the dependency rule behaves as expected for .cmx files.

The solution was to remove "compile" from the set of tags for the dependency.

dep ["ocaml"; "compile"; "use_custom_compiler"] ["ocamlopt.opt"; ""]
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
ertai (developer)
2008-09-06 11:32

By removing "compile" you allow the flags to be added to linking, ocamldoc, preprocessing...

Moreover by looking at your flags "ocamlopt.opt", I assume that's the command, and not a flag. In that case you should look a virtual commands that allow you to the ocaml compiler (look at in the root of the ocaml sources).
gasche (developer)
2013-06-16 18:46

I don't understand what the intended semantics of the line shown in the report is, so I'm not sure whether there is an underlying OCaml issue (and in that case how to reproduce it), or a misuse of the tool. Given that this bug is quite old, my first move was to close the report, but I suppose bug reporters are rather patient :)

Jessicah, could you provide more information about how to reproduce the problem? For example, an archive of a small directory with self-contained files and myocamlbuild allowing to reproduce the problem?

(If this issue hasn't advanced by the time we triage bug for 4.02, it should probably be resolved.)

- Issue History
Date Modified Username Field Change
2008-09-06 01:40 jessicah New Issue
2008-09-06 11:32 ertai Note Added: 0004598
2008-09-06 11:32 ertai Resolution open => no change required
2008-09-10 12:51 doligez Status new => assigned
2008-09-10 12:51 doligez Assigned To => ertai
2010-07-22 11:46 ertai Assigned To ertai => xclerc
2012-02-02 15:17 protz Category OCamlbuild => OCamlbuild (the tool)
2012-07-06 16:38 doligez Target Version => 4.01.0+dev
2012-07-31 13:36 doligez Target Version 4.01.0+dev => 4.00.1+dev
2012-09-10 14:05 frisch Target Version 4.00.1+dev => 4.00.2+dev
2013-06-16 18:46 gasche Note Added: 0009515
2013-06-16 18:46 gasche Target Version 4.00.2+dev => 4.02.0+dev
2013-06-16 21:25 gasche Severity major => minor
2013-07-12 18:15 doligez Target Version 4.02.0+dev => 4.01.1+dev
2014-05-25 20:20 doligez Target Version 4.01.1+dev => 4.02.0+dev
2014-08-20 18:55 doligez Status assigned => resolved
2014-08-20 18:55 doligez Resolution no change required => unable to reproduce
2016-12-07 11:34 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