Skip to content

AArch64 : ghc-stage2 segfaults compiling libraries/parallel

Compiling git HEAD (e02ef0e6) 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.

Trac metadata
Trac field Value
Version 7.11
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information