Problem compiling GHC 4.08
I'm trying to build the latest version of GHC, from CVS, and everything goes fine until it gets to the file Parser.hs. At this point, it gets stuck on this file for a couple of hours, then quits with either an "out of memory" message or the message "Haskell compiler received signal 9". I've tried increasing the memory settings for Parser.hs in the Makefile (the corresponding line as I currently have it is: parser/Parser_HC_OPTS += -Onot -H256m -optCrts-M256m -K2m -fno-warn- incomplete-patterns ), but it made no difference. I'm on a Linux workstation with 64 MB of physical RAM and 200 MB of swap space. How much memory is actually necessary to compile this file? Thanks, kirsten -- Kirsten Chevalier * [EMAIL PROTECTED] * Often in error, never in doubt "What would happen if one woman told the truth about her life?"--Rebecca Riots http://erythrea.wellesley.edu/
RE: Compiling ghc 4.08
> 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
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 <> 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