Problems building nhc98 with ghc-5.04

Hi, when building nhc98 with ghc-5.04 I got the following error: /usr/ports/lang/nhc98/work/nhc98-1.14/script/hmake -ghc +CTS -package lang -CTS -d /usr/ports/lang/nhc98/work/nhc98-1.14/targets/ix86-FreeBSD/obj/greencard GreenCard Fail: Can't find module PrelBase in . Or in standard libraries at /usr/local/lib/ghc-5.04/imports/base /usr/local/lib/ghc-5.04/imports/haskell98 /usr/local/lib/ghc-5.04/imports/network /usr/local/lib/ghc-5.04/imports/haskell-src /usr/local/lib/ghc-5.04/imports/lang /usr/local/lib/ghc-5.04/imports/concurrent /usr/local/lib/ghc-5.04/imports/posix /usr/local/lib/ghc-5.04/imports/util /usr/local/lib/ghc-5.04/imports/data /usr/local/lib/ghc-5.04/imports/text /usr/local/lib/ghc-5.04/imports/net /usr/local/lib/ghc-5.04/imports/hssource Asked for by: Decl.lhs [Check settings of -I or -P flags?] This error comes from the lines: #if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 202 import PrelBase(maybe) -- workaround for GHC 2.02 #endif in src/greencard/Decl.lhs src/greencard/FillIn.lhs and src/greencard/Process.lhs Deleting these lines fixes the problems. Anyway, this seems to be a ghc bug, since ghc is looking for PrelBase even though it is not needed for ghc-5.04. Regards, Olli -- IST & IIS _ INF _ UniBwM ___________ http://ist.unibw-muenchen.de/People/obraun/ Tele-Consulting GmbH _______________ http://www.tele-consulting.com/ ___ obraun@ FreeBSD: The Power To Serve ________ http://www.freebsd.org/ ___________________

when building nhc98 with ghc-5.04 I got the following error:
Fail: Can't find module PrelBase in . Or in standard libraries at /usr/local/lib/ghc-5.04/imports/base ... Asked for by: Decl.lhs [Check settings of -I or -P flags?]
Anyway, this seems to be a ghc bug, since ghc is looking for PrelBase even though it is not needed for ghc-5.04
The error message is generated by hmake, not by GHC, so the fault is probably in the automatic configuration of the ghc settings in hmake. I would guess that perhaps hmake has not detected ghc's version number correctly? Look in lib/ix86-OpenBSD/hmakerc, particularly for the definition cppSymbols = ["__GLASGOW_HASKELL__=504"] and edit it if necessary. (Of course, we'd really like to know why it wasn't detected in the first place.) Regards, Malcolm

* Malcolm Wallace
when building nhc98 with ghc-5.04 I got the following error:
Fail: Can't find module PrelBase in . Or in standard libraries at /usr/local/lib/ghc-5.04/imports/base ... Asked for by: Decl.lhs [Check settings of -I or -P flags?]
Anyway, this seems to be a ghc bug, since ghc is looking for PrelBase even though it is not needed for ghc-5.04
The error message is generated by hmake, not by GHC, so the fault is probably in the automatic configuration of the ghc settings in hmake. I would guess that perhaps hmake has not detected ghc's version number correctly?
Look in lib/ix86-FreeBSD/hmakerc, particularly for the definition
cppSymbols = ["__GLASGOW_HASKELL__=504"]
and edit it if necessary. (Of course, we'd really like to know why it wasn't detected in the first place.)
lib/ix86-FreeBSD/hmakerc looks ok. Find it attached. Regards, Olli -- IST & IIS _ INF _ UniBwM _____ http://ist.unibw-muenchen.de/People/obraun/ Tele-Consulting GmbH _________ http://www.tele-consulting.com/ ___ obraun@ FreeBSD: The Power To Serve __ http://www.freebsd.org/ ___________________
participants (2)
-
Malcolm Wallace
-
Oliver Braun