<div dir="ltr"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Thanks! That’s all identical to my procedure except that I’m using 10.9 DP5/Xcode 5 DP5, so I guess that must play some role, though I’m not sure what.</span><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">
<br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Re: iPod Touch authorization, if you haven’t tried in a few days or so, Apple’s now claiming everything’s back online finally</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">
<a href="https://developer.apple.com/support/system-status/">https://developer.apple.com/support/system-status/</a></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">
Cheers</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Luke</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 11, 2013 at 5:37 PM, Stephen Blackheath [to GHC-iPhone] <span dir="ltr"><<a href="mailto:likeliest.complexions.stephen@blacksapphire.com" target="_blank">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">Luke,<br>
<br>
I didn't experience anything like you described. Here's as much detail as I can think of about what I did:<br>
<br>
* Mac OS/X 10.8.4<br>
<br>
* Xcode 4.6<br>
<br>
* ghc-7.6.3 downloaded from <a href="http://haskell.org/ghc" target="_blank">http://haskell.org/ghc</a> as the bootstrap compiler<br>
<br>
* llvm - 3.0 built from source downloaded off the llvm site:<br>
<br>
Low Level Virtual Machine (<a href="http://llvm.org/" target="_blank">http://llvm.org/</a>):<br>
llvm version 3.0<br>
Optimized build.<br>
Built Jan 31 2012 (09:33:35).<br>
Host: x86_64-apple-darwin12.4.0<br>
Host CPU: penryn<br>
<br>
Registered Targets:<br>
alpha - Alpha [experimental]<br>
arm - ARM<br>
... and others ...<br>
<br>
Before I had a problem with not enough memory but I bought some more. So I got a cross compiler built, but wasn't able to test it, because I can't authorize my iPod Touch for development at the moment (Apple systems are down). So I can't verify that it produces iOS executables that work.<br>
<br>
The latest commit in the git log for GHC HEAD was this:<br>
<br>
commit e8aa8ccba0c40884765281b21ff8f4<u></u>411802dd41<br>
Author: Richard Eisenberg <<a href="mailto:eir@cis.upenn.edu" target="_blank">eir@cis.upenn.edu</a>><br>
Date: Fri Aug 2 15:47:03 2013 +0100<br>
<br>
Implement "roles" into GHC.<br>
...<br>
<br>
I patched it as attached here (same patch as in my last email).<br>
<br>
The procedure I used was exactly the one described at <a href="http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS" target="_blank">http://ghc.haskell.org/trac/<u></u>ghc/wiki/Building/<u></u>CrossCompiling/iOS</a><br>
<br>
Thanks for your work on this! That problem you're having is pretty weird!<br>
<br>
<br>
Steve<div class="im"><br>
<br>
On 11/08/13 20:14, Luke Iannini wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
And the truly final word for the moment : ) —<br>
I built a tool to partially automate the indentation workaround for LLVM<br>
3.0 and it yields the same "co-processor offset out of<br>
range"/"unsupported relocation on symbol LCPI65_0" errors LLVM 3.3/3.4<br>
did when it finally gets to integer-simple/GHC/Integer/<u></u>Type.hs.<br>
<br>
<br>
On Sun, Aug 11, 2013 at 3:06 AM, Luke Iannini <<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a><br></div><div><div class="h5">
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>>> wrote:<br>
<br>
OK! So just to summarize:<br>
Building GHC HEAD with LLVM 3.0 or 3.2 (using GHC 7.6.3 as the<br>
bootstrap) on OS X 10.9 DP5/Xcode 5 DP5 exhibits very strange<br>
behavior wherein layout-based code along with mixed-tabs-and-spaces<br>
code fails to parse correctly, with issues in hundreds of files in<br>
the GHC HEAD tree.<br>
I don't have a 10.8 machine to check if this is a 10.9 exclusive<br>
issue, so I'd love if someone can try using these binaries to build<br>
GHC HEAD:<br>
<a href="http://llvm.org/releases/3.0/clang+llvm-3.0-x86_64-apple-darwin11.tar.gz" target="_blank">http://llvm.org/releases/3.0/<u></u>clang+llvm-3.0-x86_64-apple-<u></u>darwin11.tar.gz</a><br>
<br>
Building GHC HEAD with LLVM 3.3 or 3.4 works great as a regular<br>
compiler with the 10.9 workarounds I outlined in another thread, but<br>
fails when compiling as a cross-compiler (./configure<br>
--target=arm-apple-darwin10) with these errors:<br>
<a href="https://gist.github.com/lukexi/2b129f34fa027172c5ee" target="_blank">https://gist.github.com/<u></u>lukexi/2b129f34fa027172c5ee</a><br>
<br>
So I'm between a rock and a hard place at the moment.<br>
<br>
The only (very tedious and slow) workaround I've found for the<br>
3.0/3.2 bug is to manually expand tabs to spaces, and to transform<br>
do x<br>
y<br>
into<br>
do<br>
x<br>
y<br>
(similarly for where and let blocks)<br>
<br>
Cheers<br>
Luke<br>
<br>
<br>
On Sun, Aug 11, 2013 at 1:53 AM, Luke Iannini <<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a><br></div></div><div class="im">
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>>> wrote:<br>
<br>
Argh, sorry for the confusion: 3.2 *does* exhibit the issue. 3.3<br>
and 3.4 do not.<br>
<br>
<br>
On Sun, Aug 11, 2013 at 1:39 AM, Luke Iannini<br></div><div class="im">
<<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a> <mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>>> wrote:<br>
<br>
Further investigation:<br>
<br>
I grabbed 7.6.3 just to see if I somehow had a bad install<br>
of GHC, but the problem still occurred.<br>
<br>
The problem only occurs with LLVM 3.0.<br>
<br>
It is not related to cross-compilation or Stephen's patches:<br>
I tested this on multiple fresh clones with --with-gcc=clang.<br>
<br>
LLVM 3.2, 3.3 and 3.4 do not exhibit the issue.<br>
<br>
If anyone wants to try to reproduce, you can grab the LLVM<br>
3.0 binaries here Clang Binaries for MacOS X/x86-64<br></div>
<<a href="http://llvm.org/releases/3.0/clang+llvm-3.0-x86_64-apple-darwin11.tar.gz" target="_blank">http://llvm.org/releases/3.0/<u></u>clang+llvm-3.0-x86_64-apple-<u></u>darwin11.tar.gz</a>> and<div class="im">
<br>
just drop them in your path.<br>
<br>
(Stephen, I'm now trying your patch with LLVM 3.2)<br>
<br>
Cheers<br>
Luke<br>
<br>
<br>
On Sat, Aug 10, 2013 at 8:11 PM, Luke Iannini<br></div><div class="im">
<<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a> <mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>>> wrote:<br>
<br>
The first error on a fresh checkout is<br>
<br>
"/usr/local/bin/ghc" -hisuf hi -osuf o -hcsuf hc<br>
-static -H32m -O -package-db<br>
libraries/bootstrapping.conf -hide-all-packages -i<br>
-iutils/hsc2hs/. -iutils/hsc2hs/dist/build<br>
-iutils/hsc2hs/dist/build/<u></u>autogen<br>
-Iutils/hsc2hs/dist/build<br>
-Iutils/hsc2hs/dist/build/<u></u>autogen -optP-include<br>
-optPutils/hsc2hs/dist/build/<u></u>autogen/cabal_macros.h<br>
-package base-4.6.0.1 -package containers-0.5.0.0<br>
-package directory-1.2.0.1 -package filepath-1.3.0.1<br>
-package process-1.1.0.2 -XHaskell98 -XCPP<br>
-XForeignFunctionInterface -no-user-package-db<br>
-rtsopts -odir utils/hsc2hs/dist/build -hidir<br>
utils/hsc2hs/dist/build -stubdir utils/hsc2hs/dist/build<br>
-c utils/hsc2hs/./C.hs -o utils/hsc2hs/dist/build/C.o<br>
<br>
<br>
utils/hsc2hs/C.hs:155:3:<br>
<br>
parse error (possibly incorrect indentation or<br>
mismatched brackets)<br>
<br>
<br>
There seem to be two classes of error: one is the layout<br>
issue above, but other files can be fixed by simply<br>
running 'expand' on them.<br>
<br>
<br>
<br>
On Sat, Aug 10, 2013 at 6:42 PM, Luke Iannini<br></div><div><div class="h5">
<<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a> <mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>>> wrote:<br>
<br>
Hi Stephen/all,<br>
<br>
I got LLVM 3.0 installed and started building again<br>
but hit a very strange problem now wherein tons of<br>
layout-based code (as in<br>
<a href="http://en.wikibooks.org/wiki/Haskell/Indentation" target="_blank">http://en.wikibooks.org/wiki/<u></u>Haskell/Indentation</a>) is<br>
suddenly erroring out, e.g.<br>
compiler/coreSyn/CoreUnfold.<u></u>lhs:481:2:<br>
parse error (possibly incorrect indentation or<br>
mismatched brackets)<br>
(some files also seem to be triggered by mixed tabs<br>
and spaces)<br>
<br>
I can fix the errors one by one by converting the<br>
code to use more concrete indentation (like<br>
do<br>
thing1<br>
thing2<br>
)<br>
but it's all over the tree.<br>
<br>
Anyone have any idea what might cause this?<br>
<br>
Cheers<br>
Luke<br>
<br>
<br>
On Fri, Aug 9, 2013 at 6:14 AM, Stephen Blackheath<br>
[to GHC-iPhone]<br>
<<a href="mailto:likeliest.complexions.stephen@blacksapphire.com" target="_blank">likeliest.complexions.<u></u>stephen@blacksapphire.com</a><br></div></div>
<mailto:<a href="mailto:likeliest.complexions.stephen@blacksapphire.com" target="_blank">likeliest.complexions.<u></u>stephen@blacksapphire.com</a>>><div class="im"><br>
wrote:<br>
<br>
Luke,<br>
<br>
Try llvm version 3.0 - that's what I'm using,<br>
and it definitely worked before. llvm-3.1 is<br>
broken for GHC+ARM. As for llvm >= 3.2, I'm not<br>
sure if it's been fixed yet, but it wasn't<br>
working last time I tried a couple of months<br>
ago. I think this was because llvm is getting<br>
fussier about its input and GHC hasn't been<br>
"tightened up" yet.<br>
<br>
It's really easy to build llvm from source.<br>
<br>
<br>
Steve<br>
<br>
<br>
On 09/08/13 20:35, Luke Iannini wrote:<br>
<br>
v3 output:<br></div>
<a href="https://gist.github.com/__lukexi/7ca55b36269703236f1f" target="_blank">https://gist.github.com/__<u></u>lukexi/7ca55b36269703236f1f</a><div class="im"><br>
<<a href="https://gist.github.com/lukexi/7ca55b36269703236f1f" target="_blank">https://gist.github.com/<u></u>lukexi/7ca55b36269703236f1f</a>><br>
<br>
<br>
On Fri, Aug 9, 2013 at 4:34 AM, Luke Iannini<br>
<<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a> <mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>><br></div>
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a><div class="im"><br>
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>>>> wrote:<br>
<br>
OK, that got me past that one.<br>
<br>
Now I'm stuck here during compilation<br>
of integer-simple:<br></div>
<a href="https://gist.github.com/__lukexi/d9f8bfd8bca56d5d0ee9" target="_blank">https://gist.github.com/__<u></u>lukexi/d9f8bfd8bca56d5d0ee9</a><div class="im"><br>
<<a href="https://gist.github.com/lukexi/d9f8bfd8bca56d5d0ee9" target="_blank">https://gist.github.com/<u></u>lukexi/d9f8bfd8bca56d5d0ee9</a>><br>
<br>
("unsupported relocation on<br>
symbol"/"co-processor offset out of range")<br>
<br>
<br>
On Fri, Aug 9, 2013 at 4:00 AM, Luke<br>
Iannini <<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a><br>
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>><br></div>
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a><div class="im"><br>
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>>>> wrote:<br>
<br>
OK, I'm underway on this.<br>
<br>
First roadbump was:<br>
<br>
<br>
"inplace/bin/ghc-stage1" -static<br>
-H32m -O -Iincludes<br>
-Iincludes/dist<br></div>
-Iincludes/dist-__<u></u>derivedconstants/header<br>
<br>
-Iincludes/dist-ghcconstants/_<u></u>_header -Irts<div><div class="h5"><br>
-Irts/dist/build<br>
-DCOMPILING_RTS -package-name rts<br>
-dcmm-lint -i -irts<br>
-irts/dist/build<br>
-irts/dist/build/autogen -Irts/dist/build<br>
-Irts/dist/build/autogen -O2 -c<br>
rts/Apply.cmm -o<br>
rts/dist/build/Apply.o<br>
<br>
<br>
<br>
<br>
You are using a new version of LLVM<br>
that hasn't been tested yet!<br>
We will try though...<br>
/usr/local/bin/llc: : error: unable<br>
to get target for<br>
'arm-apple-darwin10', see --version<br>
and --triple.<br>
<br>
<br>
which I figured out were because<br>
the homebrew LLVM 3.4 only<br>
includes host platforms by default<br>
(x86/x86-64)<br>
Reinstalling it with all-targets<br>
enables them all:<br>
brew install llvm --with-clang<br>
--all-targets --HEAD<br>
<br>
Trying again now.<br>
<br>
<br>
<br>
<br>
On Thu, Aug 8, 2013 at 5:29 PM,<br>
Luke Iannini <<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a><br>
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>><br></div></div>
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a><div class="im"><br>
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>>>> wrote:<br>
<br>
Update: I've got GHC HEAD<br>
building on 10.9 again, tonight<br>
I'll dive into the iOS patch!<br>
Cheers<br>
Luke<br>
<br>
<br>
On Wed, Aug 7, 2013 at 9:12 PM,<br>
Carter Schonwald<br>
<<a href="mailto:carter.schonwald@gmail.com" target="_blank">carter.schonwald@gmail.com</a><br>
<mailto:<a href="mailto:carter.schonwald@gmail.com" target="_blank">carter.schonwald@<u></u>gmail.com</a>><br>
<br></div>
<mailto:<a href="mailto:carter.schonwald@" target="_blank">carter.schonwald@</a>__<a href="http://gmail.com" target="_blank">gma<u></u>il.com</a><div class="im"><br>
<mailto:<a href="mailto:carter.schonwald@gmail.com" target="_blank">carter.schonwald@<u></u>gmail.com</a>>>> wrote:<br>
<br>
if you're on 10.8, just DL<br>
the 4.6 CLI tools to get<br>
things working again.<br>
<br>
If you're on 10.9, you'll<br>
need to use recent GHC head +<br>
CLANG HEAD, (ok, the most<br>
recent XCODE 5 dev preview CLI<br>
tools may have all the<br>
needed clang patches, but thats<br>
still needing its own<br>
validation, orthogonal to the IOS<br>
related issues )<br>
<br>
<br>
On Tue, Aug 6, 2013 at 7:06<br>
PM, Luke Iannini<br>
<<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a><br>
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>><br></div>
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a><div class="im"><br>
<mailto:<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>>>> wrote:<br>
<br>
Hi Stephen,<br>
<br>
I installed 10.9 for<br>
another project and thus am in<br>
the middle of fixing up<br>
my system to be able to<br>
build GHC again, but I<br>
think I'm close — as soon as<br>
I have it going I'll<br>
try this.<br>
<br>
In the meantime someone<br>
still on 10.8 should<br>
definitely try the patch!<br>
<br>
Hope you're great!<br>
Luke<br>
<br>
<br>
On Tue, Aug 6, 2013 at<br>
6:42 PM, Stephen Blackheath<br>
[to GHC-iPhone]<br>
<br></div>
<<a href="mailto:likeliest.complexions.__stephen@blacksapphire.com" target="_blank">likeliest.complexions.__<u></u>stephen@blacksapphire.com</a><br>
<mailto:<a href="mailto:likeliest.complexions.stephen@blacksapphire.com" target="_blank">likeliest.complexions.<u></u>stephen@blacksapphire.com</a>><br>
<br>
<mailto:<a href="mailto:likeliest.complexions.__stephen@blacksapphire.com" target="_blank">likeliest.complexions.<u></u>__stephen@blacksapphire.com</a><div class="im"><br>
<mailto:<a href="mailto:likeliest.complexions.stephen@blacksapphire.com" target="_blank">likeliest.complexions.<u></u>stephen@blacksapphire.com</a>>>><br>
<br>
wrote:<br>
<br>
Hi all,<br>
<br>
A couple of months<br>
ago I got some patches<br>
applied to GHC<br>
mainline for the ability to cross<br>
compile to iOS.<br>
I've been doing other things and<br>
now I want to test<br>
those changes. The trouble<br>
is, I am having<br>
Apple trouble and I can't get<br>
Xcode to work.<br>
<br>
If anyone is<br>
interested in testing it for me,<br>
I'd appreciate it.<br>
<br>
The patch attached<br>
here needs to be applied to<br>
GHC head. Using<br>
this, I was able to get the<br>
cross compiler to<br>
build. The instructions are here:<br>
<br></div>
<a href="http://ghc.haskell.org/trac/____ghc/wiki/Building/____CrossCompiling/iOS" target="_blank">http://ghc.haskell.org/trac/__<u></u>__ghc/wiki/Building/____<u></u>CrossCompiling/iOS</a><br>
<<a href="http://ghc.haskell.org/trac/__ghc/wiki/Building/__CrossCompiling/iOS" target="_blank">http://ghc.haskell.org/trac/_<u></u>_ghc/wiki/Building/__<u></u>CrossCompiling/iOS</a>><div class="im">
<br>
<br>
<br>
<<a href="http://ghc.haskell.org/trac/__ghc/wiki/Building/__CrossCompiling/iOS" target="_blank">http://ghc.haskell.org/trac/_<u></u>_ghc/wiki/Building/__<u></u>CrossCompiling/iOS</a><br>
<<a href="http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS" target="_blank">http://ghc.haskell.org/trac/<u></u>ghc/wiki/Building/<u></u>CrossCompiling/iOS</a>>><br>
<br>
<br>
Steve<br>
<br>
<br></div>
______________________________<u></u>___________________<div class="im"><br>
iPhone mailing list<br>
<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a><br>
<mailto:<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a>><br></div>
<mailto:<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a><br>
<mailto:<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a>>><br>
<br>
<a href="http://www.haskell.org/__mailman/listinfo/iphone" target="_blank">http://www.haskell.org/__<u></u>mailman/listinfo/iphone</a><br>
<<a href="http://www.haskell.org/mailman/listinfo/iphone" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/iphone</a>><br>
<br>
<br>
<br>
<br>
______________________________<u></u>___________________<div class="im"><br>
iPhone mailing list<br>
<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a><br>
<mailto:<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a>><br></div>
<mailto:<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a><br>
<mailto:<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/__<u></u>mailman/listinfo/iphone</a><br>
<<a href="http://www.haskell.org/mailman/listinfo/iphone" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/iphone</a>><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote>
</blockquote></div><br></div>