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

Volker Wysk <[email protected]>
Newsgroups gmane.comp.lang.mercury.general
Message-ID <[email protected]>
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

_______________________________________________
users mailing list
[email protected]
https://lists.mercurylang.org/listinfo/users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmNOf7wACgkQ+K4ydFOs
HoW4Mg/9ERbsi96Q8bhqYjp6y1qhus3AP/e9VGOqnTbrU6/0LbBD9p8DAlmF8Ojp
I/E5gMxk+aUG2REwl0ykF2GDExRy5tI4xeZ5AROyeGnQrYcFRM+dLnBCJOXS8/Cd
zymCt0hZpuAZ+1i1RQpf+U73kZjwsAbcYzdwZHwbv46hQVdLvi9i8j3upLnvt5bG
zwHHl0Br5J0rOcbeLW06UNSCAK5os/tf5EegMqvV9wJQZ1AhU/8Qfeh7+3uibT1b
celTd3STtXmx9zTw+9vs1kkxD4xcGAPJ94am5JtBqUtr1eoZ+pYwCgURnpBnCLhf
AGVphb0WrELd+dFTsrC8i7/urIKW3sk0Tr1pLMV/xyETy+WBhcM9R7pHNHbQaitQ
0gxNIaLz3DtHWqPWSDaH3n4/mSHFB2OgTiitOrOmYp20Vz+2QNiJExUEL4Np1pev
GGJ68K+HKc9hhR2/TehqRLH4Z7mJjVSJEWWQ43DH3aX7a6x5/aoon5u2btPi47Kx
OKUZ3hjqnfM0rTHTBcYHyTnNM6AwiUXO9ywAKKZR+oxWWApUUnfKDn+7hQNeJa5D
Z2mA+rEgjdHbWnUsvBBqpOKILDC5WKsAiLBIMAGM2bO1H51D8Wj2PY19pW3miZ/P
neOHxLbrsbEZMrDsaQI+UkRfWDbuf8iDPJ3lPzgfVKeJDpwbkOQ=
=S8bf
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.