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 make dependencies on WIN32 #3063

Closed
vicuna opened this issue Dec 2, 2001 · 2 comments
Closed

ocamldep does not make dependencies on WIN32 #3063

vicuna opened this issue Dec 2, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 2, 2001

Original bug ID: 680
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Ohad Rodeh
Version: 3.01/3.02
OS: WIN20000
Submission from: e-hub.haifa.ibm.net.il (192.115.216.66)

ocamldep does not make dependencies for subdirectories on WIN2000 (I presume for
all WIN32).
For example, in a system where you have directory X and subdirectory A then
running ocamldep
from the top directory (X):
ocamldep -I A A*.ml*
will result in an empty set of dependecies.

Using a cygwin bash shell ocamldep does work, but not from a normal windows
command prompt.


Example:

Top dir X.
subdir A.

A includes files xx.ml:

let f () =
print_string "Hello World";
()

and file yy.ml:

open Xx

let _ =
f ()

Ohad.

@vicuna
Copy link
Author

vicuna commented Dec 3, 2001

Comment author: administrator

ocamldep does not make dependencies for subdirectories on WIN2000 (I
presume for all WIN32). For example, in a system where you have
directory X and subdirectory A then running ocamldep
from the top directory (X):
ocamldep -I A A*.ml*
will result in an empty set of dependecies.

Using a cygwin bash shell ocamldep does work, but not from a normal windows
command prompt.

Right, the "globbing" code in OCaml (the code that expands * patterns
on the command line) did not handle directories in patterns correctly:
for A*.ml* it would return xx.ml yy.ml instead of the correct
A\xx.ml A\yy.ml.

The problem doesn't appear under bash, because bash itself performs
the globbing before invoking ocamldep.

This is now fixed in the working sources. Thanks for the bug report.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Dec 3, 2001

Comment author: administrator

Fixed 2001-12-03 by XL.

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

No branches or pull requests

1 participant