[GHC] #8266: Dynamic linking on Mac

GHC ghc-devs at haskell.org
Fri Jan 10 00:20:03 UTC 2014


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

Comment (by kazu-yamamoto):

 I confirmed that @rpath is not used at this moment. Here is an example:

 {{{
 % otool -L libHSsyb-0.4.1-ghc7.7.20140108.dylib
 libHSsyb-0.4.1-ghc7.7.20140108.dylib:
         /Users/kazu/work/ghc-mod/.cabal-sandbox/lib/x86_64-osx-
 ghc-7.7.20140108/syb-0.4.1/libHSsyb-0.4.1-ghc7.7.20140108.dylib
 (compatibility version 0.0.0, current version 0.0.0)
 }}}

 But note that this works without any problems.

 I applied darchon's patch, fully built GHC, and re-install cabal-install
 with the new GHC and Cabal. Unfortunately, this new cabal-install does now
 work well. For instance, syb becames:

 {{{
 % otool -L libHSsyb-0.4.1-ghc7.7.20140108.dylib
 libHSsyb-0.4.1-ghc7.7.20140108.dylib:
 /private/var/folders/k0/548g5xg90jjfbrj5j09nvwv80000gq/T/syb-0.4.1-34816/syb-0.4.1/dist
 /dist-sandbox-a0e7ff68/build/libHSsyb-0.4.1-ghc7.7.20140108.dylib
 (compatibility version 0.0.0, current version 0.0.0)
 }}}

 So, libraries depending on syb cannot be installed.

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


More information about the ghc-tickets mailing list