neurocyte / ghc-android

Build scripts for building ghc cross compilers targeting Android
182 stars 29 forks source link

FTBFS #19

Closed joeyh closed 10 years ago

joeyh commented 10 years ago

Building current ghc head fails. In a particularly nasty way involving arm assembly code. For example:

../src/arm/sysv.S:281: Error: no such instruction: `beq .Lretint'

That's not a bug in ghc-android itself, but I wonder if it would make sense to find a ghc release that works, and build from it by default rather than from git head?

joeyh commented 10 years ago

Actually, this is a bug in the build script; I didn't have llvm installed and it didn't check for that.

However, my question about ghc versions stands..

joeyh commented 10 years ago

Actually, it fails even with llvm installed. I think the real problem is that it's not passing --with-gcc= to ghc's configure, so libffi ends up being built for arm using the host compiler, which of course doesn't work.

neurocyte commented 10 years ago

Excellent. Thanks!