Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004618OCamlOCaml generalpublic2008-10-02 14:302012-07-29 18:05
ReporterJulien Signoles 
Assigned Tofrisch 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionnot fixable 
PlatformOSLinux UbuntuOS Version
Product Version3.10.2 
Target Version4.01.0+devFixed in Version 
Summary0004618: ocamldep generates circular dependencies which don't exist
DescriptionHello,

Consider the following files a.ml and b.ml:

=== a.ml ===
module B = struct end
=== b.ml ===
open A
open B
============
$ ocamldep a.ml b.ml
b.cmo: b.cmo a.cmo
b.cmx: b.cmx a.cmx
Additional Informationocamldep has not the same scope rules for modules than ocaml[c|opt].

This bug is related to bugs 0001996 and 0004081 but here circular dependencies are generated and GNU make complains...
TagsNo tags attached.
Attached Files

- Relationships
related to 0001996resolvedfrisch ocamldep bad dependancy 
related to 0004081resolvedfrisch ocamldep reports incorrect dependency 

-  Notes
(0004644)
ertai (developer)
2008-10-02 16:55

(Just my 2cents)

That's a "well known" problem of ocamldep, moreover it's very hard to avoid.

Indeed to know what contains a module without typing it unfeasible (however an approximation could), and the goal of ocamldep is to run before compiling files.

I've already thought about solutions of this problem (better approximations) but never took the time to push it forward.

- Issue History
Date Modified Username Field Change
2008-10-02 14:30 Julien Signoles New Issue
2008-10-02 16:55 ertai Note Added: 0004644
2008-10-08 13:17 doligez Relationship added related to 0001996
2008-10-08 13:17 doligez Relationship added related to 0004081
2008-10-08 13:18 doligez Status new => acknowledged
2012-07-11 15:01 doligez Target Version => 4.01.0+dev
2012-07-29 18:05 frisch Status acknowledged => resolved
2012-07-29 18:05 frisch Resolution open => not fixable
2012-07-29 18:05 frisch Assigned To => frisch


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker