Hello all,
I am unable to compile ghc-8.2.2 with ghc-8.4.3 (which is otherwise
working fine, e.g. to compile my own projects and xmonad). Could
somebody please help? The error I get is
ghc-cabal: Encountered missing dependencies:
base >=4.4.1 && <4.11
libraries/hpc/ghc.mk:3: libraries/hpc/dist-bo
In general we don't support bootstrapping older GHCI with newer GHC. However,
you may be able to hack something together by manually tweaking bounds.
Cheers,
- Ben
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.___
Glasgow-has
Hi Ben,
What is the recommended way to build old versions of GHC? The
haskell.org binaries for, e.g. 7.8.3, do not work on my machine. If I
attempt to recompile ghc 7.8.3 with the haskell.org binary, I get
linkage errors.
Actually I'd love to be able to bootstrap a build without any ghc
installed
(I haven't actually done this, but:) If you want to be able to install GHC
without any GHC binary, I think you'd have to start with an ancient version of
GHC which wasn't itself written in Haskell, and build successive versions
(skipping as many as possible) until you had a GHC which supported a
Hi Tom,
I'm not sure it is necessary to go back that far. Vitaly pointed out
that any version of GHC could produce the "minimal C" output, which
can be ported to another platform that doesn't have a GHC, as the
bootstrap. I'm not entirely sure how to generate that output, mind
you.
On 22 August 2
Indeed, GHC can indeed produce (very slow) C. This is known as unregisterised
mode [1]. That being said, I'm not sure that helps you with the task at hand.
Afterall, you still would need a haskell compiler to build your unregisterised
compiler.
[1] https://ghc.haskell.org/trac/ghc/wiki/Building