[Haskell-iPhone] ghc-iphone and GHC 7.0.2
David Pollak
feeder.of.the.bears at gmail.com
Tue Jun 7 02:39:04 CEST 2011
On Mon, Jun 6, 2011 at 4:24 PM, Stephen Blackheath [to GHC-iPhone] <
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
>> http://www.haskell.org/mailman/listinfo/iphone
>>
>
> _______________________________________________
> iPhone mailing list
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/iphone/attachments/20110606/ec68fb89/attachment.htm>
More information about the iPhone
mailing list