[nhc-bugs] Build Error under nhc98

Brent Fulgham brent.fulgham@xpsystems.com
Mon, 4 Jun 2001 09:24:37 -0700


> When using the original nhc98 binaries I built from the
> included C sources, I got a build error while building
> ...../prelude/Binary/PutBits.gc
> 
> No C type decl for variable foreign in DIS:
> Apply (Constructor "BH") [Apply (Declare "BinHandle" (Var 
> "bh")) [Apply (Var "foreign") [Exp "finaliseBH",Var "bh"]]]
> greencard-nhc98 failed on ./PutBits.gc
> make: *** 
> [/home/bfulgham/nhc98-1.04/targets/ix86-Linux/obj/prelude/Bina
> ry/PutBits.o] Error 1
> 

As it turns out, it seems that the correct answer is to set
"SEARCH = ../$(MACHINE)" -- using ../IO caused segfaults later
in the build (during the time profiling build).

All is well now, but I'm not sure what the "real" solution should
be.

Thanks,

-Brent