[mercury-users] Latest ROTD on MacOSX problems

Roy Ward roy at videoscript.com
Sat Sep 7 12:11:47 AEST 2002


I'm trying to compile rotd-2002-09-05 for MacOSX 10.2. I'm only trying
to get the hlc.gc grade going.

When I try with gcc 3.1, it builds OK, but dies on the install:
Compiler version: Apple Computer, Inc. GCC version 1040, based on gcc
version 3.1 20020105 (experimental)

../scripts/mgnuc --grade hlc.gc      --no-mercury-stdlib-dir --no-ansi
   --  -I../boehm_gc -I../boehm_gc/include -I../mps_gc/code -g
-DMERCURY_BOOTSTRAP_H -DMERCURY_CONF_BOOTSTRAP_H     -c mercury.c -o
mercury.o
mercury.c:54: redefinition of `MR_create1'
mercury_heap.h:223: `MR_create1' previously defined here
mercury.c:67: redefinition of `MR_create2'
mercury_heap.h:232: `MR_create2' previously defined here
mercury.c:81: redefinition of `MR_create3'
mercury_heap.h:242: `MR_create3' previously defined here
make[2]: *** [mercury.o] Error 1

When I try with gcc 2.95.2, it dies during the build with the following:
Compiler version: Apple Computer, Inc. version gcc-937.2, based on gcc
version 2.95.2 19991024 (release)

../scripts/mgnuc --grade none.gc      --no-mercury-stdlib-dir   --
-I../boehm_gc -I../boehm_gc/include -I../mps_gc/code -I../runtime
-I../library -I../library/ -I../browser -I../browser/ -I../trace     -c
hlds.make_hlds.c -o hlds.make_hlds.o
hlds.make_hlds.c: In function
`mercury__hlds__make_hlds__add_pragma_export_9_0_i15':
hlds.make_hlds.c:16379: parse error at null character
hlds.make_hlds.c:16379: stray '\' in program
hlds.make_hlds.c:16379: stray '\' in program
hlds.make_hlds.c:16379: stray '\' in program
hlds.make_hlds.c:16379: stray '\' in program
hlds.make_hlds.c:16379: nondigits in number and not hexadecimal
hlds.make_hlds.c:16383: nondigits in number and not hexadecimal
hlds.make_hlds.c:16383: more than one `i' or `j' in numeric constant
hlds.make_hlds.c:16383: missing white space after number `8II'
hlds.make_hlds.c:16383: warning: unknown escape sequence `\9'
hlds.make_hlds.c:16386: character constant too long
hlds.make_hlds.c:16387: parse error before `static'
hlds.make_hlds.c:16393: parse error before `static'
hlds.make_hlds.c: At top level:
hlds.make_hlds.c:2519: warning:
`mercury__hlds__make_hlds__add_pragma_export_9_0_i16' used but never defined
hlds.make_hlds.c:2522: warning:
`mercury__hlds__make_hlds__add_pragma_export_9_0_i14' used but never defined

That error is kind of strange, because there is no null character on
that line.

The previous rotd (2002-05-12) built fine (after some alterations) with
gcc 2.95.2.

My questions:

* Has anyone else got the latest rotd going with MacOSX/Darwin? If so, how?

* Has anyone seen these problems before and can suggest workarounds?

* Which compiler (2.95.2 or 3.1) is the best to use? I'm hoping that 
eventually it will work under 3.1 or later, because at some stage Apple 
is going to drop support for 2.95.2.

When I get Mercury running, I'll post some instructions, and also put
them (and maybe a binary) on a web page I'm setting up for the purpose.

Cheers,
Roy Ward.


--------------------------------------------------------------------------
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