[GHC] #8976: dll-split: internal error: evacuate(static): strange closure type 0
GHC
ghc-devs at haskell.org
Sun Dec 14 20:42:02 UTC 2014
#8976: dll-split: internal error: evacuate(static): strange closure type 0
----------------------------------------------+---------------------------
Reporter: juhpetersen | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.10.1
Component: Driver | Version: 7.8.1
Resolution: | Keywords:
Operating System: Linux | Architecture: arm
Type of failure: Building GHC failed | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets: #9268
Differential Revisions: |
----------------------------------------------+---------------------------
Comment (by nomeata):
I managed to build 7.8.4-rc1 by telling GHC to use gold as the linker.
Unfortunately, this was not straight forward, as setting
CONF_GCC_LINKER_OPTS_STAGE2 using this patch had knock-on-effects:
{{{
Index: ghc-7.8.3.20141119/aclocal.m4
===================================================================
--- ghc-7.8.3.20141119.orig/aclocal.m4 2014-12-08 18:49:28.207171714
+0100
+++ ghc-7.8.3.20141119/aclocal.m4 2014-12-08 19:03:06.815522917
+0100
@@ -553,6 +553,10 @@
$3="$$3 -D_HPUX_SOURCE"
$5="$$5 -D_HPUX_SOURCE"
;;
+ arm*)
+ # On arm, link using gold
+ $3="$$3 -fuse-ld=gold"
+ ;;
esac
# If gcc knows about the stack protector, turn it off.
}}}
See #9873 for these problems and my (work-around-quality) patch.
> I guess it would be good to force the ARM build to use the gold
> linker for dyn linking, at least when the bfd linker is "broken".
Probably yes.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8976#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list