[GHC] #8266: Dynamic linking on Mac
GHC
ghc-devs
Thu Oct 3 09:18:10 UTC 2013
#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 darchon):
Replying to [comment:7 kazu-yamamoto]:
> Wait. A program compiled with dynamic linking cannot search its
libraries:
>
> {{{
> % cat test.hs
> main = putStrLn "Hello"
> % ghc -fforce-recomp -dynamic test.hs
> % ./test
> dyld: Library not loaded:
@rpath/base-4.7.0.0/libHSbase-4.7.0.0-ghc7.7.20131001.dylib
> Referenced from: /Users/kazu/./test
> Reason: image not found
> zsh: trace trap ./test
> }}}
Indeed, my patch does not resolve that problem, as I considered it as
something separate from the reported bug.
My patch only touches the built/make system, and only removes references
to the built tree in the created libraries.
I want to note that the problem you describe in your comment also occurs
in the current, unpatched, version of ghc.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8266#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list