Discussion:
[m-dev.] mmc --make still broken?
Paul Bone
2015-10-16 10:52:12 UTC
Permalink
Are there still problems with mmc --make?

***@oxygen> mmc --make hello --grade asm_fast.gc
** Error: error reading file `pretty_printer.m' to generate dependencies.
** Module `pretty_printer' is imported or included by module `list'.
mercury_compile: cannot find source for module `pretty_printer' in
directories .

Works fine with mmake.

Tested on master, c3161fcb3dccf6b2173216da20ae04a4e7511790
--
Paul Bone
Julien Fischer
2015-10-16 10:59:54 UTC
Permalink
Post by Paul Bone
Are there still problems with mmc --make?
Not that I'm aware of. mmc --make hello works fine on my machine with
rotd-2015-10-16.

Julien.
Paul Bone
2015-10-16 11:02:09 UTC
Permalink
Post by Paul Bone
Are there still problems with mmc --make?
** Error: error reading file `pretty_printer.m' to generate dependencies.
** Module `pretty_printer' is imported or included by module `list'.
mercury_compile: cannot find source for module `pretty_printer' in
directories .
Works fine with mmake.
Tested on master, c3161fcb3dccf6b2173216da20ae04a4e7511790
Sorry, that wasn't the most up-to-date version. I've tried again with the
most up-to-date version 892134a9af5fbfa56d557512c977b6f6f111ab40 and I get
the same error.
--
Paul Bone
Zoltan Somogyi
2015-10-16 11:39:25 UTC
Permalink
Post by Paul Bone
Post by Paul Bone
Are there still problems with mmc --make?
** Error: error reading file `pretty_printer.m' to generate dependencies.
** Module `pretty_printer' is imported or included by module `list'.
mercury_compile: cannot find source for module `pretty_printer' in
directories .
Works fine with mmake.
Tested on master, c3161fcb3dccf6b2173216da20ae04a4e7511790
Sorry, that wasn't the most up-to-date version. I've tried again with the
most up-to-date version 892134a9af5fbfa56d557512c977b6f6f111ab40 and I get
the same error.
I also just tried to compile samples/hello.m with the same version,
892134a9af5fbfa56d557512c977b6f6f111ab40, and get no error:

ivan [2772] mmc --make --grade asm_fast.gc hello
Making Mercury/int3s/hello.int3
Making Mercury/ints/hello.int
Making Mercury/cs/hello.c
Making Mercury/os/hello.o
Making hello
ivan [2773]

What hello.m are you compiling?

Zoltan.
Paul Bone
2015-10-16 11:55:51 UTC
Permalink
Post by Zoltan Somogyi
Post by Paul Bone
Post by Paul Bone
Are there still problems with mmc --make?
** Error: error reading file `pretty_printer.m' to generate dependencies.
** Module `pretty_printer' is imported or included by module `list'.
mercury_compile: cannot find source for module `pretty_printer' in
directories .
Works fine with mmake.
Tested on master, c3161fcb3dccf6b2173216da20ae04a4e7511790
Sorry, that wasn't the most up-to-date version. I've tried again with the
most up-to-date version 892134a9af5fbfa56d557512c977b6f6f111ab40 and I get
the same error.
I also just tried to compile samples/hello.m with the same version,
ivan [2772] mmc --make --grade asm_fast.gc hello
Making Mercury/int3s/hello.int3
Making Mercury/ints/hello.int
Making Mercury/cs/hello.c
Making Mercury/os/hello.o
Making hello
ivan [2773]
What hello.m are you compiling?
The same one, samples/hello.m

Maybe something is weird in my configuration for some reason. I'll track it
down later.
--
Paul Bone
Paul Bone
2015-10-19 01:58:02 UTC
Permalink
Post by Paul Bone
Are there still problems with mmc --make?
** Error: error reading file `pretty_printer.m' to generate dependencies.
** Module `pretty_printer' is imported or included by module `list'.
mercury_compile: cannot find source for module `pretty_printer' in
directories .
I tracked down this error.

It's a bootstrap error. I built this compiler with a slightly older one
that wrote IL foreign language information into .module_dep files. But
after the new compiler was installed it couldn't read the .module_dep files
that had been installed for its standard library modules, as support for IL
has been removed. After failing to read .module_dep it looked for a .m file
in the current directory to attempt to rebuild the dependencies. The
solution is that I should bootstrap with a slightly newer ROTD.

We should be aware of this in case it affects anyone else.
--
Paul Bone
Loading...