<div dir="ltr">I think it's reasonable to say my change triggers the issue, but I don't know why and I need someone who understand the register allocator better (e.g. Simon M) to at least give me some pointers on how to debug this. If this is causing more trouble than build bot breakages (which is bad enough), let me know and I'll either revert temporarily and or try to work around the issue.<div>

<br></div><div>Also, how do I repro this if I don't have a x86 machine lying around? Have people been successful working on these kind of issues in a VM?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Thu, Jun 26, 2014 at 10:55 AM, Karel Gardas <span dir="ltr"><<a href="mailto:karel.gardas@centrum.cz" target="_blank">karel.gardas@centrum.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Hello,<br>
<br>
builders running on i386 building for this platform caught issue which shows as a build breakage:<br>
<br>
ghc-stage1: panic! (the 'impossible' happened)<br>
(GHC version 7.9.20140624 for i386-unknown-linux):<br>
RegAllocLinear.<u></u>allocRegsAndSpill: no spill candidates<br>
allocating vreg: VirtualRegI n1Q6<br>
assignment: [(c1PV,InMem 2),(n1Q5,InBoth (RealRegSingle 3) 0),(n1Q6,InMem 1),(n1Q7,InMem 3),(n1Q9,InReg (RealRegSingle 2))]<br>
freeRegs: FreeRegs 4282318848<br>
initFreeRegs: FreeRegs 4282318861<br>
Please report this as a GHC bug: <a href="http://www.haskell.org/ghc/reportabug" target="_blank">http://www.haskell.org/ghc/<u></u>reportabug</a><br>
make[1]: *** [libraries/ghc-prim/dist-<u></u>install/build/GHC/<u></u>PrimopWrappers.o] Error 1<br>
libraries/ghc-prim/<a href="http://ghc.mk:4" target="_blank">ghc.mk:4</a>: recipe for target 'libraries/ghc-prim/dist-<u></u>install/build/GHC/<u></u>PrimopWrappers.o' failed<br>
<br>
Have a look for example on linux-i386 buildot log here: <a href="http://haskell.inf.elte.hu/builders/validator1-linux-x86-head/18/7.html" target="_blank">http://haskell.inf.elte.hu/<u></u>builders/validator1-linux-x86-<u></u>head/18/7.html</a><br>


<br>
Anyway, this happens on Linux, FreeBSD and Solaris buildbots on i386 so it's OS independent and probably 32bit/i386 platform specific and it's two days old breakage now. The last two night builds fail on all mentioned buildbots. I'm not sure but perhaps:<br>


<br>
commit d8abf85f8ca176854e9d5d0b12371c<u></u>4bc402aac3<br>
Author: Johan Tibell <<a href="mailto:johan.tibell@gmail.com" target="_blank">johan.tibell@gmail.com</a>><br>
Date:   Mon Jun 9 11:43:21 2014 +0200<br>
<br>
triggers that issue? I'm not claiming that the commit is actual culprit, this may be just recently un-hidden issue in linear regs allocator on i386!<br>
<br>
Thanks!<span class="HOEnZb"><font color="#888888"><br>
Karel<br>
</font></span></blockquote></div><br></div>