Join GitHub today
Incremental builds broken in 4.07 #7821
Original bug ID: 7821
The "steps to reproduce" shows a case that fails with 4.07 but used to work with previous versions of the Compiler. The first build succeeds but the second fails.
What I don't understand is that the error mentions base.cmi when compiling info.ml. However Base depends on every other modules and no module depends on it, so the compiler shouldn't even try to read base.cmi when compiling info.ml.
I was thinking this could be due to the heuristic I added to print X__Y as X.Y, however there is no error message in the build so there is no type to print.
Steps to reproduce
$ git clone https://github.com/janestreet/base.git
Comment author: @diml
Yes, I attached the log for the first and second builds. The second one is the one that's failing.
I'll try to get a smaller reproduction case. One other thought: IIRC, the naming heuristic is also applied for extensible constructors, and maybe the call for this is not protected against extra cmi loading.