
#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: | -------------------------------------+------------------------------------- Changes (by aosivitz): * cc: aosivitz (added) Comment: Sorry for the delay- I forgot to add myself to CC and didn't see your message. So I have now successfully reproduced the problem in a clean environment with bitemyapp's help. The missing piece is that it fails during template haskell compilation, but I'm a little confused at to why. It makes sense, of course, that template-haskell compilation would involve some dynamic linking in order to run the code, but if the number of dependencies is the problem, doesn't that imply TH links all of its dependencies dynamically? What is the advantage of dynamic linking here instead of just statically linking for TH? Here's a github gist for a shell script that generates a giant stack project (with 150 generated dependencies) that triggers the panic: https://gist.github.com/asivitz/f4b983b2374a6155ac4faaf9b61aca59 I'm not sure the best way to do the same thing without using stack, but if you have an idea I can do that. Thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14444#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler