Re: storage size of 'test_array' isn't constant is Posix.hsc

2013-01-09 Thread Nathan Hüsken
Seems to be something wrong with offsetof in anroid ndk. A quick hack fix for me was replacing offsetof with __builtin_offsetof in all occurences in utils/hsc2hs/CrossCodegen.hs On 01/09/2013 12:55 AM, Nathan Hüsken wrote: Hey, when trying to build ghc for android, I get this error

expectJust initTcInteractive when compiling for android

2013-01-09 Thread Nathan Hüsken
Hey, On my attempts to build a android crosscompiler. During the command. I get this error (in the final phase): inplace/bin/ghc-stage1 -static -H32m -O-package-name integer-simple-0.1.1.0 -hide-all-packages -i -ilibraries/integer-simple/. -ilibraries/integer-simple/dist-install/build

Dissable building of haddock for cross compile

2013-01-09 Thread Nathan Hüsken
As mention in a previous message, when trying to build a cross compiler for android, I get: make[1]: *** No rule to make target `compiler/stage2/build/Module.hi', needed by `utils/haddock/dist/build/Main.o'. Stop. Looking at the output for the build for arm-unknown-nto-qnx8.0.0eabi, it does not

Blackberry arm crosscompile

2013-01-08 Thread Nathan Hüsken
Hey, I am trying to get the blackberry crosscompile to work. Maybe I find something on the way helping me to get android to work. I get until the same error messages as here: http://www.haskell.org/pipermail/cvs-ghc/2012-December/079035.html (which contain contain x86 assembly). I can not find

storage size of 'test_array' isn't constant is Posix.hsc

2013-01-08 Thread Nathan Hüsken
Hey, when trying to build ghc for android, I get this error in libraries/haskeline/./System/Console/Haskeline/Backend/Posix.hsc Posix.hsc: In function '_hsc2hs_test15': Posix.hsc:75:39: error: invalid application of 'sizeof' to incomplete type 'struct winsize' Posix.hsc: In function

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

Re: Android crosscompiler

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

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