[GHC] #10682: AArch64: dll-split: out of memory (requested 1099512676352 bytes)
GHC
ghc-devs at haskell.org
Tue Aug 25 00:47:49 UTC 2015
#10682: AArch64: dll-split: out of memory (requested 1099512676352 bytes)
----------------------------------------+----------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.12.1
Component: Compiler | Version: 7.11
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: aarch64
Type of failure: Building GHC failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
----------------------------------------+----------------------------------
Comment (by erikd):
On aarch64-linux, applying this patch:
{{{
diff --git a/rts/sm/HeapAlloc.h b/rts/sm/HeapAlloc.h
index c914b5d..90a55d1 100644
--- a/rts/sm/HeapAlloc.h
+++ b/rts/sm/HeapAlloc.h
@@ -52,7 +52,7 @@
#ifdef USE_LARGE_ADDRESS_SPACE
extern W_ mblock_address_space_begin;
-# define MBLOCK_SPACE_SIZE ((StgWord)1 << 40) /* 1 TB */
+# define MBLOCK_SPACE_SIZE ((StgWord)1 << 38) /* 1/4 TB */
# define HEAP_ALLOCED(p) ((W_)(p) >= mblock_address_space_begin &&
\
(W_)(p) < (mblock_address_space_begin +
\
MBLOCK_SPACE_SIZE))
}}}
fixes the build. @kgardas, does this fix amd64-solaris as well?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10682#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list