Hi,

Change your /usr/bin/ghc to

#!/bin/sh

exec /Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/ghc -optc-m32 -opta-m32 -optl-m32 -B/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/. -dynload wrapped ${1+"$@"}

The options -optc-m32 -opta-m32 -optl-m32 must be added.

Christophe.


Hi All.
I think this is a not new question, but probably a missed it.

On my MacOS X 10.5 (32 bit) I use GHC 6.10.4 (installed by Mac package GHC-6.10.4-i386.pkg) to build some halkell programs and all is fine. Yesterday I've updated the system to MacOS X 10.6 (64 bit) and now when I try to build the same programs I get the errors:

/var/folders/vr/vrW2wwvtFKScalkhVEWujE+++TI/-Tmp-/ghc1613_0/ghc1613_0.s:1167:0:
    32-bit absolute addressing is not supported for x86-64

/var/folders/vr/vrW2wwvtFKScalkhVEWujE+++TI/-Tmp-/ghc1613_0/ghc1613_0.s:1167:0:
    cannot do signed 4 byte relocation

/var/folders/vr/vrW2wwvtFKScalkhVEWujE+++TI/-Tmp-/ghc1613_0/ghc1613_0.s:1170:0:
    32-bit absolute addressing is not supported for x86-64

/var/folders/vr/vrW2wwvtFKScalkhVEWujE+++TI/-Tmp-/ghc1613_0/ghc1613_0.s:1170:0:
    cannot do signed 4 byte relocation

Is there any solution to continue to use the installed GHC on the new 64 bit system? 

Thanks in advance for any answer.

Luca
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users