Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005293OCamlOCamlbuild (the tool)public2011-06-17 09:002013-07-29 08:03
Reporterart1 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionlaterFixed in Version 
Summary0005293: improve error message on circular build error
DescriptionHello,

the actual behaviour is not very helpful. If the compiler detects circular builds, it will be very hard to find out, what is the reason for this. It would be more helpful if the compiler reports the lines in the involved modules. Very very helpful would be if the compiler also reports a more detailled explanation and give hints for resolving such conflicts.
Tagsjunior_job
Attached Files

- Relationships

-  Notes
(0006084)
doligez (administrator)
2011-08-04 17:19

What do you call a circular build? Are you talking about the compiler or about the ocamlbuild tool?
(0006085)
art1 (reporter)
2011-08-05 07:58
edited on: 2011-08-05 07:59

A very simple example: Module foo.ml:

let foo () = 1;;
let bar () = Foo.foo ();;

Ocamlbuild means:
 ocamlbuild foo.native
Circular build detected (foo.cmx already seen in [ foo.cmx;
foo.native ])
Compilation unsuccessful after building 3 targets (0 cached) in
00:00:00.


Hope, this helps... :)

Bye Andreas

(0009950)
gasche (developer)
2013-07-28 23:16

In my experience, making the mistake of using prefixing something with Foo inside foo.ml is rather common (eg. you're adding a function in list.ml and, out of habit, call List.map instead of map). I think the error message for circular build could be improved at least in that very specialized use-case.

- Issue History
Date Modified Username Field Change
2011-06-17 09:00 art1 New Issue
2011-08-04 17:19 doligez Note Added: 0006084
2011-08-04 17:19 doligez Status new => feedback
2011-08-05 07:58 art1 Note Added: 0006085
2011-08-05 07:59 art1 Note Edited: 0006085
2013-07-28 23:14 gasche Category OCaml general => OCamlbuild (the tool)
2013-07-28 23:14 gasche Target Version => later
2013-07-28 23:14 gasche Summary report clasing lines and more detailled reasons if circular builds are detected => improve error message on circular build error
2013-07-28 23:14 gasche Tag Attached: junior_job
2013-07-28 23:16 gasche Note Added: 0009950
2013-07-29 08:03 gasche Status feedback => acknowledged


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker