Hey,
OK, I managed to set the sysroot. Now the buil fails with this:
===--- building phase 0
make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds
make[1]: Nothing to be done for `phase_0_builds'.
===--- building phase 1
make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds
CROSS_COMPILE="arm-unknown-linux-androideabi-" "inplace/bin/ghc-cabal"
configure
--with-ghc="/home/ls/src/ghc-7.7.20121213/inplace/bin/ghc-stage1"
--with-ghc-pkg="/home/ls/src/ghc-7.7.20121213/inplace/bin/ghc-pkg"
--flag=include-ghc-prim --enable-library-vanilla
--disable-library-profiling --disable-shared --disable-library-for-ghci
--enable-library-for-ghci --with-hscolour="/home/ls/.cabal/bin/HsColour"
--configure-option=CFLAGS=" -fno-stack-protector "
--configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" "
--with-gcc="/home/ls/src/android-ndk/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc"
--configure-option=--with-cc="/home/ls/src/android-ndk/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc"
--with-ar="/usr/bin/ar" --with-ranlib="true" --with-alex="/usr/bin/alex"
--with-happy="/usr/bin/happy" -- dist-install libraries/ghc-prim
Configuring ghc-prim-0.3.1.0...
ghc-cabal: /tmp/16221.o: does not exist
make[1]: *** [libraries/ghc-prim/dist-install/package-data.mk] Error 1
make: *** [all] Error 2
Can I find out how the missing file should have been created?
Any Ideas what to look for/what to do?
Thanks!
Nathan
On 01/03/2013 08:14 PM, Stephen Paul Weber wrote:
Somebody claiming to be Nathan Hüsken wrote:
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
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.
I'm no autotools export, but I'm pretty sure that unless
--with-sysroot is explicitly defined, it does not exist.
Ideally you would install arm-linux-androideabi-gcc such that this
argument is not needed, or use an environment variable. You could
also create a shell alias or shell script wrapper that adds the
required flag.
Am I on the right track for building haskell programs on android?
Seems likely to be the right path, though I have no NDK experience.
_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc