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

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