<br><br><div class="gmail_quote">On Mon, Jun 6, 2011 at 6:18 PM, Stephen Blackheath [to GHC-iPhone] <span dir="ltr">&lt;<a href="mailto:likeliest.complexions.stephen@blacksapphire.com">likeliest.complexions.stephen@blacksapphire.com</a>&gt;</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 &quot;at all&quot;, I mean nothing about it worked.  So, Xcode is very fussy - or perhaps a better term for it might be &quot;buggy&quot;.  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&#39;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></blockquote><div><br>Steve,<br><br>I&#39;m new to Haskell (but I was new to Scala when I wrote Lift), my Xcode skills are rusty by 18 years (I wrote some commercial NextStep software back in the day), but I&#39;m a quick learner and would love to help in any way you might need... so feel encouraged to ask.<br>
<br>I&#39;m looking forward to using ghc-iphone to build some very cool stuff and want to help out the project and community in any way I can.<br><br>Thanks,<br><br>David<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<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>
&lt;<a href="mailto:likeliest.complexions.stephen@blacksapphire.com" target="_blank">likeliest.complexions.stephen@blacksapphire.com</a><br></div><div><div></div><div class="h5">
&lt;mailto:<a href="mailto:likeliest.complexions.stephen@blacksapphire.com" target="_blank">likeliest.complexions.stephen@blacksapphire.com</a>&gt;&gt; wrote:<br>
<br>
    David,<br>
<br>
    ghc-iphone doesn&#39;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 &#39;libsubdir&#39; 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 &#39;StgPtr&#39;<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:108:0:<br>
<br>
<br>
      error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before<br>
&#39;bdescr&#39;<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:163:0:<br>
<br>
<br>
      error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;void&#39;<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:174:0:<br>
<br>
<br>
      error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;void&#39;<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:187:0:<br>
<br>
<br>
      error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;void&#39;<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:198:0:<br>
<br>
<br>
      error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;void&#39;<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:219:0:<br>
<br>
<br>
      error: expected &#39;)&#39; before &#39;n&#39;<br>
<br>
<br>
/opt/iphone/lib/ghc-6.10.4-iphone-simulator/include/Block.h:223:0:<br>
<br>
<br>
      error: expected &#39;)&#39; before &#39;n&#39;<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 &#39;...&#39; before &#39;nat&#39;<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&#39;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&#39;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&#39;s the first week in a new<br>
        environment (Haskell) and I&#39;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> &lt;mailto:<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a>&gt;<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> &lt;mailto:<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a>&gt;<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>Lift, the simply functional web framework <a href="http://liftweb.net" target="_blank">http://liftweb.net</a><div>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></div><br>