Skip to content

Commit

Permalink
haskell.compiler.ghc865Binary: disable stripping once again on ARMv8
Browse files Browse the repository at this point in the history
There seems to be a latent bug with strip + patchelf on the GHC stage2
binary which got triggered again by patchelf 0.12. Until this is
properly fixed in patchelf, re-disable stripping.

Fixes NixOS#97407.
  • Loading branch information
delroth committed Sep 19, 2020
1 parent e8e8d7c commit ab85f1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/compilers/ghc/8.6.5-binary.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ stdenv.mkDerivation rec {
# calls install-strip ...
dontBuild = true;

# Stripping exposes a latent bug in patchelf (0.12, but possibly older
# versions too) and causes the resulting ghc binary to crash on ARMv8 when
# getting loaded by the dynamic linker. See #97407.
dontStrip = stdenv.hostPlatform.isAarch64;

# On Linux, use patchelf to modify the executables so that they can
# find editline/gmp.
postFixup = stdenv.lib.optionalString stdenv.isLinux ''
Expand Down

0 comments on commit ab85f1b

Please sign in to comment.