#5293: Linker error from integer-gmp (OS X 10.7)
-------------------------------+--------------------------------------------
    Reporter:  jhenahan        |       Owner:                         
        Type:  bug             |      Status:  new                    
    Priority:  normal          |   Component:  Compiler               
     Version:  7.0.4           |    Keywords:                         
    Testcase:                  |   Blockedby:                         
          Os:  MacOS X         |    Blocking:                         
Architecture:  x86_64 (amd64)  |     Failure:  GHC doesn't work at all
-------------------------------+--------------------------------------------
 I recently upgraded to the latest dev build of OS X Lion and Xcode 4.2,
 and I've been
 having some linking issues related to `integer-gmp`. I installed
 `ghc-7.0.4-x86_64` from
 the .pkg with no apparent problems, but running `ghc --make test.hs`
 (where test.hs is
 simply `main = print "Hello, World!"` (attached, for convenience))
 produces the following:

 {{{
 Linking test ...
 ld: warning: could not create compact unwind for _ffi_call_unix64: does
 not use RBP or
 RSP based frame
 ld: illegal text reloc to ___gmp_modlimb_invert_table from
 /Library/Frameworks/GHC.framework/Versions/7.0.4-x86_64/usr/lib/ghc-
 7.0.4/integer-gmp-0.2.0.3/libHSinteger-gmp-0.2.0.3.a(mp_minv_tab.o) in
 ___gmpn_modexact_1c_odd for architecture x86_64
 collect2: ld returned 1 exit status
 }}}

 The bit about the unwind was present on my Snow Leopard install with Xcode
 4.0.2, and
 there were never any problems. What ''is'' new is the illegal text reloc
 error. What little
 I've been able to find online seems to suggest that this is due to Xcode's
 linker now being
 a bit safer (read pickier) and giving errors where once it might have
 given warnings.

 I considered building `ghc HEAD`, but of course without a working `ghc`
 that's a bit of
 a futile effort.

 I understand that Dan Knapp (dankna) has also moved up to Lion and is
 having no such
 issue, so I am particularly curious about our differing experiences. It
 may be that the
 picky linker is only a product of the most recent dev build of Xcode, but
 I can't be sure.

 Any thoughts or pointers would be greatly appreciated. Also, apologies if
 I've put the ticket together incorrectly.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5293>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to