
Hi list I try to compile ghc 6.0.1 on RH 9. In my compile-it-my-self-fanatism I need to do a two-stage-bootstrap. As explained in the porting and bootstrapping documentation I used the cross-port script distrbuted with the source. But in the first stage ghc issues an error message as follows: --------- ghc-6.0.1: invalid option combination Usage: For basic information, try the `--help' option. --------- The last call make did, before the error was issued: --------- ../../ghc/compiler/ghc-inplace -H16m -O -fglasgow-exts -cpp -Iinclude -#include HsBase.h -funbox-strict-fields -package-name base -keep-hc-files-too -optc-DNO_REGS -optc-DUSE_MINIINTERPRETER -fno-asm-mangling -funregisterised -fvia-C -split-objs -c GHC/Base.lhs -o GHC/Base.o -ohi GHC/Base.hi --------- I'm not familiar with ghc, more precisely, I'm completely new to Haskell. So it would be nice if someone could give me a hint. Thanks in advance... -- Robert...

maril_manson:
I try to compile ghc 6.0.1 on RH 9. In my compile-it-my-self-fanatism I need to do a two-stage-bootstrap. As explained in the porting and bootstrapping documentation I used the cross-port script distrbuted with the source. But in the first stage ghc issues an error message as follows: Robert...
Many problems with bootstrapping GHC have been ironed out since the 6.0.1 release, and a more reliable method is now available. In fact, I wouldn't recommend the use of the cross-port script at the moment: it is obsolete. The current building-from-cvs, and bootstrapping information is in CVS, but I've put the current building guide here: http://www.cse.unsw.edu.au/~dons/building/ Note, to do this you will need to check out the stable 6.2 branch using anoncvs. Help for how to do that is on the GHC page. This could be a lot of work. Getting hold of a binary for your platform, to then build the source with would be *much* easier. And no less risky: in order to bootstrap GHC, you still need to use a GHC binary on the host platform to generate .hc files from. The only difference is whether you put more trust in the compiler on your machine, or on the machine you're using to generate .hc files. -- Don
participants (2)
-
dons@cse.unsw.edu.au
-
Ulf Doz