[m-rev.] Compiler issue: did you get my previous email?

Zoltan Somogyi zoltan.somogyi at runbox.com
Sun Dec 19 12:18:13 AEDT 2021


2021-12-19 10:26 GMT+11:00 "emacstheviking" <objitsu at gmail.com>:
> I did a little more digging ,  I removed use of module `aio` and then
> commented almost all the file but then... same bug, different file!

I have reproduced the problem (or at least I reproduced *a* problem,
which I *think* is the same as yours). It has nothing to do with
your code. The problem is that (a) the compiler puts analysis
results for predicates into .opt files without putting the declarations
of those predicates in those files, so that (b) when another
compiler invocation reads that .opt file, and looks up that predicate
so it can record that analysis result for it, the lookup unexpectedly fails.
Your compilations are failing due to such "orphan" analysis results
in .opt files in your installed Mercury compiler.

I will look into fixing both halves of this, but for now, just try
turning off intermodule optimization.

Zoltan.


More information about the reviews mailing list