[mercury-users] newby question--example build fails on Mac

Keith Braithwaite keith at keithbraithwaite.demon.co.uk
Wed May 21 08:02:05 AEST 2003


Hi,
I couldn't find anything in the archive that quite related to the  
problem I have, so I thought I'd ask.

I have MacOS 10.2.5 running on a G4 with gcc 3.1 and GNU make 3.79 I  
downloaded  
http://heanet.dl.sourceforge.net/sourceforge/mercury/mercury- 
0.11.0.powerpc-apple-darwin5.5.tgz

Following the instructions in the read me, I get to this state:

bash-2.05a$ which mmc
/usr/local/mercury-0.11.0/bin/mmc

ok, then I do
bash-2.05a$ cp /usr/local/mercury-0.11.0/samples/hello.m .
bash-2.05a$ mmc hello

and get:
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:72: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:72: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:72: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:73: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:73: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:73: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:74: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:74: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:74: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:78: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:78: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:78: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:80: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:80: macro or  
#include recursion too deep
/usr/local/mercury-0.11.0/lib/mercury/inc/mercury_dlist.h:80: macro or  
#include recursion too deep
For more information, try recompiling with `-E'.

Following the instructions in the tutorial, however, I get this:
bash-2.05a$ mmake hello_world.depend
mmc --generate-dependencies --grade reg.gc          hello_world
bash-2.05a$ ls
hello_world.d   hello_world.dep hello_world.dv  hello_world.m
bash-2.05a$ mmake hello_world
mmc --compile-to-c --grade reg.gc          hello_world >  
hello_world.err 2>&1
mgnuc --grade reg.gc        --      -c hello_world.c -o hello_world.o
/usr/libexec/gcc/darwin/ppc/3.1/tradcpp0: invalid option `-std=c89'
make: *** [hello_world.o] Error 1

Neither or which are very encouraging.

Seems as if I've got a mis-match of versions here? Or what is it?

Any suggestions gratefully received.

Keith

--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list