[m-users.] Error making c file after upgrading to Mercury 22.01
Dirk Ziegemeyer
dirk at ziegemeyer.de
Mon Apr 11 01:22:57 AEST 2022
Hi Mark, Peter and Zoltan,
thank you for your help.
I boiled my module down and finally found the issue. It was a missing module qualification.
I just opened Mantis bug #557 together with a minimal test case to reproduce the error.
The Mercury compiler almost always emits error messages that are really helpful for debugging. It is a pleasure to use the Mercury compiler.
Cheers,
Dirk
> Am 10.04.2022 um 06:43 schrieb Mark Brown <mark at mercurylang.org>:
>
> 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