Pradeep, Unfortunately I don't have time to investigate, but maybe this is useful: GHC-iPhone is statically built against SDK-4.2. I don't expect it to work if you use SDK-4.3. If you need to use SDK-4.3 (which wouldn't surprise me, knowing Apple), then you will have to build GHC-iPhone from source. I am working on a new version of GHC-iPhone based on GHC-7.2. Steve On 18/06/11 20:45, Pradeep Kumar wrote:
Hello all,
I have setup the binaries from ghc-iphone-binary-1.6-sdk-4.2.tar.bz2. I can compile the GetInBehind sample project for the simulator, for compiling for the device however I get errors from the haskell project like
/opt/iphone/lib/ghc-6.10.4-iphone/include/Stg.h:54:18: error: math.h: No such file or directory
/opt/iphone/lib/ghc-6.10.4-iphone/include/HsFFI.h:31:20: error: stdint.h: No such file or directory
/opt/iphone/lib/ghc-6.10.4-iphone/include/HsFFI.h:69:19: error: float.h: No such file or directory In file included from /opt/iphone/lib/ghc-6.10.4-iphone/include/Rts.h:22,
/opt/iphone/lib/ghc-6.10.4-iphone/include/RtsExternal.h:43:0: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'forkProcess'
/opt/iphone/lib/ghc-6.10.4-iphone/include/gmp.h:519:0: error: expected declaration specifiers or '...' before 'size_t'
/opt/iphone/lib/ghc-6.10.4-iphone/include/gmp.h:519:0: error: expected declaration specifiers or '...' before 'size_t'
/opt/iphone/lib/ghc-6.10.4-iphone/include/gmp.h:519:0:
The only changes I have done to the project is to set the base sdk to ios4.3 and the SDKROOT in Haskell project to iphoneos4.3. The library search paths are set as per "Fix “Library search paths”" in the document.
Any hint to what might be the issue?
Thank you Pradeep
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone