[GHC] #8266: Dynamic linking on Mac

GHC ghc-devs at haskell.org
Thu Nov 28 03:19:16 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):

 It looks like this is still an issue:
 {{{
 % ghc Main.hs -dynamic
 % ./Main
 dyld: Library not loaded:
 @rpath/base-4.7.0.0/libHSbase-4.7.0.0-ghc7.7.20131125.dylib
   Referenced from: /Users/amos/ghc/ghc-head/libraries/dph/dph-
 examples/t/./Main
   Reason: image not found
 Trace/BPT trap: 5
 }}}

 I don't have the libraries in `ghc-head/inplace/lib` or `ghc-head/lib` -
 only in `ghc-head/bindisttest/install\ \ \ dir/lib/`.
 This is the incantation I needed to get a dynamic to work:

 {{{
 ghc Main.hs -dynamic -optl "-Wl,-rpath,/Users/amos/ghc/ghc-
 head/bindisttest/install   dir/lib/ghc-7.7.20131125/"
 }}}

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


More information about the ghc-tickets mailing list