<div dir="ltr">ummm, cmm in 7.6 and HEAD are different languages<div><br></div><div style>please follow the directions here <a href="https://ghc.haskell.org/trac/ghc/wiki/Building">https://ghc.haskell.org/trac/ghc/wiki/Building</a></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 9, 2013 at 5:19 PM, Alexander Pakhomov <span dir="ltr"><<a href="mailto:ker0sin@yandex.ru" target="_blank">ker0sin@yandex.ru</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I have both. Think it's gcc. It is quite weird if that cpp (preprocessor) differs. AFAIK cmm files are compiled directly by ghc. The problem seem to be in cmm file, since ghc-7.6.3 fails with the same message.</div>

<div> </div><div>10.12.2013, 02:15, "Carter Schonwald" <<a href="mailto:carter.schonwald@gmail.com" target="_blank">carter.schonwald@gmail.com</a>>:</div><div class="HOEnZb"><div class="h5"><blockquote type="cite">

<div>are you using clang or gcc?   <span>2013 08 28</span> is from a while a go, please clone GHC HEAD from today. If you still have problems, please file a ticket on ghc track, and/or email ghc-devs </div></blockquote><div>

 </div><div> </div><blockquote type="cite"><div><div><div>On Mon, Dec 9, 2013 at 5:07 PM, Alexander Pakhomov <span><<a href="mailto:ker0sin@yandex.ru" target="_blank">ker0sin@yandex.ru</a>></span> wrote:<br><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi. Trying to compile ghc-7.7.<span>20130828</span> on OpenBSD I got an error:<br> rts/HeapStackCheck.cmm:97:18: parse error on input `['<br> The code is following:<br>  96         if (HpAlloc <= BLOCK_SIZE<br>  97             && bdescr_link(CurrentNursery) != NULL) {<br>

 which preprocesses to:<br>         if (HpAlloc <= (1<<12)<br>             && b0[CurrentNursery+15] != (0::bits64)) {<br> This is the first occurrence of b0 in preprocessed file. I believe that it is due to undefined b0.<br>

 Command that fails is:<br> "inplace/bin/ghc-stage1" -static  -H32m -O -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -package-name rts -dcmm-lint      -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen           -O2    -c rts/HeapStackCheck.cmm -o rts/dist/build/HeapStackCheck.o<br>

 To preprocess do the following:<br> cpp -O -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -Irts/dist/build -Irts/dist/build/autogen         rts/HeapStackCheck.cmm | less<br>

 <br> Can you please find source of b0 in preprocessed file?<br> _______________________________________________<br> Haskell-Cafe mailing list<br> <a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>

 <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a></blockquote></div></div></div></blockquote></div></div></blockquote></div><br></div>