[Hat] Hat install problem
Malcolm Wallace
hat@haskell.org
Mon, 30 Sep 2002 11:41:33 +0100
Atze Dijkstra <atze@cs.uu.nl> writes:
> gcc -O -D__NHC__ -DVERSION="\"2.01\""
> -I/Volumes/Apps/Install/nhc/include -c -o
> /Volumes/Apps/Install/nhc/targets/powerpc-Darwin-6.1/obj/hatlib/nhc98/hat.o hat.c
Hmm, looks like you are building Hat 2.01 (from CVS), not 2.00.
> nhc98 +RTS -K12M -H64M -RTS -cpp -c -o
> /Volumes/Apps/Install/nhc/targets/powerpc-Darwin-6.1/obj/hatlib/nhc98/TPreludeBuiltinTypes.o TPreludeBuiltinTypes.hs
> I/O error (user-defined), call to function `userError':
> Can't open any of:
> ./Hat.hi
> /usr/local/include/nhc98/Hat.hi
> when trying to read Hat.
Is it possible that there is an old Hat.o file hanging around, but
you have removed the corresponding Hat.hi file (with `make clean'
or similar?) Look for
/Volumes/Apps/Install/nhc/targets/powerpc-Darwin-6.1/obj/hatlib/nhc98/Hat.o
and delete it if you find it.
> That is, I downloaded hat-2.00 and cvs checked out nhc, configured
> for compiling with nhc98 (which did install ok), then 'make hat'.
You are making Hat 2.01 inside the nhc98 tree, rather than Hat 2.00
from the separately downloaded stable version. My guess is that,
in the CVS tree you did
./configure
make # build nhc98
make install # install nhc98
make hat
The final step probably failed with
..../script/hat-trans: Command not found
and you guessed you needed something like
./hat-configure
make clean
make hat
If you really want the CVS version of Hat, then I suggest you start again with
make realclean
./configure # configure nhc98 (but we don't need to re-build it)
./hat-configure # configure Hat
make hat
./hat-configure --install # install Hat - do not use 'make install'.
Regards,
Malcolm