[GHC] #8266: Dynamic linking on Mac

GHC ghc-devs at haskell.org
Wed Sep 11 02:41:52 CEST 2013


#8266: Dynamic linking on Mac
------------------------------+--------------------------------------------
       Reporter:  kazu-       |             Owner:
  yamamoto                    |            Status:  new
           Type:  bug         |         Milestone:
       Priority:  highest     |           Version:  7.7
      Component:  Build       |  Operating System:  MacOS X
  System                      |   Type of failure:  GHC doesn't work at all
       Keywords:              |         Test Case:
   Architecture:              |          Blocking:
  Unknown/Multiple            |
     Difficulty:  Unknown     |
     Blocked By:              |
Related Tickets:              |
------------------------------+--------------------------------------------
 Many dynamic libraries refer to the build tree.

 (1) Every ".dylib" installed with GHC head refers to itself in its build
 directory. E.g.

 {{{
 % otool -L libHSbase-4.7.0.0-ghc7.7.20130909.dylib | grep base
 libHSbase-4.7.0.0-ghc7.7.20130909.dylib:
         /Users/kazu/work/ghc/libraries/base/dist-
 install/build/libHSbase-4.7.0.0-ghc7.7.20130909.dylib (compatibility
 version 0.0.0, current version 0.0.0)
 }}}

 (2) Some ".dylib" installed with GHC head refers to other libraries in
 their build directories. E.g.

 {{{
 % otool -L libHSvector-0.9.1-ghc7.7.20130909.dylib | grep /Users
         /Users/kazu/work/ghc/libraries/vector/dist-
 install/build/libHSvector-0.9.1-ghc7.7.20130909.dylib (compatibility
 version 0.0.0, current version 0.0.0)
         /Users/kazu/work/ghc/libraries/primitive/dist-
 install/build/libHSprimitive-0.4.0.1-ghc7.7.20130909.dylib (compatibility
 version 0.0.0, current version 0.0.0)
 }}}

 (3) All user installed libraries by cabal-install refer to other libraries
 in their build directories. E.g.

 {{{
 % otool -L libHSghc-paths-0.1.0.9-ghc7.7.20130909.dylib| grep Users
         /Users/kazu/Library/Haskell/ghc-7.7.20130909/lib/ghc-
 paths-0.1.0.9/lib/libHSghc-paths-0.1.0.9-ghc7.7.20130909.dylib
 (compatibility version 0.0.0, current version 0.0.0)
         /Users/kazu/work/ghc/libraries/base/dist-
 install/build/libHSbase-4.7.0.0-ghc7.7.20130909.dylib (compatibility
 version 0.0.0, current version 0.0.0)
         /Users/kazu/work/ghc/libraries/integer-gmp/dist-install/build
 /libHSinteger-gmp-0.5.1.0-ghc7.7.20130909.dylib (compatibility version
 0.0.0, current version 0.0.0)
         /Users/kazu/work/ghc/libraries/ghc-prim/dist-install/build
 /libHSghc-prim-0.3.1.0-ghc7.7.20130909.dylib (compatibility version 0.0.0,
 current version 0.0.0)
 }}}

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



More information about the ghc-tickets mailing list