
Hello Haskell people, I have been trying to build hmake 3.12 using ghc-6.6 on a Fedora Core Linux running on a dual 64-bit Opteron machine. However, I had the following error related to the readline library: ---- /home/t-alexer/packages/hmake-3.12/script/hmake -hc=ghc HInteractive -d/home/t-alexer/packages/hmake-3.12/targets/x86_64-Linux/obj/interpreter \ -i../hmake -package util -package base -DUSE_READLINE=1 -lreadline -lncurses Warning: package(s) util not available (according to ghc-pkg) MkProg: Can't find module Readline in user directories . ../hmake Or in installed libraries/packages at /home/simonmar/fp/lib/x86_64-unknown-linux/ghc-6.6/imports /home/simonmar/fp/lib/x86_64-unknown-linux/ghc-6.6/imports Asked for by: SimpleLineEditor.hs Fix using the -I, -P, or -package flags. Stop - hmake dependency error. ---- I googled for this error and I saw the following thread in which Malcolm suggested having a fix. http://www.nabble.com/hmake-and-GHC-6.6-t2531880.html I tried to locate hmake's repository but to no avail. There is no link to it from www.haskell.org/hmake and the hmake in the nhc repository is the same as the hmake I downloaded. I will appreciate any help you can offer. Cheers, Alexey P.S. A related question, has any of you tried to build ghc using hat? I am trying to do this to study ghc's internals

"Alexey Rodriguez"
I have been trying to build hmake 3.12 using ghc-6.6 on a Fedora Core Linux running on a dual 64-bit Opteron machine. However, I had the following error related to the readline library: ... I googled for this error and I saw the following thread in which Malcolm suggested having a fix. http://www.nabble.com/hmake-and-GHC-6.6-t2531880.html I tried to locate hmake's repository but to no avail. There is no link to it from www.haskell.org/hmake and the hmake in the nhc repository is the same as the hmake I downloaded.
From there, you can do a 'make hmakeDist' which will package up a tarball of just the parts needed to build hmake. I will also make a
hmake does indeed live in the nhc98 darcs repository at http://darcs.haskell.org/nhc98 proper bugfix release soon.
P.S. A related question, has any of you tried to build ghc using hat? I am trying to do this to study ghc's internals
I'm pretty sure you will not get ghc to build with Hat. The source code of ghc uses many glasgow extensions, not all of which are (yet) handled by Hat's parser. The unsupported ones include at least unboxed types, and pattern guards. (MPTC, fundeps, existentials etc are OK however). Regards, Malcolm

On 11/1/06, Malcolm Wallace
"Alexey Rodriguez"
wrote: I have been trying to build hmake 3.12 using ghc-6.6 on a Fedora Core Linux running on a dual 64-bit Opteron machine. However, I had the following error related to the readline library: ... I googled for this error and I saw the following thread in which Malcolm suggested having a fix. http://www.nabble.com/hmake-and-GHC-6.6-t2531880.html I tried to locate hmake's repository but to no avail. There is no link to it from www.haskell.org/hmake and the hmake in the nhc repository is the same as the hmake I downloaded.
hmake does indeed live in the nhc98 darcs repository at http://darcs.haskell.org/nhc98 From there, you can do a 'make hmakeDist' which will package up a tarball of just the parts needed to build hmake. I will also make a proper bugfix release soon.
Finally I got it to build with a two line change.
P.S. A related question, has any of you tried to build ghc using hat?
I am trying to do this to study ghc's internals
I'm pretty sure you will not get ghc to build with Hat. The source code of ghc uses many glasgow extensions, not all of which are (yet) handled by Hat's parser. The unsupported ones include at least unboxed types, and pattern guards. (MPTC, fundeps, existentials etc are OK however).
Oh, that's such a pity. I'll have to read the sources in the usual style. Thanks! Alexey
participants (2)
-
Alexey Rodriguez
-
Malcolm Wallace