[Haskell-iPhone] build troubles with ghc-ios

Stephen Blackheath [to GHC-iPhone] likeliest.complexions.stephen at blacksapphire.com
Sun Mar 24 23:15:00 CET 2013


Stefan,

The master-merge-ios branch is much newer than the ghc-ios branch and 
works very well. There are some small changes required to base and to 
cabal. This contains what I am trying to get checked in to GHC mainline. 
I have to improve some of it, but it all works.

Here is what is going to be the instructions for building from mainline, 
except that it doesn't quite work yet.

Take a look at 
http://hackage.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS

I'd recommend you do this:

1. Checkout the master-merge-ios branch, then point your git repo at the 
main branch. Run perl boot and ./sync-all get

2. Apply this patch to base: http://hackage.haskell.org/trac/ghc/ticket/7759

3. Follow the instructions I gave in Building/CrossCompiling/iOS (the 
link above) to do with Cabal.

Then follow the rest of the instructions on how to build it. For 
convenience, the needed arm-apple-darwin10-* scripts are in a directory 
called arm-apple-darwin10/ in the master-merge-ios branch.


Steve

On 25/03/13 05:35, Stefan Kersten wrote:
> hi all,
>
> i'm having a hard time building ghc from the ghc-ios ios branch. i am using the script that has been posted recently on this list for checking out the correct versions of library packages [1]. below is the error i get for rts/PrimOps.cmm (libraries/ghc-prim/GHC/Generics.hs fails with a similar error); this is on osx 10.8.3 with xcode 4.6.1. i've tried compiling with ghc 7.4.1 and 7.4.2, both built for i386 and x86_64, respectively. does this look familiar to anybody?
>
> thanks,
> sk
>
> [1] https://github.com/pjones/ghc-ios-util/blob/master/ghc/checkout.sh
>
> "inplace/bin/ghc-stage1"   -H64m -O2 -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            -optc-O2    -c rts/PrimOps.cmm -o rts/dist/build/PrimOps.o
>
> /var/folders/qh/jdhbtx3x10jfrs0yq3qrfdx00000gn/T/ghc40705_0/ghc40705_0.s:3966:0:
>     bad immediate value for offset (6012)
>
> /var/folders/qh/jdhbtx3x10jfrs0yq3qrfdx00000gn/T/ghc40705_0/ghc40705_0.s:3960:0:
>     bad immediate value for offset (5992)
>
> /var/folders/qh/jdhbtx3x10jfrs0yq3qrfdx00000gn/T/ghc40705_0/ghc40705_0.s:3926:0:
>     bad immediate value for offset (5920)
>
> /var/folders/qh/jdhbtx3x10jfrs0yq3qrfdx00000gn/T/ghc40705_0/ghc40705_0.s:3920:0:
>     bad immediate value for offset (5900)
>
> /var/folders/qh/jdhbtx3x10jfrs0yq3qrfdx00000gn/T/ghc40705_0/ghc40705_0.s:3899:0:
>     bad immediate value for offset (5828)
>
> /var/folders/qh/jdhbtx3x10jfrs0yq3qrfdx00000gn/T/ghc40705_0/ghc40705_0.s:3886:0:
>     bad immediate value for offset (5788)
>
> /var/folders/qh/jdhbtx3x10jfrs0yq3qrfdx00000gn/T/ghc40705_0/ghc40705_0.s:3860:0:
>     bad immediate value for offset (5700)
>
>
>
> _______________________________________________
> iPhone mailing list
> iPhone at haskell.org
> http://www.haskell.org/mailman/listinfo/iphone
>



More information about the iPhone mailing list