RE: Compiling ghc 4.08

2000-07-11 Thread Simon Marlow


 I get the following compile error:
 
 (My configuration is Linux kernel 2.4.0-test1, gcc 2.91.66 and
 ghc 4.06 installed)

I suggest upgrading your gcc; we use 2.95.2 here without any problems.
Alternatively, a workaround for the short term is this patch to
fptools/ghc/driver/ghc-asm.lprl:

*** ghc-asm.lprl 2000/06/29 13:18:09 1.44.2.1
--- ghc-asm.lprl 2000/07/11 08:41:38
***
*** 711,716 
--- 711,717 
$e =~ s/^\tret\n//;
$e =~ s/^\tpopl \%edi\n//;
$e =~ s/^\tpopl \%esi\n//;
+   $e =~ s/^\tpopl \%edx\n//;
$e =~ s/^\tpopl \%ecx\n//;
$e =~ s/^\taddl \$\d+,\%esp\n//;
$e =~ s/^\tsubl \$-\d+,\%esp\n//;

Cheers,
Simon




Compiling ghc 4.08

2000-07-07 Thread GĂ©rard Milmeister

I get the following compile error:

(My configuration is Linux kernel 2.4.0-test1, gcc 2.91.66 and
ghc 4.06 installed)

PWD = /home/gemi/fptools/ghc/lib/std

rm -f PrelBase.o ; if [ ! -d PrelBase ]; then mkdir PrelBase; else 
/usr/bin/find PrelBase -name '*.o' -print | xargs rm -f __rm_food ; fi ;
../../driver/ghc-inplace -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -O 
-package-name std -static -split-objs  -H12m  -c PrelBase.lhs -o PrelBase.o 
-osuf o
ghc: 114644880 bytes, 17 GCs, 1047207/1890108 avg/max bytes residency (4 
samples), 13M in use, 0.01 INIT (0.00 elapsed), 2.68 MUT (3.04 elapsed), 0.75 
GC (0.84 elapsed) :ghc
Epilogue junk?: 
popl %edx
.Lfe364:
.sizec3Ix_ret,.Lfe364-c3Ix_ret
.globl PrelBase_zdwgcdInt_info
.section.rodata
.align 4
.typePrelBase_zdwgcdInt_info,@object
.sizePrelBase_zdwgcdInt_info,12

make[3]: *** [PrelBase.o] Error 255
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1



 PGP signature