Building GHC 5.02.3 from bootstrap.

Simon Marlow simonmar@microsoft.com
Fri, 3 May 2002 10:15:49 +0100


> In spite of all the warnings, I tried to build ghc 5.02.3=20
> from scratch.
> The first step,=20
> > ./distrib/hc-build=20
> returned the error
> >make[1]: *** No rule to make target `Addr.o', needed by=20
> `libHSlang.a'.  Stop.
> >make: *** [all] Error 1

hmm, do you have Addr.hc in hslibs/lang?

> I'm actually building on a standard Linux x86 platform. The=20
> resaon I want to=20
> build from scratch is to incorporate GHC into the portage=20
> source tree for=20
> the Gentoo distribution, http://www.gentoo.org

The way I'm doing this for the FreeBSD port now is to have the build
process download a pre-built cut-down binary distribution of GHC purely
for bootstrapping.  We used to bootstrap from .hc files in the ports
tree but after a while it was just too fragile and hard to get right.

Cheers,
	Simon