I have adopted the following solution:

         $ 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
         $ PATH="/var/tmp/fptools/ghc/driver:$PATH" make -k install
         $ touch touch ghc/compiler/rename/ParseIface.o
         $ PATH="/var/tmp/fptools/ghc/driver:$PATH" make install

Romildo <[EMAIL PROTECTED]>
==========================================================================

On Wed, Jun 16, 1999 at 09:39:33AM -0300, Jose Romildo Malaquias wrote:
> 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
> [...]
> 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.

Reply via email to