Unable to install the Literate tools

1996-10-18 Thread Jose Romildo Malaquias

Dear all,

When trying to install the Glasgow Haskell compilation system
under Linux I was unable to build the literate tools.

Has anyone done it successfull?

The tried version is GHC-2.01.

The compilation have been aborted with error messages.

Thanks.

Prof. Jose Romildo Malaquias. UFOP. Brazil
[EMAIL PROTECTED]




RE: Help: Segfault | Where is the *.hc for 4.02 ?

1999-06-11 Thread Jose Romildo Malaquias

I am also having segmentation faults with ghc on a RedHat Linux 6.0
(glibc-2.1.1) machine on every Haskell program I try. I have tried
both the binary distsribution (version 4.02) prepared by the GHC
team and the binary RPMS provided by Sven Panne at
ftp://ftp.informatik.uni-muenchen.de/pub/local/pms/ghc-4.03-38.i386.rpm

My next attempt would be recompile myself from sources so the binaries
could use the newest libraries from my system. Where is the .hc files
for 4.03 or 4.02? The most recent .hc files I could locate were for
4.00. So I am going to try compiling 4.00 and them 4.03.

Prof. Jose Romildo Malaquias <[EMAIL PROTECTED]>
---
> > I've tried `ghc-4.02-i386-unknown-linux.tar.gz' in-place, but even
> > "hello world" will dump core.
> > 
> > Some info about my box:
> > 
> > glibc-2.1.1
> 
> I think the conclusion is that recent glibcs don't work with ghc.
> Unfortunately we don't have a box here to test on, so if anyone can help
> narrow down the problem and/or mail those responsible we'd be grateful.
> 
> > BTW, I've tried to give ghc `-optc-g', but all ghc-4.02 versions which
> > I have, include those being compiled by myself, cause `ld' to dump
> > core, even with glibc-2.0.7 and gcc 2.7.2.3 :-(
> 
> We don't support/reccommend compiling with -optc-g :-)  The reason is that
> ghc  post-processes the assembly output from gcc, and the script simply
> doesn't understand the debugging info inserted by -g.  Nevertheless, ld
> shouldn't dump core.
> 
> As per the well-known joke, "Don't do that then!"
> 
> Simon



Compiling GHC 4.02 using the *.hc files on RedHat 6.0 Linux

1999-06-14 Thread Jose Romildo Malaquias

In the processing of compiling GHC 4.02 using the *.hc files
recently made available, in a RedHat 6.0 (glibc 2.1, egcs 1.1.2),
I have executed the commands:

$ 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 boot
$ make all

but the latest command failed with the following messages:
-
[...]
../../../ghc/driver/ghc -i../misc -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -O 
-split-objs -odir PosixTTY  '-#include"cbits/libposix.h"' -monly-2-regs  -c 
PosixTTY.lhs -o PosixTTY.o -osuf o
<>
ghc: module version changed to 1; reason: no old .hi file
Epilogue junk?: 
popl %ecx
.Lfe337:
.sizec91T_ret,.Lfe337-c91T_ret
.section.rodata
.align 4
.typec91S_info,@object
.sizec91S_info,12

make[1]: *** [PosixTTY.o] Error 255
make: *** [all] Error 1
--

Any help?

Prof. José Romildo Malaquias <[EMAIL PROTECTED]>



Re: Compiling GHC 4.02 using the *.hc files on RedHat 6.0 Linux

1999-06-16 Thread Jose Romildo Malaquias

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]>



Re: Compiling GHC 4.02 using the *.hc files on RedHat 6.0 Linux

1999-06-17 Thread Jose Romildo Malaquias

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.