Re: Android crosscompiler

2013-01-07 Thread Stephen Paul Weber
Somebody claiming to be Nathan Hüsken wrote: On 01/05/2013 05:20 PM, Stephen Paul Weber wrote: Somebody claiming to be Nathan Hüsken wrote: Time.hsc: In function '_hsc2hs_test45': Time.hsc:266:20: error: storage size of 'test_array' isn't constant Which Time.hsc? It is

Re: Android crosscompiler

2013-01-06 Thread Nathan Hüsken
On 01/05/2013 05:20 PM, Stephen Paul Weber wrote: Somebody claiming to be Nathan Hüsken wrote: ghc build stage1 succeeds, stage2 fails with: IIRC, stage2 does not work with cross-compiling. Time.hsc: In function '_hsc2hs_test45': Time.hsc:266:20: error: storage size of 'test_array' isn't

Re: Android crosscompiler

2013-01-05 Thread Nathan Hüsken
Hey, OK, I got a lot further. ghc build stage1 succeeds, stage2 fails with: Time.hsc: In function '_hsc2hs_test45': Time.hsc:266:20: error: storage size of 'test_array' isn't constant But if I understand correctly, that is not so bad because stage1 is already the cross compiler that I need

Re: Android crosscompiler

2013-01-05 Thread Stephen Paul Weber
Somebody claiming to be Nathan Hüsken wrote: ghc build stage1 succeeds, stage2 fails with: IIRC, stage2 does not work with cross-compiling. Time.hsc: In function '_hsc2hs_test45': Time.hsc:266:20: error: storage size of 'test_array' isn't constant Which Time.hsc? But if I understand

Re: Android crosscompiler

2013-01-04 Thread Nathan Hüsken
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

Re: Android crosscompiler

2013-01-04 Thread Stephen Paul Weber
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. -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for

Re: Android crosscompiler

2013-01-04 Thread Nathan Hüsken
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...

Android crosscompiler

2013-01-03 Thread Nathan Hüsken
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

Re: Android crosscompiler

2013-01-03 Thread Stephen Paul Weber
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