<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>Change your /usr/bin/ghc to</div><div><br></div><div><div>#!/bin/sh</div><div><br></div><div>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+"$@"}</div><div><br></div><div>The options&nbsp;-optc-m32 -opta-m32 -optl-m32 must be added.</div><div><br></div><div>Christophe.</div><div><br></div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi All.<div>I think this is a not new question, but probably a missed it.</div><div><br></div><div>On my MacOS X 10.5 (32 bit) I use GHC 6.10.4 (installed by Mac package&nbsp;<span class="Apple-style-span" style="font-family: sans-serif; "><a href="http://haskell.org/ghc/dist/6.10.4/GHC-6.10.4-i386.pkg" style="color: rgb(0, 0, 224); text-decoration: underline; ">GHC-6.10.4-i386.pkg</a><span class="Apple-style-span" style="font-family: Helvetica; ">) 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:</span></span></div><div><br></div><div><div>/var/folders/vr/vrW2wwvtFKScalkhVEWujE+++TI/-Tmp-/ghc1613_0/ghc1613_0.s:1167:0:</div><div>&nbsp;&nbsp; &nbsp;32-bit absolute addressing is not supported for x86-64</div><div><br></div><div>/var/folders/vr/vrW2wwvtFKScalkhVEWujE+++TI/-Tmp-/ghc1613_0/ghc1613_0.s:1167:0:</div><div>&nbsp;&nbsp; &nbsp;cannot do signed 4 byte relocation</div><div><br></div><div>/var/folders/vr/vrW2wwvtFKScalkhVEWujE+++TI/-Tmp-/ghc1613_0/ghc1613_0.s:1170:0:</div><div>&nbsp;&nbsp; &nbsp;32-bit absolute addressing is not supported for x86-64</div><div><br></div><div>/var/folders/vr/vrW2wwvtFKScalkhVEWujE+++TI/-Tmp-/ghc1613_0/ghc1613_0.s:1170:0:</div><div>&nbsp;&nbsp; &nbsp;cannot do signed 4 byte relocation</div><div><br></div><div>Is there any solution to continue to use the installed GHC on the new 64 bit system?&nbsp;</div><div><br></div><div>Thanks in advance for any answer.</div><div><br></div><div>Luca</div></div></div>_______________________________________________<br>Glasgow-haskell-users mailing list<br><a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>http://www.haskell.org/mailman/listinfo/glasgow-haskell-users<br></blockquote></div><br></div></body></html>