Hey,

I would like to compile haskell to android using the android ndk.
I saw this message for blackberry: http://web.archiveorange.com/archive/v/j7U5dAvNego9GwzeIPFn
I thought, well, than it should somehow work for android too.

So I fetched ghc cvs and tried to do something similar as the patch for blackberry (without knowing what I am doing).
Now, configure:

./configure --target=arm-linux-androideabi --build=i686-linux-gnu --host=arm-linux-androideabi --with-sysroot=/home/ls/src/android-ndk/platforms/android-14/arch-arm

fails with:

  configure: error: C compiler cannot create executables

I am passing the "-with-sysroot" parameter, because

arm-linux-androideabi-gcc test.c --sysroot=/home/ls/src/android-ndk/platforms/android-14/arch-arm

works.
Looking at config.log, it seems the --sysroot is not passed to arm-linux-androideabi-gcc.

Now, I do not know if the problem has something to do with the ghc build system, or if it is general autotools related.

Am I on the right track for building haskell programs on android?
Can anyone give advise what to do to reach this goal?
I am willing to put time into this, but I do not really know where to start...

Thanks!
Nathan

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to