[Haskell-iPhone] ghc-iphone and GHC 7.0.2
Stephen Blackheath [to GHC-iPhone]
likeliest.complexions.stephen at blacksapphire.com
Tue Jun 7 03:18:28 CEST 2011
David,
The most likely thing is that some setting is wrong in the build.
HaskellDraw is very old indeed, and the Xcode project will - at a
minimum - require to be told to build using the 4.2 SDK. Now - it looks
like you are doing that, but check all the settings related to that.
Now, on the version of Xcode I used, every single SDK version other than
the latest did not work at all. When I say "at all", I mean nothing
about it worked. So, Xcode is very fussy - or perhaps a better term for
it might be "buggy". You will need to fiddle.
The second most likely thing is that a new version of Xcode has broken
something new.
I have not seen this particular error, as far as I remember.
You could try building from source. Then, at least, the GHC-iPhone
stuff and the Xcode you're using will be the same version.
I am about to start working on porting ghc-7.0 or 7.2 to iPhone, so if I
possibly can, I will try very hard to avoid having to diagnose problems
on the old version.
Steve
On 07/06/11 12:39, David Pollak wrote:
>
>
> On Mon, Jun 6, 2011 at 4:24 PM, Stephen Blackheath [to GHC-iPhone]
> <likeliest.complexions.stephen at blacksapphire.com
> <mailto:likeliest.complexions.stephen at blacksapphire.com>> wrote:
>
> David,
>
> ghc-iphone doesn't use your native GHC for its own compiling, so you
> can use any version you like. However, if you want to install
> GHC-iPhone from source, you will need to use ghc-6.10.4.
>
> The source code is in the form of patches, which can be found in the
> patch.snowleopard directory at
>
> http://projects.haskell.org/ghc-iphone/downloads/
>
> Read the README file and GHC-iPhone.pdf and you should have (almost)
> enough information to build from source.
>
>
> Thanks.
>
> I am using the binary distribution with the draw example and get the
> following errors (and then some):
> build-iphone-haskell.sh running with ACTION= and
> PLATFORM_NAME=iphonesimulator
>
>
> Warning: Error parsing config file /Users/dpp/.cabal/config:77:
>
>
> Parse of field 'libsubdir' failed (paths with spaces must use Haskell String
>
>
> syntax):
>
>
> Warning: Using default configuration.
>
>
> Resolving dependencies...
>
>
> Configuring HaskellDraw-0.1...
>
>
> Preprocessing executables for HaskellDraw-0.1...
>
>
> Building HaskellDraw-0.1...
>
>
> In file included from
> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:42,
>
>
> from
> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,
>
>
> from
> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
>
>
> from
> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,
>
>
> from
> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
>
>
> from MainWindow.m:1:0:
>
>
> /opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:51:0:
>
>
> error: expected specifier-qualifier-list before 'StgPtr'
>
>
> /opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:108:0:
>
>
> error: expected '=', ',', ';', 'asm' or '__attribute__' before
> 'bdescr'
>
>
> /opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:163:0:
>
>
> error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
>
>
> /opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:174:0:
>
>
> error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
>
>
> /opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:187:0:
>
>
> error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
>
>
> /opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:198:0:
>
>
> error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
>
>
> /opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:219:0:
>
>
> error: expected ')' before 'n'
>
>
> /opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:223:0:
>
>
> error: expected ')' before 'n'
>
>
> /opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:235:0:
>
>
> error: expected declaration specifiers or '...' before 'nat'
>
>
> /opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:241:0:
>
>
>
>
> Any idea of what I'm doing wrong?
>
>
>
> Steve
>
>
> On 07/06/11 10:53, David Pollak wrote:
>
> Howdy,
>
> I'm running GHC 7.0.2 on OS X Snow Leopard (64 bit)
>
> Is it possible to get ghc-iphone to work with GHC 7?
>
> Also, is there a source repository for the ghc-iphone code?
>
> Sorry for the dumb/newbie questions. It's the first week in a new
> environment (Haskell) and I'm feeling my way around and bumping
> my head
> a lot.
>
> Thanks,
>
> David
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Simply Lift http://simply.liftweb.net
> Follow me: http://twitter.com/dpp
> Blog: http://goodstuff.im
>
>
>
> _______________________________________________
> iPhone mailing list
> iPhone at haskell.org <mailto:iPhone at haskell.org>
> http://www.haskell.org/mailman/listinfo/iphone
>
>
> _______________________________________________
> iPhone mailing list
> iPhone at haskell.org <mailto:iPhone at haskell.org>
> http://www.haskell.org/mailman/listinfo/iphone
>
>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Simply Lift http://simply.liftweb.net
> Follow me: http://twitter.com/dpp
> Blog: http://goodstuff.im
>
>
>
> _______________________________________________
> iPhone mailing list
> iPhone at haskell.org
> http://www.haskell.org/mailman/listinfo/iphone
More information about the iPhone
mailing list