compile ghc on Nexus 7 Android Tablet

How would I go about this? I see a lot of stuff about compiling for android/arm, but not too much about putting ghc on an android arm tablet. Has anyone done this? I'm sure it's easier with ubuntu touch, but I'd like to try it using vanilla android. Thanks!

Hi, perhaps the best strategy that comes to my mind would be to build ghc
cross-compiler first as outlined in https://github.com/joeyh/ghc-android.
And then try to build ghc STAGE1 compiler and libraries with this crosscompiler
so they'll run on arm.
The problem though is that ghc has no native arm backend IIRC. So you'll have to
either build unregistered compiler to run on arm that will compile through C or
make arm ghc compile with LLVM, in which case you'll also need LLVM
binaries for android.
Sergey
On Sat, Dec 27, 2014 at 12:13 PM, Cody Goodman
How would I go about this? I see a lot of stuff about compiling for android/arm, but not too much about putting ghc on an android arm tablet. Has anyone done this? I'm sure it's easier with ubuntu touch, but I'd like to try it using vanilla android.
Thanks! _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Thank you for your help Sergey.
On Sat, Dec 27, 2014 at 6:00 AM, Sergey Vinokurov
Hi, perhaps the best strategy that comes to my mind would be to build ghc cross-compiler first as outlined in https://github.com/joeyh/ghc-android. And then try to build ghc STAGE1 compiler and libraries with this crosscompiler so they'll run on arm.
The problem though is that ghc has no native arm backend IIRC. So you'll have to either build unregistered compiler to run on arm that will compile through C or make arm ghc compile with LLVM, in which case you'll also need LLVM binaries for android.
Sergey
On Sat, Dec 27, 2014 at 12:13 PM, Cody Goodman
wrote: How would I go about this? I see a lot of stuff about compiling for android/arm, but not too much about putting ghc on an android arm tablet. Has anyone done this? I'm sure it's easier with ubuntu touch, but I'd like to try it using vanilla android.
Thanks! _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (2)
-
Cody Goodman
-
Sergey Vinokurov