[GHC] #14444: Linker limit on OS X Sierra breaks builds for big projects
GHC
ghc-devs at haskell.org
Wed Apr 18 23:18:17 UTC 2018
#14444: Linker limit on OS X Sierra breaks builds for big projects
-------------------------------------+-------------------------------------
Reporter: dredozubov | Owner: angerman
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
(Linking) |
Resolution: | Keywords:
Operating System: MacOS X | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by jship):
We have worked around this issue by following in the Nix folks' footsteps
and using a wrapper script around `ld` to recursively subdivide the
dependencies into a tree of re-exporting delegate libraries.
The script, an example using aosivitz repro, and more info about this
issue is available here:
https://github.com/Simspace/ld-wrapper-macos
The example in the repo shows how the wrapper script can be used to
successfully build a project with 750 direct dependencies.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14444#comment:19>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list