[Haskell-iPhone] Has anybody tried Xcode 4 and ghc7 ?

Pradeep Kumar pradeepkumar.t at gmail.com
Sat Jun 18 10:45:16 CEST 2011


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



More information about the iPhone mailing list