logo       

[ ghc-Bugs-435147 ] Error in build system for HC booting: msg#00069

lang.haskell.glasgow.bugs

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

Bugs item #435147, was opened at 2001-06-21 16:19
Message generated for change (Comment added) made by simonmar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=435147&group_id=8032

Category: Build System
Group: 5.00
>Status: Closed
>Resolution: Fixed
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.

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

>Comment By: Simon Marlow (simonmar)
Date: 2003-07-25 12:30

Message:
Logged In: YES
user_id=48280

Bootstrapping from HC files has been largely tested and fixed
in 6.0.1. I believe this bug is fixed.

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

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise