<div dir="ltr">I was able to build a docker container for an ARM cross-compiler, if you find it helpful please have a look here: <a href="https://github.com/AlexeyRaga/ghc-docker-cross-arm">https://github.com/AlexeyRaga/ghc-docker-cross-arm</a><div><br></div><div>Cheers </div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 19, 2015 at 3:00 AM Mike Meyer <<a href="mailto:mwm@mired.org">mwm@mired.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sat, Oct 17, 2015 at 9:04 AM Roman Cheplyaka <<a href="mailto:roma@ro-che.info" target="_blank">roma@ro-che.info</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/17/2015 03:29 PM, Mike Meyer wrote:<br>
> Thanks, the worked like a charm! Any chance this can be used for<br>
> cross-compiling from a Unix desktop to embedded arm?<br>
<br>
Not as easy as that. This solution relies on the fact that you can run<br>
i386 binaries on x86-64, which is obviously not true for arm.<br></blockquote><div><br></div><div>Yeah, I sort of expected that. But i'd be nice if it works.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
See <a href="https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling" rel="noreferrer" target="_blank">https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling</a> for<br>
how to build a cross-compiler.<br></blockquote><div><br></div><div>Doesn't work for me for building embedded code. The target arm-none-eabi fails to configure because gcc doesn't work, because _exit doesn't exist. Which is indeed the case. I don't see any way to turn that off.</div><div><br></div><div>Is this not supported by ghc?</div></div></div>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div>