<div dir="ltr">Carter is building with the new XCode, which only has Clang on OS X. This error is a result of clang preprocessing Parser.y.pp, since it uses a &#39;double pass&#39; CPP trick to pass -fcmm-sink to the stage2 compiler. I could never fully come to understand the behavior of why this was an error, and it seemed to be affected by whitespace in the resultant file from Happy. Fiddling with whitespace made it work somehow, but I couldn&#39;t find out what behavior (or changes in Clang) allowed this.<div>
<br></div><div>Looking back on it, the correct fix I think is to only pass -fcmm-sink if Parser.hs is being built with the stage2 compiler, in the build system. This is a lot less fragile, I feel. (Relatedly, we also need to make sure that -fcmm-sink is passed to stage1, if boostrapping ghc &gt;= 7.7, so 7.8 can build itself once released.)<br>
<div><br></div><div>There&#39;s a host of OS X things that need attention at the moment unfortunately, and my personal machine is a bit broken right now. But I have a new 10.7 build machine I can use, so I&#39;ll try to get on it ASAP.</div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 22, 2013 at 2:28 AM, Simon Marlow <span dir="ltr">&lt;<a href="mailto:marlowsd@gmail.com" target="_blank">marlowsd@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 19/08/13 21:16, Carter Schonwald wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hey all,<br>
i&#39;m trying to build head to test out some stuff, and i&#39;m hitting the<br>
following error message (<a href="http://ghc.haskell.org/trac/ghc/ticket/8143" target="_blank">http://ghc.haskell.org/trac/<u></u>ghc/ticket/8143</a> )<br>
<br>
compiler/stage1/build/Parser.<u></u>hs:1:1:<br>
     File name does not match module name:<br>
     Saw: `Main&#39;<br>
     Expected: `Parser&#39;<br>
make[1]: *** [compiler/stage1/build/.<u></u>depend-v.haskell] Error 1<br>
</blockquote>
<br></div></div>
Possibly your Parser.hs is corrupt somehow - take a look.  Remove the file and try again?<br>
<br>
Cheers,<br>
        Simon<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/ghc-devs</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<br>Austin - PGP: 4096R/0x91384671</div>
</div>