Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005696OCamlOCaml tools (ocaml{lex,yacc,dep,browser,debug})public2012-07-23 03:292012-07-23 15:48
Reportergerd 
Assigned Tolefessan 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version4.00.0+beta2/+rc1 
Target VersionFixed in Version4.00.0+dev 
Summary0005696: ocamldep -native does not print bytecode deps and confuses omake
DescriptionI don't know whether this should be fixed in ocaml or omake. What I've observed is that "ocamldep -native" no longer prints bytecode deps (in contrast to 3.12). Some omake builds are now broken (this only affects the mode when OCAMLDEP_MODULES_ENABLED=false in OMakefile - but this is frequent as the mode using -modules is still "more" broken).

Apparently, omake needs the deps for a mixed native/bytecode build.

Taken literally, this is a bug in ocaml, "The flag -native causes dependencies on native compiled files (.cmx) to be generated instead of on .cmo files. (This flag makes no difference if all source files have explicit .mli interface files.)" (manual). The spec did not include that the cmo deps are entirely omitted. But, of course, the thinking about that might have changed (but in this case the manual should be updated).

Btw, the workaround is to set OCAMLDEPFLAGS=<empty> in OMakefile (defaults to -native if native code is built).
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0007795)
lefessan (developer)
2012-07-23 13:24

Hi, this is indeed an unwanted change in the specification. We are going to check if it is still time to fix it before the release (there are just two lines to change in ocamldep.ml, but it's a bit late...)
(0007796)
lefessan (developer)
2012-07-23 15:48

Fixed in commit 12759.

- Issue History
Date Modified Username Field Change
2012-07-23 03:29 gerd New Issue
2012-07-23 13:24 lefessan Note Added: 0007795
2012-07-23 13:24 lefessan Assigned To => lefessan
2012-07-23 13:24 lefessan Status new => confirmed
2012-07-23 15:48 lefessan Note Added: 0007796
2012-07-23 15:48 lefessan Status confirmed => resolved
2012-07-23 15:48 lefessan Fixed in Version => 4.00.0+dev
2012-07-23 15:48 lefessan Resolution open => fixed
2013-08-19 15:58 doligez Category OCaml tools (ocaml{lex,yacc,dep,browser}) => OCaml tools (ocaml{lex,yacc,dep,browser,debug})


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker