Hey,
I realized that I forgot to apply one of the patches, sorry for my
blindness.
When I apply all of the patches, I get a different error:
Configuring base-4.7.0.0...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for gcc...
/home/ls/src/android-ndk/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/home/ls/src/ghc-7.7.20121213/libraries/base':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
I am wondering a little bit, I use the "host" parameter set to
"arm-linux-androideabi" because at the blackberry post [1] it was set to
"i486-pc-nto-qnx8.0.0", but do should it not be set to "i686-linux-gnu"
so that the compiler runs on my linux system?
Anyhow, setting host to "i686-linux-gnu" also fails.
Back with host="arm-linux-androideabi" the error message above suggests,
that the host parameter is not passed to configure for base. The patches
in [1] seem to only pass the host and target parameters if target !=
host. I removed this condition, always passing host and target.
Now configure for base fails with:
configure: error: iconv is required on non-Windows platforms
My googling tells me, that iconv for android is not trival.
Could I avoid having to use iconv?
Thanks!
Nathan
[1]: http://web.archiveorange.com/archive/v/j7U5dAvNego9GwzeIPFn
On 01/04/2013 03:47 PM, Stephen Paul Weber wrote:
Somebody claiming to be Nathan Hüsken wrote:
OK, I managed to set the sysroot. Now the buil fails with this:
Try building ghc-prim with your cross-compiler by hand. Sometimes the
GHC build system eats useful error messages.
_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc