Building on android - compiled program segfaults
nathan.huesken at posteo.de
Fri Jan 11 12:36:22 CET 2013
I was succesfull in building ghc (pulled from git) to compile for
Now using "inplace/bin/ghc-stage1 -dcore-lint -debug" I compiler this
main = putStrLn "Hello, World"
I get an executable, which I can run on my android device. Unfortantly
Running it with ./Main +RTS -DS gives:
cap 0: initialised
Now I am trying to debug this in gdb. When I try to display the stack
(which should be in r13 on arm of I understand correctly, I get);
(gdb) p8 $r13
And now I am clueless. So I tried the good old printf debugging in the
rts. Using this, I see that it gets before the call to
scheduleWaitThread in the function rts_evalLazyIO (in RtsAPI.c).
But when I put a printf in the beginning of scheduleWaitThread (in
Schedule.c) it is not shown.
What else can I do to find out more?
More information about the ghc-devs