
Hi all, I am having a problem in trying to install Hat 2.04 on my PC, I am installing Hat in a local directory so as configuration step I run ./configure --prefix=/mylocaldir/ it works fine, it finds both ghc and hmake then I run: make as first message I receive an error regarding the config file: hat-2.04/lib/ix86-Linux/config:11: *** missing separator. Stop. I edit the config file and it looks like this: GHCSYM= 604 line 11 is a space between "GHCSYM=" and "604" so I delete the separating line and modify the file as GHCSYM=604 after this the make command seems to proceed fine since at some point it stops stating: make[1]: Entering directory `/usr/rborgo/hat-2.04/src/hatlib' /usr/rborgo/hat-2.04/script/hat-trans -P. -I. -trusted -prelude -D__GLASGOW_HASKELL__= 604 PreludeBuiltin.hs Can't open 604 make[1]: *** [/usr/rborgo/hat-2.04/targets/ix86-Linux/obj/hatlib/ghc/Hat/PreludeBuiltin.o] Error 1 make[1]: Leaving directory `/usr/rborgo/hat_no_patch/hat-2.04/src/hatlib'make: *** [targets/ix86-Linux/hat-lib-ghc] Error 2 I have succesfully installed hmake and I am running ghc 6.4, I am working under linux Fedora-RedHat, what am I missing? Thanks in advance for your help Regards Rita

Rita,
I edit the config file and it looks like this: GHCSYM=
604
line 11 is a space between "GHCSYM=" and "604"
The detection script for the ghc version is inserting extra spaces where there should not be spaces. You have fixed one place where this is a problem, but it seems there is at least one more place. The correct fix is to the detection script itself. Here is a patch that should make the detection more robust. After applying it, you will need to re-run 'configure', so that the new settings are propagated. Regards, Malcolm
participants (2)
-
Malcolm Wallace
-
R Borgo