[m-rev.] for review: delete references to Erlang in the compiler

Zoltan Somogyi zoltan.somogyi at runbox.com
Thu Oct 29 18:27:52 AEDT 2020


2020-10-29 17:55 GMT+11:00 "Peter Wang" <novalazy at gmail.com>:
> You can reproduce it by installing Mercury then trying to build a
> program with either mmake or mmc --make.

I can't reproduce any breakage with mmake, which is not surprising,
since I did a test install, and a bootcheck with stage 1 compiled
with that test install, before I committed the change.

I did find a problem with mmc --make. The problem was due to
two things. The first was the presence of references to Erlang
in installed .module_dep files; the second was the presence of
references to Erlang in foreign_import_module items in .opt files.
The pieces of code that output both .module_dep files and .opt
files can definitely not generate any references to Erlang anymore,
so the problem must be that the installed .module_dep and .opt files
were generated with a compiler that *could* create such references.

I believe that the problem can be fixed by compiling a workspace
with the updated compiler, and then installing *that*. My laptop
is testing that right now.

Zoltan.


More information about the reviews mailing list