6.8.1 compilation error

Seth Kurtzberg seth at cql.com
Sun Nov 4 23:13:22 EST 2007


All,

 

While compiling the new release (6.8.1, with both the primary source and the
extra libraries) I experienced a gcc error, gcc of course called by ghc.
I'm compiling 6.8.1 with ghc 6.6.1.  The gcc version is 4.1.1.

 

I've seen similar behavior in the past where some sort of heap corruption
occurs within gcc and triggers an internal compiler error.  So this may not
be a true ghc error at all, but one can't completely rule it out.

 

This type of error, especially appearing at random, is suggestive of a
memory hardware problem.  To eliminate this possibility I ran memtest86 for
several hours on the machine.  No errors were detected.

 

I'll repeat the build again from a fresh directory to see if the problem is
repeatable.  Then I plan to run a build after upgrading gcc from 4.1.1 to
4.2.1.  I'll report the results.

 

The environment is Linux using kernel 2.6.21.

 

The compilation command and the resulting error:

 

/usr/local/bin/ghc -H16m -O  -istage1/utils  -istage1/basicTypes
-istage1/types  -istage1/hsSyn  -istage1/prelude  -istage1/rename
-istage1/typecheck  -istage1/deSugar  -istage1/coreSyn  -istage1/vectorise
-istage1/specialise  -istage1/simplCore  -istage1/stranal  -istage1/stgSyn
-istage1/simplStg  -istage1/codeGen  -istage1/main  -istage1/profiling
-istage1/parser  -istage1/cprAnalysis  -istage1/ndpFlatten  -istage1/iface
-istage1/cmm  -istage1/nativeGen -Wall -fno-warn-name-shadowing
-fno-warn-orphans -Istage1 -cpp -fglasgow-exts -fno-generics -Rghc-timing
-I. -Iparser -package unix -ignore-package lang -recomp -Rghc-timing  -H16M
'-#include "cutils.h"' -DUSING_COMPAT -i../compat -ignore-package Cabal
-c rename/RnSource.lhs -o stage1/rename/RnSource.o  -ohi
stage1/rename/RnSource.hi

/tmp/ghc1316_0/ghc1316_0.hc: In function 'raVb_entry':

 

/tmp/ghc1316_0/ghc1316_0.hc:1983:0:

     internal compiler error: in referenced_var_lookup, at tree-dfa.c:578

Please submit a full bug report,

with preprocessed source if appropriate.

See <URL:http://gcc.gnu.org/bugs.html> for instructions.

<<ghc: 586234044 bytes, 718 GCs, 10149393/21203304 avg/max bytes residency
(9 samples), 55M in use, 0.02 INIT (0.00 elapsed), 6.94 MUT (27.32 elapsed),
3.53 GC (3.67 elapsed) :ghc>>

make[1]: *** [stage1/rename/RnSource.o] Error 1

make: *** [stage1] Error 1

 

 

 

Seth Kurtzberg

Software Engineer

Specializing in Security, Reliability, and the Hardware/Software Interface

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20071104/93b18c00/attachment.htm


More information about the Glasgow-haskell-users mailing list