[ ghc-Bugs-435147 ] Error in build system for HC booting

noreply@sourceforge.net noreply@sourceforge.net
Thu, 21 Jun 2001 09:19:46 -0700


Bugs item #435147, was updated on 2001-06-21 09:19
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=435147&group_id=8032

Category: Build System
Group: 5.00
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Conway Wirt (mwirt)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error in build system for HC booting

Initial Comment:
The distrib/hc-build script for booting from .hc files
contains two errors.  First, the configuration options
supplied to the script are not passed to configure in
the second go-around.

More importantly, the location of the ghc compiler
built in the first phase is not passed to configure in
the second phase.  If there is a haskell compiler on
the system, configure will find it and use it for the
second stage of the build (thus obviating the purpose
of bootstrapping in the first place).  If there isn't a
haskell compiler, $(HC) (and thus MKDEPENDHS, etc.)
isn't defined and the build fails.

I've modified the script to use the ghc built in-place
in the first phase as follows:

COMP=`pwd`/ghc/compiler/ghc-inplace
...
echo "*** Building libraries..."
./configure --with-ghc=$COMP $configopts

but I get errors when using the first-phase compiler:

------------------------------------------------------
==fptools== gmake boot -wr;
 in /home/mark/ghc-5.00.2/ghc/utils/ghc-pkg
------------------------------------------------------
/home/mark/ghc-5.00.2/ghc/compiler/ghc-inplace -M    
  -optdep-f -optdep.depend  -osuf o    -cpp -DPKG_TOOL  
  -DWANT_PRETTY -package lang -package util -package 
  text Main.hs Package.hs
Main.hs: can't find one of the following: `IO.hi' 
  `IO.hs' `IO.lhs'
gmake[1]: *** [depend] Error 1
gmake: *** [boot] Error 1

I'm still playing with the ghc-inplace invocation to
make things work, but I'm as of yet unsucessful.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=435147&group_id=8032