[mercury-users] Trouble debugging in 11.01 beta on mac

David Parks david at deepdownstudios.com
Sun Mar 13 06:55:21 AEDT 2011


I'm going through the user's guide and I'm trying to follow the
examples in the guide but I can't seem to make a debug build.  This is
on MacOS 10.6 with gcc 4.2.1 (XCode 3.2.5).  Its a standard install of
Mercury with the only change being that I also installed the java
grade.

The manual says that to make a debug build, run:
mmc --debug hello.m

I get this error on mac:

mercury_compile: debugging is available only in low level C grades

The mac instructions say that "none" is the default grade on mac and
that asm and... something else aren't available.  I'd assume that none
is correct but I also tried some other things (pretty randomly... I'm
definitely still learning).  I had the most luck with this:

mmc -s none.gc.debug --debug hello.m

Which produced a linker error:

Undefined symbols:
  "_MR_grade_v16_none_gc_tags3_ubf_debug9", referenced from:
      _MR_grade in hello_init.o
      _MR_grade in hello.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

(I get exactly the same message with "none.gc".)

Any thoughts on how I can get past this?  I have been able to run
normal c builds, java builds, and a static library so my installation
can't be completely fubar.

Thanks,
- David

--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list