[GHC] #8266: Dynamic linking on Mac

GHC ghc-devs at haskell.org
Thu Nov 28 09:30:26 UTC 2013


#8266: Dynamic linking on Mac
--------------------------------------------+------------------------------
        Reporter:  kazu-yamamoto            |            Owner:
            Type:  bug                      |  thoughtpolice
        Priority:  highest                  |           Status:  closed
       Component:  Build System             |        Milestone:  7.8.1
      Resolution:  fixed                    |          Version:  7.7
Operating System:  MacOS X                  |         Keywords:
 Type of failure:  GHC doesn't work at all  |     Architecture:
       Test Case:                           |  Unknown/Multiple
        Blocking:                           |       Difficulty:  Unknown
                                            |       Blocked By:
                                            |  Related Tickets:
--------------------------------------------+------------------------------

Comment (by amosrobinson):

 Ok, fair enough. It would be nice if we could get it working without
 having to `make install` - I don't know about other people, but this is my
 method of having multiple versions of ghc to test against.

 Here's the output of otool. Not sure if it's of much help:

 {{{
 kallisti:t amos$ otool -L Main
 Main:
         @rpath/base-4.7.0.0/libHSbase-4.7.0.0-ghc7.7.20131125.dylib
 (compatibility version 0.0.0, current version 0.0.0)
         @rpath/integer-gmp-0.5.1.0/libHSinteger-
 gmp-0.5.1.0-ghc7.7.20131125.dylib (compatibility version 0.0.0, current
 version 0.0.0)
         @rpath/ghc-prim-0.3.1.0/libHSghc-
 prim-0.3.1.0-ghc7.7.20131125.dylib (compatibility version 0.0.0, current
 version 0.0.0)
         @rpath/rts-1.0/libHSrts-ghc7.7.20131125.dylib (compatibility
 version 0.0.0, current version 0.0.0)
         @rpath/rts-1.0/libffi.dylib (compatibility version 7.0.0, current
 version 7.0.0)
         /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current
 version 7.0.0)
         /usr/local/lib/libgmp.10.dylib (compatibility version 12.0.0,
 current version 12.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 }}}

 The other thing is, the only reason I started compiling with `-dynamic`
 was because I was getting errors about missing `.dyn_o`. Something about
 template haskell? I don't really understand.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8266#comment:24>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list