Re: Failed to compile PosixProcPrim on Linux

1998-07-28 Thread Sigbjorn Finne



Shin-Cheng Mu writes:
 Hello, my Hero Haskell Hackers, :)
 
 Compiling GHC 3.02 for i386 Linux, the make process stops 
 at the point when compiling ghc/lib/posix/PosixProcPrim.lhs.
 The error message generated is attached below.
 
 I tried the patch suggested by Carl R. Witty (I'm not sure
 whether it was to my problem, through), it doesn't work either.
 Do you have any idea what went wrong?
 

Hi,

try editing ghc/lib/posix/Makefile, changing the line

PosixProcPrim_HC_OPTS ='-\#include"cbits/libposix.h"'

to

PosixProcPrim_HC_OPTS ='-\#include"cbits/libposix.h"' -monly-3-regs

(and if that doesn't work, try changing it to -monly-2-regs)

What Linux distribution / version of gcc are you using?

hth,
--Sigbjorn



Error compiling CVS-Sources on a linux box ...

1998-07-28 Thread Stefan Westmeier

Hi,

the second iteration compiling the newest CVS-sources gives the
following error. Second iterations is: the first iteration was done
was a previous version of ghc-3.03 and the second iteration with the
ghc compiled from the newest CVS-sources.

  
  ==fptools== gmake all --no-print-directory -r;
   in /disk1/tmp/src/current/fptools/ghc/compiler
  
  /usr/local/pub-bkb/ghc/current/bin/ghc -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 -O -H25M  -H12m  -c rename/RnNames.lhs -o rename/RnNames.o -osuf o
  ghc: ignoring heap-size-setting option (-H12m)...not the largest seen
  ghc: ignoring heap-size-setting option (-H12m)...not the largest seen
   
  RnNames.lhs:7: Warning:
  Failed to find (optional) interface decl for
  `seWa'
  desired at
  RnEnv.hi:71
   
  RnNames.lhs:7: Warning:
  Failed to find (optional) interface decl for
  `seLo'
  desired at
  RnEnv.hi:71
  
  
  NOTE: Simplifier still going after 4 iterations; bailing out.
  
  panic! (the `impossible' happened):
  tcLookupTyVar: RnEnv.seLo{-r3xV-}
  
  Please report it as a compiler bug to [EMAIL PROTECTED]
  
  gmake[2]: *** [rename/RnNames.o] Error 1
  gmake[1]: *** [all] Error 1
  gmake: *** [all] Error 1
  stefan@eiger:/disk1/tmp/src/current/fptools  
  

Cioa, Stefan.
--
Stefan Westmeier  [EMAIL PROTECTED] 
Kulenkampffallee 67   vox humana: +(49) 421 2235820
D-28213 Bremen   fax machina: +(49) 421 2235821
Germany cellular: +(49) 171 2672149 

Stefan Westmeier[EMAIL PROTECTED]
BISS vox humana: +(49) 421 218 4228
FB3 Uni Bremen fax machina: +(49) 421  218 3054



Re: Error compiling CVS-Sources on a linux box ...

1998-07-28 Thread Sigbjorn Finne


Thanks, we're aware of the problem. Compile RnEnv.lhs with -Onot for
now. 

--Sigbjorn

Stefan Westmeier writes:
 Hi,
 
 the second iteration compiling the newest CVS-sources gives the
 following error. Second iterations is: the first iteration was done
 was a previous version of ghc-3.03 and the second iteration with the
 ghc compiled from the newest CVS-sources.
 
   
   ==fptools== gmake all --no-print-directory -r;
in /disk1/tmp/src/current/fptools/ghc/compiler
   
   /usr/local/pub-bkb/ghc/current/bin/ghc -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 -O -H25M  -H12m  -c rename/RnNames.lhs -o rename/RnNames.o -osuf o
   ghc: ignoring heap-size-setting option (-H12m)...not the largest seen
   ghc: ignoring heap-size-setting option (-H12m)...not the largest seen

   RnNames.lhs:7: Warning:
   Failed to find (optional) interface decl for
   `seWa'
   desired at
   RnEnv.hi:71

   RnNames.lhs:7: Warning:
   Failed to find (optional) interface decl for
   `seLo'
   desired at
   RnEnv.hi:71
   
   
   NOTE: Simplifier still going after 4 iterations; bailing out.
   
   panic! (the `impossible' happened):
   tcLookupTyVar: RnEnv.seLo{-r3xV-}
   
   Please report it as a compiler bug to [EMAIL PROTECTED]
   
   gmake[2]: *** [rename/RnNames.o] Error 1
   gmake[1]: *** [all] Error 1
   gmake: *** [all] Error 1
   stefan@eiger:/disk1/tmp/src/current/fptools  
   



Re: Failed to compile PosixProcPrim on Linux

1998-07-28 Thread Felix Schroeter

Hello!

On Tue, Jul 28, 1998 at 07:51:25PM +0800, Shin-Cheng Mu wrote:
 Hello, my Hero Haskell Hackers, :)

 Compiling GHC 3.02 for i386 Linux, the make process stops 
 at the point when compiling ghc/lib/posix/PosixProcPrim.lhs.
 The error message generated is attached below.

 I tried the patch suggested by Carl R. Witty (I'm not sure
 whether it was to my problem, through), it doesn't work either.
 Do you have any idea what went wrong?

Yes, I stumbled over the same thing a few days before, but was too
lazy to report it.

That module must be compiled using -monly-2-regs with gcc-2.7.*.
With 2.8.1 (on OpenBSD, by the way, the bootstrap *was* some work,
but succeeded, with help from OpenBSD's Linux binary emulation and
ghc2-Linux-binaries) that option is *not* needed, though!

Regards, Felix.

PS: Just stumbled over another buglet:
in ghc/lib/std/PrelIOBase.lhs, around line 176:
isEOFError (IOError _ EOF _) = True
isEOFError _ = True
In the second line, there should be False instead of True...

  --- error message generated by ghc --
 
 ../../../ghc/driver/ghc -i../misc -recomp -cpp -fglasgow-exts -fvia-C
 -Rghc-timing -O -split-objs -odir PosixProcPrim  '-#include"cbits/libposix.h"'  -c
 PosixProcPrim.lhs -o PosixProcPrim.o -osuf o
 
 NOTE: Simplifier still going after 4 iterations; bailing out.
 ghc: 384309900 bytes, 312 GCs, 2426211/2767904 avg/max bytes residency (20
 samples), 0.02 INIT (0.01 elapsed), 17.97 MUT (18.26 elapsed), 10.59 GC (10.66
 elapsed) :ghc
 ghc: module version changed to 1; reason: no old .hi file
 /tmp/ghc2094.hc:2311: fixed or forbidden register was spilled.
 This may be due to a compiler bug or to impossible asm
 statements or clauses.
 gmake[3]: *** [PosixProcPrim.o] Error 1
 gmake[2]: *** [all] Error 1
 gmake[1]: *** [all] Error 1
 gmake: *** [all] Error 1