[Haskell-iPhone] build troubles with ghc-ios

Stefan Kersten sk at k-hornz.de
Sun Mar 24 17:35:55 CET 2013


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)





More information about the iPhone mailing list