[m-dev.] MAC OS X Success!

Terrence Brannon princepawn at earthlink.net
Sun Apr 15 23:26:42 AEST 2001


I would try to be witty and write a Mercury program who interpretation
says I succeeded in compiling Mercury, but I am not that good yet.

-- I did have to go an run ranlib on several libraries after typing make
install_main though. 

-- also, hello_world (from rbeck's excellent tutorial) comes out as a
   3 megabyte file! just to say hello. My guess is that this size
   remains relatively constant even as programs grow much larger...

[localhost:~/src/tests] metaperl% mmake hello.m
gmake: Nothing to be done for `hello.m'.
[localhost:~/src/tests] metaperl% mmake hello
gmake: *** No rule to make target `hello'.  Stop.
[localhost:~/src/tests] metaperl% ls
hello.m
[localhost:~/src/tests] metaperl% mmake hello.depend
mmc --generate-dependencies --grade none.gc         hello
Error: file `hello.m' contains the wrong module.
Expected module `hello', found module `hello_world'.
For more information, try recompiling with `-E'.
gmake: *** [hello.depend] Error 1
[localhost:~/src/tests] metaperl% mmake hello_world.depend
mmc --generate-dependencies --grade none.gc         hello_world
Error: can't read source file for module `hello_world'.
For more information, try recompiling with `-E'.
gmake: *** [hello_world.depend] Error 1
[localhost:~/src/tests] metaperl% mv hello.m hello_world.m
[localhost:~/src/tests] metaperl% mmake hello_world.depend
mmc --generate-dependencies --grade none.gc         hello_world
[localhost:~/src/tests] metaperl% mmake hello_world
rm -f hello_world.c
mmc --compile-to-c --grade none.gc         hello_world.m > hello_world.err 2>&1
mgnuc --grade none.gc             -c hello_world.c -o hello_world.o
c2init --grade none.gc         hello_world.c      > hello_world_init.c
mgnuc --grade none.gc             -c hello_world_init.c -o hello_world_init.o
ml --grade none.gc          -o hello_world hello_world_init.o \
	hello_world.o     
/usr/bin/ld: table of contents for archive: /usr/local/mercury-rotd-2001-04-10/lib/mercury/lib/none.gc/powerpc-unknown-none/libmer_std.a is out of date; rerun ranlib(1) (can't load from it)
/usr/bin/ld: table of contents for archive: /usr/local/mercury-rotd-2001-04-10/lib/mercury/lib/none.gc/powerpc-unknown-none/libmer_rt.a is out of date; rerun ranlib(1) (can't load from it)
/usr/bin/ld: table of contents for archive: /usr/local/mercury-rotd-2001-04-10/lib/mercury/lib/powerpc-unknown-none/libgc.a is out of date; rerun ranlib(1) (can't load from it)
gmake: *** [hello_world] Error 1

[localhost:metaperl/src/tests] root# ranlib /usr/local/mercury-rotd-2001-04-10/lib/mercury/lib/none.gc/powerpc-unknown-none/libmer_std.a 
[localhost:metaperl/src/tests] root# ranlib /usr/local/mercury-rotd-2001-04-10/lib/mercury/lib/none.gc/powerpc-unknown-none/libmer_rt.a
[localhost:metaperl/src/tests] root# ranlib /usr/local/mercury-rotd-2001-04-10/lib/mercury/lib/powerpc-unknown-none/libgc.a
ranlib: file: /usr/local/mercury-rotd-2001-04-10/lib/mercury/lib/powerpc-unknown-none/libgc.a(checksums.o) has no symbols
ranlib: file: /usr/local/mercury-rotd-2001-04-10/lib/mercury/lib/powerpc-unknown-none/libgc.a(linux_threads.o) has no symbols
[localhost:metaperl/src/tests] root# exit
[localhost:~/src/tests] metaperl% mmake hello_world
ml --grade none.gc          -o hello_world hello_world_init.o \
	hello_world.o     
[localhost:~/src/tests] metaperl% hello_world
hello_world: Command not found.
[localhost:~/src/tests] metaperl% ./hello_world
Hello, World!
[localhost:~/src/tests] metaperl% 

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list