[Hat] Problem building hat with GHC 5.04
Malcolm Wallace
hat@haskell.org
Fri, 30 Aug 2002 10:47:10 +0100
Kirsten Chevalier <krc@uclink.berkeley.edu> writes:
> 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