
I'm getting the following error when trying to compile hat using GHC 5.04 on a machine running RedHat Linux 7.3: # make cd src/compiler98; make HC=ghc hat-trans make[1]: Entering directory `/tmp/hat-2.00/src/compiler98' hmake -ghc +CTS -package lang -CTS -d /tmp/hat-2.00/targets/ix86-Linux/obj/compiler98 HatTrans Fail: Can't find module IO in . Or in standard libraries at /usr/lib/ghc-5.02.3/imports/std /usr/lib/ghc-5.02.3/imports/lang /usr/lib/ghc-5.02.3/imports/concurrent /usr/lib/ghc-5.02.3/imports/data /usr/lib/ghc-5.02.3/imports/net /usr/lib/ghc-5.02.3/imports/posix /usr/lib/ghc-5.02.3/imports/text /usr/lib/ghc-5.02.3/imports/util /usr/lib/ghc-5.02.3/imports/hssource /usr/lib/ghc-5.02.3/imports/greencard /usr/lib/ghc-5.02.3/imports/xlib /usr/lib/ghc-5.02.3/imports/HGL /usr/lib/c2hs-0.10.11/ghc5/import /usr/lib/gtk+hs-0.14.8/ghc5/import/glib /usr/lib/gtk+hs-0.14.8/ghc5/import/gdk /usr/lib/gtk+hs-0.14.8/ghc5/import/gtk /usr/lib/gtk2hs/hi /usr/lib/hi Asked for by: HatTrans.hs [Check settings of -I or -P flags?] Stop - hmake dependency error. make[1]: *** [/tmp/hat-2.00/lib/ix86-Linux/hat-trans] Error 1 make[1]: Leaving directory `/tmp/hat-2.00/src/compiler98' make: *** [targets/ix86-Linux/hat-trans-ghc] Error 2 It seems to be looking for the GHC 5.02.3 libraries, but I have GHC 5.04 installed. I know the system requirements say that Hat can't interoperate with 5.04, but does it not work to compile Hat as well? Thanks, Kirsten -- Kirsten Chevalier * krc@uclink.berkeley.edu * Often in error, never in doubt

Kirsten Chevalier
I'm getting the following error when trying to compile hat using GHC 5.04 on a machine running RedHat Linux 7.3:
Hat cannot currently be built with ghc-5.04 at all, due to a bug in ghc which will be fixed in 5.04.1. However, that is not the cause of the particular error you report.
hmake -ghc +CTS -package lang -CTS -d /tmp/hat-2.00/targets/ix86-Linux/obj/compiler98 HatTrans
Fail: Can't find module IO in . Or in standard libraries at /usr/lib/ghc-5.02.3/imports/std /usr/lib/ghc-5.02.3/imports/lang ... /usr/lib/c2hs-0.10.11/ghc5/import /usr/lib/gtk+hs-0.14.8/ghc5/import/glib /usr/lib/gtk+hs-0.14.8/ghc5/import/gdk /usr/lib/gtk+hs-0.14.8/ghc5/import/gtk /usr/lib/gtk2hs/hi /usr/lib/hi Asked for by: HatTrans.hs [Check settings of -I or -P flags?]
It looks like you originally installed your Haskell software in the following order: ghc-5.02.3, hmake-3.05, ghc-5.04. After installing ghc-5.04, you forgot to update the hmake configuration for ghc. To fix it, try hmake-config add ghc [ That updates your personal hmake configuration - to update the system-wide config, I suggest hmake-config /usr/local/hmake/ix86-Linux/hmakerc add ghc instead. (Obviously use the config file location for your machine.) ] You might also want to add the version-specific names for ghc, e.g. hmake-config add ghc-5.04 hmake-config add /usr/bin/ghc-5.04 Finally, you probably noticed that hmake was searching a whole bunch of package directories it did not need to - for package concurrent, posix, gtk, etc. This has been fixed in hmake-3.06. Regards, Malcolm
participants (2)
-
Kirsten Chevalier
-
Malcolm Wallace