I am compiling GHC 4.02 from sources using the *.hc files suplied
at the GHC home page. I am doing that on a Linux Red Hat 6.0 machine
(glibc 2.1, egcs 1.1.2). The steps are:

        $ cd /var/tmp
        $ tar -zxf /urano/downloads/haskell/ghc/ghc-4.02-src.tar.gz
        $ cd fptools
        $ tar -zxf /urano/downloads/haskell/ghc/ghc-3.02-hc.tar.gz
        $ ./configure --prefix=/var/tmp/ghc --enable-hc-boot                           
                                 
        $ make boot
        $ make all
        $ ./configure --prefix=/var/tmp/ghc
        $ cd ghc/lib
        $ make clean
        $ make boot
        $ make all
        $ PATHI="/var/tmp/fptools/ghc/driver:$PATH" make install

Now at the "make install" phase I got the following error:

------------------------------------------------------------------------
==fptools== make install --no-print-directory -r;
 in /usr/src/redhat/BUILD/fptools/ghc/compiler
------------------------------------------------------------------------
/usr/bin/happy +RTS -K2m -H10m -RTS    -g rename/ParseIface.y
unused terminals: 16
ghc -dcore-lint -O -H10m -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen 
-Iparser 
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling:parser:nativeGen
 -recomp   -Onot -H45m -fno-warn-incomplete-patterns  -c rename/ParseIface.hs -o 
rename/ParseIface.o -osuf o
ghc: ignoring heap-size-setting option (-H10m)...not the largest seen

ParseIface.hs:8: Could not find valid interface file `HsSyn'

ParseIface.hs:9: Could not find valid interface file `RdrHsSyn'

ParseIface.hs:10: Could not find valid interface file `HsDecls'

ParseIface.hs:11: Could not find valid interface file `HsTypes'

ParseIface.hs:12: Could not find valid interface file `HsCore'

ParseIface.hs:13: Could not find valid interface file `Const'

ParseIface.hs:14: Could not find valid interface file `BasicTypes'

ParseIface.hs:17: Could not find valid interface file `CostCentre'

ParseIface.hs:18: Could not find valid interface file `HsPragmas'

ParseIface.hs:19: Could not find valid interface file `Type'

ParseIface.hs:20: Could not find valid interface file `IdInfo'

ParseIface.hs:21: Could not find valid interface file `Lex'

ParseIface.hs:23: Could not find valid interface file `RnMonad'

ParseIface.hs:26: Could not find valid interface file `Bag'

ParseIface.hs:27: Could not find valid interface file `FiniteMap'

ParseIface.hs:28: Could not find valid interface file `RdrName'

ParseIface.hs:29: Could not find valid interface file `Name'

ParseIface.hs:30: Could not find valid interface file `OccName'

ParseIface.hs:35: Could not find valid interface file `PrelMods'

ParseIface.hs:36: Could not find valid interface file `PrelInfo'

ParseIface.hs:37: Could not find valid interface file `SrcLoc'

ParseIface.hs:38: Could not find valid interface file `Maybes'

ParseIface.hs:39: Could not find valid interface file `Outputable'

ParseIface.hs:148: Could not find valid interface file `FastString'



Compilation had errors

make[2]: *** [rename/ParseIface.o] Error 1
make[1]: *** [install] Error 1
make: *** [install] Error 1
Bad exit status from /var/tmp/rpm-tmp.69495 (%install)
==================================================================

If I update the time stamp of ParseIface.o and continue the
process (another "make install") it finishes successfuly.

But I am building an rpm for ghc and I need to *eliminate* the
error completely.

Any help?

Jos� Romildo Malaquias <[EMAIL PROTECTED]>

Reply via email to