Building GHC 5.02 on Solaris x86
Simon Marlow
simonmar at microsoft.com
Mon Oct 29 06:08:01 EST 2001
> Doh, I have several times got further than I thought but
> didn't realise
> it as I didn't notice it had made a ghc-5.02 binary!
>
> Here's my latest problem, anyway - I don't suppose it could
> be caused by
> the hc files being generated under a different OS with different magic
> numbers could it?
Ah yes, I forgot about that. Ken Shan came across the same problem when
porting to Alpha.
To generate a Solaris-friendly set of hc files for the libraries you
need to do this: for each .hsc file, take the C output from hsc2hs on a
Linux box (use --no-compile to get the _hsc_make.c file), and
compile/run it on your Solaris box to get the .hs file. Take the .hs
file back to Linux to generate the .hc file.
You will probably have to generate a full set of .hc files, including
the compiler. That means doing a 2-stage build on Linux using the .hs
files generated on Solaris as above.
Cheers,
Simon
More information about the Glasgow-haskell-bugs
mailing list