<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>All,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>The environment is Linux using kernel 2.6.21.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>The compilation command and the resulting error:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>/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<o:p></o:p></p>
<p class=MsoNormal>/tmp/ghc1316_0/ghc1316_0.hc: In function
‘raVb_entry’:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>/tmp/ghc1316_0/ghc1316_0.hc:1983:0:<o:p></o:p></p>
<p class=MsoNormal> internal compiler error: in
referenced_var_lookup, at tree-dfa.c:578<o:p></o:p></p>
<p class=MsoNormal>Please submit a full bug report,<o:p></o:p></p>
<p class=MsoNormal>with preprocessed source if appropriate.<o:p></o:p></p>
<p class=MsoNormal>See <URL:http://gcc.gnu.org/bugs.html> for
instructions.<o:p></o:p></p>
<p class=MsoNormal><<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>><o:p></o:p></p>
<p class=MsoNormal>make[1]: *** [stage1/rename/RnSource.o] Error 1<o:p></o:p></p>
<p class=MsoNormal>make: *** [stage1] Error 1<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Seth Kurtzberg<o:p></o:p></p>
<p class=MsoNormal>Software Engineer<o:p></o:p></p>
<p class=MsoNormal>Specializing in Security, Reliability, and the
Hardware/Software Interface<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>