> -----8<----------8<----------8<-----
> perl -pi -e "[EMAIL PROTECTED] [EMAIL PROTECTED] = \\\$(GHC)@" 
> mk/config.mk.in

Not sure why you need to do this.

> ./configure --with-ghc=$base/b1/ghc/compiler/stage1/ghc-inplace

Just using a plain GHC to build with should be fine.

> echo "GhcHcOpts = -O -H32m -fvia-C -keep-hc-files" >> mk/config.mk
> echo "GhcWithNativeCodeGen = NO" >> mk/config.mk
>          
> echo "GhcUnregisterised = YES" >> mk/config.mk
> echo "GhcLibHcOpts = -O -H32m -fvia-C -keep-hc-files" >> mk/config.mk
> echo "GhcLibWays =" >> mk/config.mk
> echo "SplitObjs = NO" >> mk/config.mk
> 
> # from the alpha:
> cp ../../mk-config.h mk/
> cp ../../ghc-includes-config.h ghc/includes/

I presume you mean something like

  cp ../../mk-config.h mk/config.h
  cp ../../ghc-includes-config.h ghc/includes/config.h

?

I'd do this in the b1 tree (no need for a separate b3 tree).

> mv glafp-utils orig-glafp-utils
> mv ghc/utils ghc/orig-utils
> ln -s ../b1/glafp-utils glafp-utils
> ln -s ../../b1/ghc/utils ghc/utils
> 
> cd ghc && make boot && cd .. # Might not be necessary with 
> the above symlinks

You need to build GHC too.  The GHC you build here will be a
cross-compiler: that is, it will generate .hc files for the Alpha.

> This is what makes me think I'd need a compiler which was built for a
> 64bit machine, but I can't imagine I'd get a working compiler 
> if I lied to it about sizes of various things.
> 
> Am I missing something obvious?
> 
> > > Files copied across to the alpha:
> > > b1: "*.hc", "*_hsc.c" package.conf
> > > b2: "*.hc", ".depend*"
> > 
> > package.conf and .depend* shouldn't be necessary, but I 
> haven't got as
> > far as checking the HC bootstrapping phase here yet.
> 
> I'm not sure I understand - ghc-pkg-inplace is compiled using the
> currently installed compiler (hence the --list-packages-local 
> problems)
> and the dependency files are generated by ghc -M before a compiler is
> built. Surely they must be needed?

I've now committed a bunch of fixes for these problems.  CVS update and
'make boot' should work in ghc/ and libraries/.  I'm working on actually
building the thing now.

Cheers,
        Simon
_______________________________________________
Cvs-fptools mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-fptools

Reply via email to