Re: Problems building nhc98 with ghc-5.04
Oliver Braun <[email protected]> Tue, 23 Jul 2002 12:01:48 +0200
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Organization | University of the Federal Armed Forces Munich, Germany |
| Message-ID | <[email protected]> |
* Malcolm Wallace <[email protected]> [2002-07-23 10:44]: > > 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/ ___________________
hmakerc
(text/plain, 3 KB)
HmakeConfig
{ defaultCompiler = "ghc"
, knownCompilers =
[ CompilerConfig
{ compilerStyle = nhc98
, compilerPath = "/usr/freebsdcvs/ports/lang/nhc98/work/nhc98-1.14/script/nhc98"
, compilerVersion = "v1.14"
, includePaths = ["/usr/freebsdcvs/ports/lang/nhc98/work/nhc98-1.14/include"]
, cppSymbols = ["__NHC__"]
, extraCompilerFlags = []
, isHaskell98 = True
}
, CompilerConfig
{ compilerStyle = nhc98
, compilerPath = "/usr/local/bin/nhc98"
, compilerVersion = "v1.14"
, includePaths = ["/usr/local/include/nhc98"]
, cppSymbols = ["__NHC__"]
, extraCompilerFlags = []
, isHaskell98 = True
}
, CompilerConfig
{ compilerStyle = nhc98
, compilerPath = "nhc98"
, compilerVersion = "v1.14"
, includePaths = ["/usr/local/include/nhc98"]
, cppSymbols = ["__NHC__"]
, extraCompilerFlags = []
, isHaskell98 = True
}
, CompilerConfig
{ compilerStyle = ghc
, compilerPath = "/usr/local/bin/ghc"
, compilerVersion = "5.04"
, includePaths = ["/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"
]
, cppSymbols = ["__GLASGOW_HASKELL__=504"]
, extraCompilerFlags = []
, isHaskell98 = True
}
, CompilerConfig
{ compilerStyle = ghc
, compilerPath = "ghc"
, compilerVersion = "5.04"
, includePaths = ["/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"
]
, cppSymbols = ["__GLASGOW_HASKELL__=504"]
, extraCompilerFlags = []
, isHaskell98 = True
}
]
}