
#13810: Gold linker fails ---------------------------------+---------------------------------------- Reporter: ksaric | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: linker Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Comment (by bgamari): I'm looking at the example described in the ticket summary: The issue here is that the library component was registered with (quoting `ghc-pkg dump`), {{{ ld-options: -fuse-ld=gold }}} Consequently, when we go to link the executable GHC will add this flag to its usual link flags, the latter of which assume that we are using BFD `ld`. Frankly, I don't see any better way to handle this beyond just teaching GHC to use `ld` when possible. I'm working on this (see #13541) but unfortunately it isn't likely that this will make the already-terribly- late 8.2.1. We may be able to work it in to 8.2.2 if we hear very vocal support from users, however. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13810#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler