+1 to looking forward to Stephen porting GHC 7.<div>on the sidelines with pom-poms, mate. :)</div><div><br></div><div>mark<br><br><div class="gmail_quote">On Tue, Jun 7, 2011 at 11:18 AM, Stephen Blackheath [to GHC-iPhone] <span dir="ltr"><<a href="mailto:likeliest.complexions.stephen@blacksapphire.com">likeliest.complexions.stephen@blacksapphire.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">David,<br>
<br>
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.<br>
<br>
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.<br>
<br>
The second most likely thing is that a new version of Xcode has broken something new.<br>
<br>
I have not seen this particular error, as far as I remember.<br>
<br>
You could try building from source. Then, at least, the GHC-iPhone stuff and the Xcode you're using will be the same version.<br>
<br>
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.<br>
<br>
<br>
Steve<div class="im"><br>
<br>
On 07/06/11 12:39, David Pollak wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
<br>
On Mon, Jun 6, 2011 at 4:24 PM, Stephen Blackheath [to GHC-iPhone]<br>
<<a href="mailto:likeliest.complexions.stephen@blacksapphire.com" target="_blank">likeliest.complexions.stephen@blacksapphire.com</a><br></div><div><div></div><div class="h5">
<mailto:<a href="mailto:likeliest.complexions.stephen@blacksapphire.com" target="_blank">likeliest.complexions.stephen@blacksapphire.com</a>>> wrote:<br>
<br>
David,<br>
<br>
ghc-iphone doesn't use your native GHC for its own compiling, so you<br>
can use any version you like. However, if you want to install<br>
GHC-iPhone from source, you will need to use ghc-6.10.4.<br>
<br>
The source code is in the form of patches, which can be found in the<br>
patch.snowleopard directory at<br>
<br>
<a href="http://projects.haskell.org/ghc-iphone/downloads/" target="_blank">http://projects.haskell.org/ghc-iphone/downloads/</a><br>
<br>
Read the README file and GHC-iPhone.pdf and you should have (almost)<br>
enough information to build from source.<br>
<br>
<br>
Thanks.<br>
<br>
I am using the binary distribution with the draw example and get the<br>
following errors (and then some):<br>
build-iphone-haskell.sh running with ACTION= and<br>
PLATFORM_NAME=iphonesimulator<br>
<br>
<br>
Warning: Error parsing config file /Users/dpp/.cabal/config:77:<br>
<br>
<br>
Parse of field 'libsubdir' failed (paths with spaces must use Haskell String<br>
<br>
<br>
syntax):<br>
<br>
<br>
Warning: Using default configuration.<br>
<br>
<br>
Resolving dependencies...<br>
<br>
<br>
Configuring HaskellDraw-0.1...<br>
<br>
<br>
Preprocessing executables for HaskellDraw-0.1...<br>
<br>
<br>
Building HaskellDraw-0.1...<br>
<br>
<br>
In file included from<br>
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:42,<br>
<br>
<br>
from<br>
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,<br>
<br>
<br>
from<br>
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,<br>
<br>
<br>
from<br>
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:9,<br>
<br>
<br>
from<br>
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,<br>
<br>
<br>
from MainWindow.m:1:0:<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:51:0:<br>
<br>
<br>
error: expected specifier-qualifier-list before 'StgPtr'<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:108:0:<br>
<br>
<br>
error: expected '=', ',', ';', 'asm' or '__attribute__' before<br>
'bdescr'<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:163:0:<br>
<br>
<br>
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:174:0:<br>
<br>
<br>
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:187:0:<br>
<br>
<br>
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:198:0:<br>
<br>
<br>
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:219:0:<br>
<br>
<br>
error: expected ')' before 'n'<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:223:0:<br>
<br>
<br>
error: expected ')' before 'n'<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:235:0:<br>
<br>
<br>
error: expected declaration specifiers or '...' before 'nat'<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:241:0:<br>
<br>
<br>
<br>
<br>
Any idea of what I'm doing wrong?<br>
<br>
<br>
<br>
Steve<br>
<br>
<br>
On 07/06/11 10:53, David Pollak wrote:<br>
<br>
Howdy,<br>
<br>
I'm running GHC 7.0.2 on OS X Snow Leopard (64 bit)<br>
<br>
Is it possible to get ghc-iphone to work with GHC 7?<br>
<br>
Also, is there a source repository for the ghc-iphone code?<br>
<br>
Sorry for the dumb/newbie questions. It's the first week in a new<br>
environment (Haskell) and I'm feeling my way around and bumping<br>
my head<br>
a lot.<br>
<br>
Thanks,<br>
<br>
David<br>
<br>
--<br>
Lift, the simply functional web framework <a href="http://liftweb.net" target="_blank">http://liftweb.net</a><br>
Simply Lift <a href="http://simply.liftweb.net" target="_blank">http://simply.liftweb.net</a><br>
Follow me: <a href="http://twitter.com/dpp" target="_blank">http://twitter.com/dpp</a><br>
Blog: <a href="http://goodstuff.im" target="_blank">http://goodstuff.im</a><br>
<br>
<br>
<br>
_______________________________________________<br>
iPhone mailing list<br></div></div>
<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a> <mailto:<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a>><div class="im"><br>
<a href="http://www.haskell.org/mailman/listinfo/iphone" target="_blank">http://www.haskell.org/mailman/listinfo/iphone</a><br>
<br>
<br>
_______________________________________________<br>
iPhone mailing list<br></div>
<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a> <mailto:<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a>><div class="im"><br>
<a href="http://www.haskell.org/mailman/listinfo/iphone" target="_blank">http://www.haskell.org/mailman/listinfo/iphone</a><br>
<br>
<br>
<br>
<br>
--<br>
Lift, the simply functional web framework <a href="http://liftweb.net" target="_blank">http://liftweb.net</a><br>
Simply Lift <a href="http://simply.liftweb.net" target="_blank">http://simply.liftweb.net</a><br>
Follow me: <a href="http://twitter.com/dpp" target="_blank">http://twitter.com/dpp</a><br>
Blog: <a href="http://goodstuff.im" target="_blank">http://goodstuff.im</a><br>
<br>
<br>
<br>
_______________________________________________<br>
iPhone mailing list<br>
<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/iphone" target="_blank">http://www.haskell.org/mailman/listinfo/iphone</a><br>
</div></blockquote><div><div></div><div class="h5">
<br>
_______________________________________________<br>
iPhone mailing list<br>
<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/iphone" target="_blank">http://www.haskell.org/mailman/listinfo/iphone</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>A UNIX signature isn't a return address, it's the ASCII equivalent of a <br>black velvet clown painting. It's a rectangle of carets surrounding a <br>
quote from a literary giant of weeniedom like Heinlein or Dr. Who. <br> -- Chris Maeda<br><br>
</div>