Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005293OCaml-for ocamlbuild use 09:002013-07-29 08:03
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionlaterFixed in Version 
Summary0005293: improve error message on circular build error

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.
Attached Files

- Relationships

-  Notes
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?
art1 (reporter)
2011-08-05 07:58
edited on: 2011-08-05 07:59

A very simple example: Module

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

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

Hope, this helps... :)

Bye Andreas

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

In my experience, making the mistake of using prefixing something with Foo inside is rather common (eg. you're adding a function in and, out of habit, call 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
2017-02-23 16:34 doligez Category OCamlbuild (the tool) => for ocamlbuild use [^]
2017-02-23 16:44 doligez Category for ocamlbuild use [^] => -for ocamlbuild use [^]

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker