[Haskell-iPhone] Can anyone help me test GHC-iOS compiler?

Luke Iannini lukexipd at gmail.com
Fri Aug 9 10:00:33 CEST 2013


OK, I'm underway on this.

First roadbump was:

"inplace/bin/ghc-stage1" -static  -H32m -O -Iincludes -Iincludes/dist
-Iincludes/dist-derivedconstants/header
-Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build
-DCOMPILING_RTS -package-name rts -dcmm-lint      -i -irts
-irts/dist/build -irts/dist/build/autogen -Irts/dist/build
-Irts/dist/build/autogen           -O2    -c rts/Apply.cmm -o
rts/dist/build/Apply.o
You are using a new version of LLVM that hasn't been tested yet!
We will try though...

/usr/local/bin/llc: : error: unable to get target for
'arm-apple-darwin10', see --version and --triple.


which I figured out were because the homebrew LLVM 3.4 only includes host
platforms by default (x86/x86-64)
Reinstalling it with all-targets enables them all:
brew install llvm --with-clang --all-targets --HEAD

Trying again now.




On Thu, Aug 8, 2013 at 5:29 PM, Luke Iannini <lukexipd at gmail.com> wrote:

> Update: I've got GHC HEAD building on 10.9 again, tonight I'll dive into
> the iOS patch!
> Cheers
> Luke
>
>
> On Wed, Aug 7, 2013 at 9:12 PM, Carter Schonwald <
> carter.schonwald at gmail.com> wrote:
>
>> if you're on 10.8, just DL the 4.6 CLI tools to get things working again.
>>
>> If you're on 10.9, you'll need to use recent GHC head + CLANG HEAD, (ok,
>> the most recent XCODE 5 dev preview CLI tools may have all the needed clang
>> patches, but thats still needing its own validation, orthogonal to the IOS
>> related issues )
>>
>>
>> On Tue, Aug 6, 2013 at 7:06 PM, Luke Iannini <lukexipd at gmail.com> wrote:
>>
>>> Hi Stephen,
>>>
>>> I installed 10.9 for another project and thus am in the middle of fixing
>>> up my system to be able to build GHC again, but I think I'm close — as soon
>>> as I have it going I'll try this.
>>>
>>> In the meantime someone still on 10.8 should definitely try the patch!
>>>
>>> Hope you're great!
>>> Luke
>>>
>>>
>>>  On Tue, Aug 6, 2013 at 6:42 PM, Stephen Blackheath [to GHC-iPhone] <
>>> likeliest.complexions.stephen at blacksapphire.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> A couple of months ago I got some patches applied to GHC mainline for
>>>> the ability to cross compile to iOS. I've been doing other things and now I
>>>> want to test those changes. The trouble is, I am having Apple trouble and I
>>>> can't get Xcode to work.
>>>>
>>>> If anyone is interested in testing it for me, I'd appreciate it.
>>>>
>>>> The patch attached here needs to be applied to GHC head. Using this, I
>>>> was able to get the cross compiler to build. The instructions are here:
>>>>
>>>> http://ghc.haskell.org/trac/**ghc/wiki/Building/**CrossCompiling/iOS<http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS>
>>>>
>>>>
>>>> Steve
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/iphone/attachments/20130809/7f829fdb/attachment.htm>


More information about the iPhone mailing list