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

GHC ghc-devs at haskell.org
Sun Sep 18 14:44:47 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:  normal            |            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):

 We did some investigation last night in IRC and came to the conclusion
 that the runtime loader in Sierra has a new limit on the `sizeofcmds`
 field which is the total size of all the load commands in the dynamic
 library. Looking at the `otool -l` output in an earlier attachment, we can
 see that the main contributors to the size are primarily the RPATH entries
 and to a lesser extent the LOAD_DYLIB entries. There are over 100 of each,
 and the paths in the RPATH entries are quite long (I guess this is why
 stack is affected in particular).

 So, I don't expect that disabling split objects will help at all,
 unfortunately. There seems to just be a limit on the total size of RPATH
 entries we can use.

 In fact Cabal is the one choosing these RPATHs, not GHC itself. So this
 will require some kind of change to Cabal to decrease the total size of
 the RPATH entries it produces.

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


More information about the ghc-tickets mailing list