[mercury-users] rotd-2002-12-01 array.m:708: `SUCCESS_INDICATOR' undeclared

Ondrej Bojar oboj7042 at ss1000.ms.mff.cuni.cz
Wed Dec 4 02:30:21 AEDT 2002


Hi.

My computer was changed again, so I need to get Mercury running again. I
used to use rotd-2002-03-17 and now I wished to use the current
rotd-2002-12-01.

However, I'm again unable to make it compile (problems similar to the
rotd-2002-03-17). The full log is in the attachment.

I specified

CFLAGS-mercury_trace_alias = -O0

to my Mmake.params (right after untarring the distributed .tar.gz) to
avoid

mercury_trace_alias.c:98: Unable to find a register to spill in class
    `SIREG'.

but I got the error anyway. So I used the second hint from 'BUGS' file and
(again from scratch) used these params:

CFLAGS-mercury_trace_alias = -O0
GRADE = hlc.gc

This way I got the current error (see the log for more):
../scripts/mgnuc --grade hlc.gc      --no-mercury-stdlib-dir   --
-I../boehm_gc -I../boehm_gc/include -I../mps_gc/code -I../runtime
-I../trace     -c array.c -o array.o
array.m: In function `mercury__array__lookup_3_0':
array.m:708: `SUCCESS_INDICATOR' undeclared (first use in this function)
array.m:708: (Each undeclared identifier is reported only once
array.m:708: for each function it appears in.)
array.m: In function `mercury__array__lookup_3_1':
array.m:708: `SUCCESS_INDICATOR' undeclared (first use in this function)
array.m: In function `mercury__array__set_4_0':
array.m:708: `SUCCESS_INDICATOR' undeclared (first use in this function)
array.m: In function `mercury__array__bounds_checks_0_0':
array.m:708: `SUCCESS_INDICATOR' undeclared (first use in this function)
int.opt: In function `mercury__array__permutation_2_8_0_i3':
int.opt:138: `SUCCESS_INDICATOR' undeclared (first use in this function)
array.m: In function `mercury__array____Unify____array_1_0':
array.m:451: warning: implicit declaration of function
`mercury__array__array_equal_2_p_0'
array.m: In function `mercury__array____Compare____array_1_0':
array.m:468: warning: implicit declaration of function
`mercury__array__array_compare_3_p_0'
gmake[2]: *** [array.o] Error 1
gmake[2]: Leaving directory
`/a/ma165a/home.nezalohovany/bojar/src/mercury-compiler-rotd-2002-12-01/library'

Unfortunately, the hint 'use a different C compiler than gcc 2.96' is not
plausible for me, I don't have the root here (and I'm really afraid of
installing the C compiler myself). I tried to run ./configure
--with-cc=kgcc (from scratch), but the problem with SIREG didn't vanish.

My kgcc says: loki:mercury-compiler-rotd-2002-12-01$kgcc --version
egcs-2.91.66

What else should I try?

I don't precisely understand the workaround:

* Use `asm_jump.*' compilation grades instead of `asm_fast.*'
  grades. Note that `asm_jump.*' grades are not usually installed.

I don't insist on the bleeding edge of the day before tomorrow, but I have
the same problems when I try to compile for instance the rotd-2002-03-17.

Thanks for help,
  Andrew.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.zip
Type: application/zip
Size: 3801 bytes
Desc: 
URL: <http://lists.mercurylang.org/archives/users/attachments/20021203/b0538680/attachment.zip>


More information about the users mailing list