[GHC] #10174: AArch64 : ghc-stage2 segfaults compiling libraries/parallel
GHC
ghc-devs at haskell.org
Fri Mar 20 04:14:54 UTC 2015
#10174: AArch64 : ghc-stage2 segfaults compiling libraries/parallel
-------------------------------------+-------------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.12.1
Component: Compiler | Version: 7.11
Keywords: | Operating System: Unknown/Multiple
Architecture: aarch64 | Type of failure: Building GHC
Test Case: | failed
Blocking: | Blocked By:
Differential Revisions: | Related Tickets:
-------------------------------------+-------------------------------------
Compiling git HEAD (e02ef0e6d4eefa5f0) on AArch64 hardware using ghc-7.6.3
from Debian as the bootstrap compiler. LLVM is version 3.6.
It fails with:
{{{
"inplace/bin/ghc-stage2" -hisuf hi -osuf o -hcsuf hc -static -H64m -O0
-fllvm \
-this-package-key paral_2NTMt5X9WUG6LNupBFIZti -hide-all-packages -i \
-ilibraries/parallel/. -ilibraries/parallel/dist-install/build \
-ilibraries/parallel/dist-install/build/autogen \
-Ilibraries/parallel/dist-install/build \
-Ilibraries/parallel/dist-install/build/autogen
-Ilibraries/parallel/. \
-optP-include -optPlibraries/parallel/dist-
install/build/autogen/cabal_macros.h \
-package-key array_BLJREAlFJ4zJ2kSDphVieY -package-key
base_8gvrDSBdaidLA14EDtK6ja \
-package-key conta_1uqbEcrmZiO1C91Z8ePoyI -package-key
deeps_Bw45clVBNVT4S1LLyUOPfh \
-Wall -feager-blackholing -XHaskell2010 -O -fllvm -no-user-package-
db -rtsopts \
-odir libraries/parallel/dist-install/build \
-hidir libraries/parallel/dist-install/build \
-stubdir libraries/parallel/dist-install/build \
-dynamic-too -c libraries/parallel/./Control/Parallel/Strategies.hs \
-o libraries/parallel/dist-
install/build/Control/Parallel/Strategies.o \
-dyno libraries/parallel/dist-
install/build/Control/Parallel/Strategies.dyn_o
libraries/parallel/ghc.mk:5: recipe for target
'libraries/parallel/dist-install/build/Control/Parallel/Strategies.o'
failed
make[1]: *** [libraries/parallel/dist-
install/build/Control/Parallel/Strategies.o] Segmentation fault
}}}
It seems that `inplace/lib/bin/ghc-stage1` (which is working fine) is
statically linked to all the Haskell libraries where as `inplace/lib/bin
/ghc-stage2` is dynamically linked which would explain why stage1 works
fine and stage2 segfaults.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10174>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list