On Sunday, November 6, 2011 at 12:19 PM, Stephen Blackheath [to GHC-iPhone] wrote:
David,math.h is standard C library stuff. If it can't find that, then it meansthe SDK it is trying to use, namely,/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/lib/gcc/i686-apple-darwin10/4.2.1/include/,is not there. The version-dependency is very brittle. If you need adifferent version, you'll need to build GHC from source.
We have used parsec-3.1.0 on iPhone quite happily.
I don't want to spend any time on the old ghc-6.10.4-based version thatI could be spending on the new one.
On the subject of the new GHC-iPhonecompiler, here's an update:* ARM support is now present in GHC HEAD, using the LLVM code generator.You can build GHC locally on ARM linux, for example, and the speed ofcode execution is roughly twice the speed of the C-based code-gen.* The necessary LLVM changes will now be in LLVM version 3.0 thanks toKarel Gardas and David Terei.* Well Typed were planning to implement generalized cross-compiling, butthey're now looking for funding for this work. Since we (= iPwn Studios)need it soon, I'll be starting on it myself, hopefully this week.Cross-compiling in general is the bulk of the work. The iPhone-specificstuff is essentially the same as for the old GHC-6.10.4-based version.* An Android compiler will follow, but I can't estimate when.
SteveOn 05/11/11 13:40, David Pollak wrote:Howdy,I'm back to using GHC-iphone... I'm merging stuff I've been working oninto an iPad app.I'm using certain libraries like Parsec 3 (is Parsec 3 GHC 7 only?) WhenI do a try to install Parsec:dpp@oldboy:~/proj/LispHaskellIPad$ iphone-cabal install parsecWarning: Error parsing config file /Users/dpp/.cabal/config:77:Parse of field 'libsubdir' failed (paths with spaces must use Haskell Stringsyntax):Warning: Using default configuration.Resolving dependencies...Configuring deepseq-1.2.0.1...Preprocessing library deepseq-1.2.0.1...Building deepseq-1.2.0.1...[1 of 1] Compiling Control.DeepSeq ( Control/DeepSeq.hs,dist/build/Control/DeepSeq.o )In file included from/var/folders/kQ/kQnNu0yWEJWl+kNm1oRfTE+++TI/-Tmp-/ghc4575_0/ghc4575_0.hc:3:0:/opt/iphone/lib/ghc-6.10.4-iphone/include/Stg.h:54:18:error: math.h: No such file or directoryiphone-cabal: Error: some packages failed to install:deepseq-1.2.0.1 failed during the building phase. The exception was:exit: ExitFailure 1parsec-3.1.2 depends on deepseq-1.2.0.1 which failed to install.text-0.11.1.9 depends on deepseq-1.2.0.1 which failed to install.dpp@oldboy:~/proj/LispHaskellIPad$Bad things happen. Any pointers or hints to make iphone-cabal work forparsec?Also, a note to the developers on the list... don't upgrade to Lion...Xcode 4 on Lion seems to not work at all with any of the Haskell stuff(iphone or GHC 7).Thanks,David_______________________________________________iPhone mailing list_______________________________________________iPhone mailing list