RE: Unregisterised build

Hi, [...]
BTW the cross-port script is a little old, so you might find other problems. As far as I know, unregisterised compilation *does* work though.
I had to do a number of manual compiles, out-of-order makes etc. to get stuff working; I'm not completely convinced that what I'm trying to do is right ATM... [...]
Your best bet for the .hsc files is to generate the .hs on your Alpha/Linux box by taking the intermediate _hsc.c files over and compiling/running them on the target machine to get the .hs files. Then take the .hs back to the bootstrapping machine and carry on. These are the libraries in stage 1, BTW.
Did that. [...]
The cross-port script also tries to do too much. You won't be able to actually run the b2 compiler on your bootstrap box, because it will be built against the Alpha/Linux-specific libraries, so just stop after you've got a set of .hc files for ghc/compiler in stage 2. Take the library .hc files from stage 1, and the compiler .hc files from stage 2, to your Alpha/Linux box.
That's where I am now. Running the distrib/hc-build script dies pretty
early on in the ghc subdir:
...
copying ./mpn/generic/sb_divrem_mn.c to mpn/sb_divrem_mn.c
copying ./mpn/generic/jacbase.c to mpn/jacbase.c
copying ./mpn/alpha/gmp-mparam.h to gmp-mparam.h
../utils/ghc-pkg/ghc-pkg-inplace --update-package At some point we'll try to make all this easier, but I'm afraid that's
the way it is at the moment :-( NP, it's quite interesting (in a masochistic kind of way ;)
Thanks for your help so far,
llap,
Christoph
participants (1)
-
Christoph Reichenbach