[GHC] #12479: build fail of commercialhaskell.com with stack build on mac os x sierra beta 4

GHC ghc-devs at haskell.org
Mon Sep 26 17:05:42 UTC 2016


#12479: build fail of commercialhaskell.com with stack build on mac os x sierra
beta 4
-------------------------------------+-------------------------------------
        Reporter:  stephenb          |                Owner:
            Type:  bug               |               Status:  infoneeded
        Priority:  highest           |            Milestone:  8.0.2
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  MacOS X           |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash                              |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #12198            |  Differential Rev(s):  Phab:D2532
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 So I think there are three places in total where RPATHs are chosen.

 * In GHC, when building a temporary shared library to load the current
 package for ghci or TH.

 * In GHC, when doing the final link of a dynamic executable or library
 using `-dynload system` (the default)

 * In Cabal, when doing the final link of a dynamic executable or library
 (invoking GHC with `-dynload deploy` and explicit `-optl` options to set
 the RPATH)

 The first issue is essentially local, since the temporary shared library
 is needed just once. But the other two issues are not, and changing the
 way we set up the RPATHs and install names has side effects, for example
 in the case darchon mentioned above, or for someone who deploys their
 application with all the Haskell libraries in a single directory. So it's
 a bit of a sticky situation.

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


More information about the ghc-tickets mailing list