[GHC] #10110: Compiling unit fails with Loading temp shared object failed
GHC
ghc-devs at haskell.org
Sat Mar 14 08:07:28 UTC 2015
#10110: Compiling unit fails with Loading temp shared object failed
-------------------------------------+-------------------------------------
Reporter: trommler | Owner: trommler
Type: bug | Status: patch
Priority: highest | Milestone: 7.10.1
Component: Template Haskell | Version: 7.10.1-rc2
Resolution: | Keywords:
Operating System: Linux | Architecture:
Type of failure: Compile-time | Unknown/Multiple
crash | Test Case:
Blocked By: | Blocking:
Related Tickets: #10058 | Differential Revisions: Phab:D731
-------------------------------------+-------------------------------------
Comment (by Herbert Valerio Riedel <hvr@…>):
In [changeset:"1b7f59769052fd8193c6acc561216e070d0ca335/ghc"]:
{{{
#!CommitTicketReference repository="ghc"
revision="1b7f59769052fd8193c6acc561216e070d0ca335"
Link temporary shared objects with `--no-as-needed`
Some ELF link editors default to `--as-needed` and record only
those libraries in DT_NEEDED tags that are needed to resolve
undefined symbols in the shared object to be created.
In Template Haskell we rely on all symbols that were defined
in modules compiled so far to be available in the current
temporary shared object. To prevent the link editor from
dropping the DT_NEEDED tag for the previously linked temporary
shared object we need to override the link editors default and
specify `--no-as-needed` on the command line. This is for GNU ld
and GOLD ld.
This addresses #10110
TODO: regression test
Reviewed By: hvr
Differential Revision: https://phabricator.haskell.org/D731
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10110#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list