[Haskell-cafe] Cross-compiling for arm?

Alexey Raga alexey.raga at gmail.com
Mon Oct 19 05:21:20 UTC 2015


I was able to build a docker container for an ARM cross-compiler, if you
find it helpful please have a look here:
https://github.com/AlexeyRaga/ghc-docker-cross-arm

Cheers

On Mon, Oct 19, 2015 at 3:00 AM Mike Meyer <mwm at mired.org> wrote:

> On Sat, Oct 17, 2015 at 9:04 AM Roman Cheplyaka <roma at ro-che.info> wrote:
>
>> On 10/17/2015 03:29 PM, Mike Meyer wrote:
>> > Thanks, the worked like a charm! Any chance this can be used for
>> > cross-compiling from a Unix desktop to embedded arm?
>>
>> Not as easy as that. This solution relies on the fact that you can run
>> i386 binaries on x86-64, which is obviously not true for arm.
>>
>
> Yeah, I sort of expected that. But i'd be nice if it works.
>
>
>> See https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling for
>> how to build a cross-compiler.
>>
>
> 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.
>
> Is this not supported by ghc?
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20151019/ce23c65f/attachment.html>


More information about the Haskell-Cafe mailing list