[<<][haskell][>>][..]
Sat Dec 2 20:37:34 EST 2017

Cross compiling haskell

I'd like to create a "service node" for offloading tasks from an
Erlang system.  This needs only a single static binary.

What I want is something that can handle different Erlang RPC calls in
parallel.  It doesn't really have to be a node which needs some extra
protocol overhead.  A port process is already good enough.

Start here:
https://medium.com/@zw3rk/a-haskell-cross-compiler-for-raspberry-pi-ddd9d41ced94

From here:
https://www.reddit.com/r/haskell/comments/2uszbi/haskell_does_it_support_cross_compilation/
"GHC doesn't cross-compile user programs"

But it is possible to cross-compile GCC and compile it on the target.

This mentiones a frankenstein's cross-compiler:
https://haskellembedded.github.io/posts/2015-12-15-arm.html

So it's not without caveats.
Maybe simpler to set up a qemu lxc.


More recent docs:

https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling



[Reply][About]
[<<][haskell][>>][..]