<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Ben, Phyx,</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Wed, Jul 6, 2016 at 7:14 PM, Ben Gamari <span dir="ltr"><<a href="mailto:ben@smart-cactus.org" target="_blank">ben@smart-cactus.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span>(...)<br>
</span>Ahh, right. Out of curiosity what toolchain are you using to build your<br>
stage 1 cross compiler?<br></blockquote><div><br></div><div>I'm using an MXE (<a href="http://mxe.cc" target="_blank">http://mxe.cc</a>) environment in a Debian Jessie Docker image which has gcc-4.9.3. The build env is here: <a href="https://github.com/albertov/ghc-cross-compiler-windows-x86" target="_blank">https://github.com/albertov/ghc-cross-compiler-windows-x86</a></div><div><br></div><div>On Wed, Jul 6, 2016 at 7:14 PM, Ben Gamari <span dir="ltr"><<a href="mailto:ben@smart-cactus.org" target="_blank">ben@smart-cactus.org</a>></span> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">It would be nice if we could avoid it; GHC depending upon a library has<br>
the very unfortunate effect that any user code also needing to link<br>
against GHC or one of its libraries now has no choice in the version of<br>
that library. We go to some lengths to try to keep the dependency<br>
footprint of GHC small for this reason.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<span>(...)<br>
> Named pipes have also crossed my mind but I'm not sure how well they're<br>
> supported by wine.<br>
><br>
</span>It would be great if there were some way we could make this work with<br>
named pipes. Not only does it side-step the dependency issue, but it<br>
feels like the right way forward.<br></blockquote><div><br></div><div> On Wed, Jul 6, 2016 at 8:05 PM, Phyx <span dir="ltr"><<a href="mailto:lonetiger@gmail.com" target="_blank">lonetiger@gmail.com</a>></span> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Named pipes would solve your issue, Just don't forget to set the proper ACL on the pipes.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div></div></div></div></blockquote><div><br></div><div>It does indeed work! However, I've broken GHC on a Windows host until I implement the equivalent to Posix.createNamedPipe since it seems there's no binding for CreateNamedPipe that I can find in the tree. I'll look into it tomorrow.</div><div><br></div><div>I've pushed the changes so far to <a href="https://github.com/albertov/ghc/tree/cross-external-interpreter" target="_blank">https://github.com/albertov/ghc/tree/cross-external-interpreter</a>.</div><div><br></div><div>Thanks</div><div>Alberto</div><div><br></div>







<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
Cheers,<br>
<br>
- Ben<br>
</blockquote></div><br></div></div>