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
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
On Mon, Jun 20, 2011 at 2:55 PM, Stephen Blackheath [to GHC-iPhone] < likeliest.complexions.stephen@blacksapphire.com> wrote:
[...]
I am working on a new version of GHC-iPhone based on GHC-7.2. Steve
I'm curious, what remains to be done? I may be able to help, although it would be a learning process for me. Thomas Burt
Thomas, The current status is that Karel Gardas and I have got ARM code generation via LLVM integrated properly into GHC mainline, with the help of David Terei and Manuel Chakravarty. The next step is to make some changes to both cabal and GHC that are needed for cross-compiling in general. Now, Duncan Coutts and Ian Lynagh from Well Typed are going to look at this question in October, and they may be doing some work on it. This is a good thing, because Duncan is the maintainer of Cabal. This month they're busy with ICFP. This is the bulk of the outstanding work, and I'll be helping as much as I can. Once that's done, there are a few very minor iPhone-specific changes. The main one is the adjustor pool, which can pretty much be taken straight from my old 6.10.4-based GHC-iPhone patch. So at the moment we need to wait for Duncan and Ian to take a look at it. I'll let you know when there's some news. Steve On 14/09/11 10:15, thomas burt wrote:
On Mon, Jun 20, 2011 at 2:55 PM, Stephen Blackheath [to GHC-iPhone]
mailto:likeliest.complexions.stephen@blacksapphire.com> wrote: [...]
I am working on a new version of GHC-iPhone based on GHC-7.2. Steve
I'm curious, what remains to be done? I may be able to help, although it would be a learning process for me.
Thomas Burt
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
participants (3)
-
Pradeep Kumar -
Stephen Blackheath [to GHC-iPhone] -
thomas burt