[GHC] #8976: dll-split: internal error: evacuate(static): strange closure type 0

GHC ghc-devs at haskell.org
Thu Mar 12 03:38:29 UTC 2015


#8976: dll-split: internal error: evacuate(static): strange closure type 0
-------------------------------------+-------------------------------------
        Reporter:  juhpetersen       |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:  7.12.1
       Component:  Driver            |                 Version:  7.8.1
      Resolution:                    |                Keywords:
Operating System:  Linux             |            Architecture:  arm
 Type of failure:  Building GHC      |               Test Case:
  failed                             |                Blocking:
      Blocked By:                    |  Differential Revisions:  Phab:D715
 Related Tickets:  #9268             |
-------------------------------------+-------------------------------------

Comment (by Erik de Castro Lopo <erikd@…>):

 In [changeset:"71fcc4c096ec0b575522e4c2d0104ef7a71a13c5/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="71fcc4c096ec0b575522e4c2d0104ef7a71a13c5"
 Use the gold linker for linux/ARM and android/ARM targets.

 Fixes #8976 and #9873 by making use of the Binutils ld.gold
 linker explicit whenever the target is linux/ARM or android/ARM.
 This does not affect iOS where Apple provides its own linker.

 In order to achieve this, we need to add `-fuse-ld=gold` to
 the SettingsCCompilerLinkFlags setting and set
 SettingsLdCommand to `ld.gold` (or `${target}-ld.gold` when
 cross-compiling). In addition, simplifying the use of
 `$(CONF_GCC_LINKER_OPTS_STAGEn)`.

 This patch was tested by ensuring that the following worked
 as expected:

   * Native builds on linux/x86_64 (nothing changed).
   * Native builds on linux/arm (and uses the gold linker).
   * Linux to linux/arm cross compiles (and uses the cross
     gold linker).

 Contributions by Ben Gamari, Joachim Breitner and Reid Barton.

 Reviewers: nomeata, bgamari, austin, rwbarton

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D715

 GHC Trac Issues: #8976 #9873
 }}}

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


More information about the ghc-tickets mailing list