[m-users.] Error making c file after upgrading to Mercury 22.01

Mark Brown mark at mercurylang.org
Sun Apr 10 14:43:49 AEST 2022


Hi Dirk,

On Sun, Apr 10, 2022 at 4:16 AM Dirk Ziegemeyer <dirk at ziegemeyer.de> wrote:
>
> At first, I want to thank you for providing Mercury 22.01.
>
> Uprading a module from Mercury 20.06 to 22.01 on MacOS Catalina fails and I don't know where to find debugging hints.

The new compiler may be confused by old generated files. If you
haven't already done so, you can remove them with, e.g.:

  mmc --make foo.clean

or

  mmc --make foo.realclean

Cheers,
Mark

>
> The compiler gives me these log messages:
>
> $ mmc --make foo
> Making Mercury/int3s/foo.int3
> Making Mercury/int3s/bar.int3
> Making Mercury/ints/bar.int
> Making Mercury/ints/foo.int
> Making Mercury/hlc.gc/x86_64-apple-darwin19.6.0/Mercury/cs/bar.c
> ** Error making `Mercury/hlc.gc/x86_64-apple-darwin19.6.0/Mercury/cs/bar.c'.
> make: *** [foo] Error 1
>
> The files foo.err and bar.err are both empty.
>
> Calling mmc with option -E does not provide any more information.
>
> Other modules within this repository compile successfully with Mercury 22.01. Julien’s mercury-csv library, which my module depends on, compiles and installs successfully with Mercury 22.01.
> The same situation happens with mercury-rotd-2022-04-07.
>
> Unfortunately, I don't know where too find more information on how to debug this, because the .err files are empty.
>
> I would appreciate any help on how to debug this kind of error.
>
> Dirk
>
>
> _______________________________________________
> users mailing list
> users at lists.mercurylang.org
> https://lists.mercurylang.org/listinfo/users


More information about the users mailing list