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

ocamldep -native does not print bytecode deps and confuses omake #5696

Closed
vicuna opened this issue Jul 23, 2012 · 2 comments
Closed

ocamldep -native does not print bytecode deps and confuses omake #5696

vicuna opened this issue Jul 23, 2012 · 2 comments
Assignees

Comments

@vicuna
Copy link

vicuna commented Jul 23, 2012

Original bug ID: 5696
Reporter: gerd
Assigned to: @lefessan
Status: closed (set by @xavierleroy on 2015-12-11T18:07:24Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.00.0+beta2/+rc1
Fixed in version: 4.00.0+dev
Category: tools (ocaml{lex,yacc,dep,debug,...})

Bug description

I 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= in OMakefile (defaults to -native if native code is built).

@vicuna
Copy link
Author

vicuna commented Jul 23, 2012

Comment author: @lefessan

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...)

@vicuna
Copy link
Author

vicuna commented Jul 23, 2012

Comment author: @lefessan

Fixed in commit 12759.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants