<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">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>