From ab85f1bf578ed59548aeb2cfc61958a3b43f8398 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sat, 19 Sep 2020 10:37:29 +0200 Subject: [PATCH] haskell.compiler.ghc865Binary: disable stripping once again on ARMv8 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 #97407. --- pkgs/development/compilers/ghc/8.6.5-binary.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/compilers/ghc/8.6.5-binary.nix b/pkgs/development/compilers/ghc/8.6.5-binary.nix index 41af279e83ffc2..e503146e48fcae 100644 --- a/pkgs/development/compilers/ghc/8.6.5-binary.nix +++ b/pkgs/development/compilers/ghc/8.6.5-binary.nix @@ -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 ''