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

GHC ghc-devs at haskell.org
Tue Oct 4 16:55:36 UTC 2016


#12479: build fail of commercialhaskell.com with stack build on mac os x sierra
beta 4
-------------------------------------+-------------------------------------
        Reporter:  stephenb          |                Owner:
            Type:  bug               |               Status:  new
        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 bgamari):

 darchon said,
 > * For OSX only, change the default `--libsubdir` to `.`, i.e. equal to
 `$libdir`.
 > * Update GHCs `Makefile`, so that, on OS X, `make install` puts the
 .dylib/.so/.a in `$libdir`.

 I'm not sure we want to limit this to OS X. Having many `RPATH`
 directories is also a startup performance issue on Linux (and likely other
 platforms) since the dynamic linker does a linear search through every
 `RPATH` directory for every library it needs to load. This was noticed in
 #11587.

 The solution to this is to move all dynamic libraries into `$libdir`, as
 you suggest.

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


More information about the ghc-tickets mailing list