[m-users.] mmc --debug and mdb usage problems

Volker Wysk post at volker-wysk.de
Tue Oct 18 21:28:12 AEDT 2022


HiĀ 

Am Dienstag, dem 18.10.2022 um 15:31 +0530 schrieb Razetime:
> All the programs I have tried to compile are from here:
> https://github.com/razetime/aoc/tree/main/16
> Using the guide:
> https://mercurylang.org/information/doc-release/mercury_user_guide/Quick-overview.html#Quick-overview
> My installation was from the debian package repository, given here:
> http://dl.mercurylang.org/deb/. My OS is Ubuntu 20.02 (fossa)
> I would like to know if I am doing any steps wrong, or my install is
> not correct.
> 
> I have tried to compile and build a program with imported module,
> which gives the following error:
> $ mmc --debug --make a07
> mercury_compile: error: the Mercury standard library cannot be found in grade
>   `asm_fast.gc.debug'.
> 
> mmc --debug a01 runs quietly with no output, and mdb ./a01 after that
> just runs the program as is with no debugger controls appearing.

Compiling for debugging isn't done with the "--debug" parameter, but by
choosing a grade with debug support.

Use this to list the installed grades:

mmc --output-libgrades|sort

Chose one with "debug" in it and specify it with "--grade" to the compiler.

Bye
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20221018/c6fd11dd/attachment.sig>


More information about the users mailing list