compiling ghc0.29 with gransim

Hal Daume III hdaume@ISI.EDU
Sun, 10 Mar 2002 18:43:05 -0800 (PST)


When I try tou build from source on solaris2, I get:

../../ghc/driver/ghc -c -o storage/SMmark_mg.o   -hi-diffs -dcore-lint
-link-chk     -optcO-DIN_GHC_RTS=1 -optc-DMARK_REG_MAP -hisuf _mg.hi -O
-gransim -optc-DGCap storage/SMmark.hc
storage/SMmark.lhc:1199: incompatible types in assignment
storage/SMmark.lhc:1701: warning: assignment makes integer from pointer
without a cast
storage/SMmark.lhc:1714: warning: assignment makes pointer from integer
without a cast
*** Error code 1
make: Fatal error: Command failed for target `storage/SMmark_mg.o'
Current working directory /nfs/isd/hdaume/ghc-0.29/ghc/runtime
*** Error code 1
make: Fatal error: Command failed for target `all'

any idea what's going wrong.  i took a look at the file, and the error is
in this block:

    default:
    	/* update the register we just did; save the old mstack */
	mstack = r->rR[oldpos - 2].p;
	r->rR[oldpos - 2] = Mark;
    	break;

specifically, the r->rR[oldpos - 2] line.

any ideas?

--
Hal Daume III

 "Computer science is no more about computers    | hdaume@isi.edu
  than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume