Re: Building on android - compiled program segfaults

2013-01-13 Thread Bernhard Urban
Hi Nathan, On Fri, Jan 11, 2013 at 12:36 PM, Nathan Hüsken nathan.hues...@posteo.de wrote: I was succesfull in building ghc (pulled from git) to compile for arm-linux-androideabi! Great news! Can you describe how you managed to build it and which environment you use? main = putStrLn Hello,

Re: Building on android - compiled program segfaults

2013-01-13 Thread Conrad Parker
On 11 January 2013 19:36, Nathan Hüsken nathan.hues...@posteo.de wrote: Hi, I was succesfull in building ghc (pulled from git) to compile for arm-linux-androideabi! Now using inplace/bin/ghc-stage1 -dcore-lint -debug I compiler this Main.hs: main = putStrLn Hello, World I get an

Re: Building on android - compiled program segfaults

2013-01-13 Thread Nathan Hüsken
There is some more success :). When I do an unregisterised build, it works without segfault. On 01/13/2013 11:16 AM, Bernhard Urban wrote: Hi Nathan, On Fri, Jan 11, 2013 at 12:36 PM, Nathan Hüsken nathan.hues...@posteo.de wrote: I was succesfull in building ghc (pulled from git) to compile

Re: Building on android - compiled program segfaults

2013-01-13 Thread Nathan Hüsken
Mmh, that does not seem to work. (gdb) strace warning: Couldn't determine the static tracepoint marker to probe Static tracepoint 1 at 0x3f0588 On 01/13/2013 12:56 PM, Conrad Parker wrote: On 11 January 2013 19:36, Nathan Hüsken nathan.hues...@posteo.de wrote: Hi, I was succesfull in

Building on android - compiled program segfaults

2013-01-11 Thread Nathan Hüsken
Hi, I was succesfull in building ghc (pulled from git) to compile for arm-linux-androideabi! Now using inplace/bin/ghc-stage1 -dcore-lint -debug I compiler this Main.hs: main = putStrLn Hello, World I get an executable, which I can run on my android device. Unfortantly it segfaults. Running