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 does not behave the same if files start with an uppercase letter or not #6914

Closed
vicuna opened this issue Jun 23, 2015 · 5 comments
Closed
Assignees

Comments

@vicuna
Copy link

vicuna commented Jun 23, 2015

Original bug ID: 6914
Reporter: berenger
Assigned to: @damiendoligez
Status: closed (set by @xavierleroy on 2017-02-16T14:15:12Z)
Resolution: not a bug
Priority: normal
Severity: minor
Version: 4.01.0
Category: tools (ocaml{lex,yacc,dep,debug,...})
Monitored by: @gasche

Bug description

Apparently, ocamldep is case sensitive on the first letter of a filename.

ocamldep.opt -I ./ -I dist/build/autogen -modules dist/build/lib-l1/parser.ml dist/build/lib-l1/parser.mli
-->
LogicSymbolicSet,Obj,Parsing,AST,Lexing

ocamldep.opt -I ./ -I dist/build/autogen -modules dist/build/lib-l1/Parser.ml dist/build/lib-l1/Parser.mli
-->
[]

The result of the first invocation is what we expect.
The result of the second invocation is problematic.

@vicuna
Copy link
Author

vicuna commented Jun 23, 2015

Comment author: berenger

I am currently trying to create a very simple project where this can be exercised. Maybe soon on github ...

@vicuna
Copy link
Author

vicuna commented Jun 23, 2015

Comment author: berenger

OK, this is probably not related to the case in fact but related to the
-I option.
This works:
$ ocamldep -modules UnionFind/UnionFind.ml
UnionFind/UnionFind.ml: Map Rename Set
this works too:
$ ocamldep -I UnionFind -modules UnionFind/UnionFind.ml
UnionFind/UnionFind.ml: Map Rename Set

This doesn't work:
$ ocamldep -I UnionFind -modules UnionFind.ml

I am not sure if this is a bug.
Please close this if I am wrong.

@vicuna
Copy link
Author

vicuna commented Jun 23, 2015

Comment author: @gasche

The interaction in your last message is reasonable: -I is only used for further name lookup, not for the initial name lookup (ocamlc also beahves this way). The example in your first message is a bit more perplexing, as you give the full path dist/build/lib-l1/Parser.mli.

@vicuna
Copy link
Author

vicuna commented Jun 23, 2015

Comment author: berenger

My first message is from looking at a trace of obuild.
This is not a command-line interaction with a real user.
I will try to look further into it.

@vicuna
Copy link
Author

vicuna commented Jun 25, 2015

Comment author: fbr

Sorry for the noise, there was a bug in obuild, it was corrected by the maintainer (Jerome Maloberti), this can be closed.

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