> I've just tried to build GHC 4.06 from the ix86 .hc file distribution.
> It all went swimmingly until near the end when I got the
> following error:
>
> $ autoconf
> $ configure --enable-hc-boot
> $ make boot
> $ make all
> [...]
> ./driver/ghc-inplace -o hsc -cpp -fglasgow-exts -Rghc-timing
> -I. -IcodeGen
> -InativeGen -Iparser
> -iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSuga
r:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn>
:main:profiling:parser:usageSP:cprAnalysis:nativeGen -recomp
> -no-link-chk utils/Argv.o utils/Bag.o utils/BitSet.o
> ... [link line trimmed] ...
> /usr/i386-slackware-linux/bin/ld: cannot open -lHSlang: No
> such file or directory
You need to build hslibs/lang from .hc files in order to link the compiler.
In order to build hslibs/lang from hc files, you'll need a couple of patches
which were made to the build system post-4.06 (actually they're in the
ghc-4-06 branch on the cvs repository, if you're using that).
The whole booting-from-hc-files story was a bit broken in 4.06, but with a
little handholding you should be able to make it go through.
Cheers,
Simon