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 in
> lib
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 '_hsc2hs_test