diff options
author | AlexKnauth <alexander@knauth.org> | 2021-12-22 10:14:51 -0500 |
---|---|---|
committer | AlexKnauth <alexander@knauth.org> | 2021-12-22 10:14:51 -0500 |
commit | de2e77ec98e3686f31452003a4164a3740f1bd19 (patch) | |
tree | f9570ba42e4d04750919b0c14f72e752c37fe121 /pkgs/development/compilers/gambit | |
parent | 4c252f40af8391b4f5efec91db9c6daf1818bd45 (diff) |
gambit: disable stackprotector on aarch64-darwin for now
Diffstat (limited to 'pkgs/development/compilers/gambit')
-rw-r--r-- | pkgs/development/compilers/gambit/bootstrap.nix | 9 | ||||
-rw-r--r-- | pkgs/development/compilers/gambit/build.nix | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/compilers/gambit/bootstrap.nix b/pkgs/development/compilers/gambit/bootstrap.nix index ec963ab3b8d4..96e0acdc1fa7 100644 --- a/pkgs/development/compilers/gambit/bootstrap.nix +++ b/pkgs/development/compilers/gambit/bootstrap.nix @@ -15,6 +15,15 @@ gccStdenv.mkDerivation { buildInputs = [ autoconf ]; + # disable stackprotector on aarch64-darwin for now + # build error: + # ``` + # /private/tmp/nix-build-gambit-bootstrap-4.9.3.drv-0/ccbOVwnF.s:207:15: error: index must be an integer in range [-256, 255]. + # ldr x2, [x2, ___stack_chk_guard];momd + # ^ + # ``` + hardeningDisable = lib.optionals (gccStdenv.isAarch64 && gccStdenv.isDarwin) [ "stackprotector" ]; + configurePhase = '' export CC=${gcc}/bin/gcc CXX=${gcc}/bin/g++ \ CPP=${gcc}/bin/cpp CXXCPP=${gcc}/bin/cpp LD=${gcc}/bin/ld \ diff --git a/pkgs/development/compilers/gambit/build.nix b/pkgs/development/compilers/gambit/build.nix index d67e0053bbac..e592107adeca 100644 --- a/pkgs/development/compilers/gambit/build.nix +++ b/pkgs/development/compilers/gambit/build.nix @@ -35,6 +35,15 @@ gccStdenv.mkDerivation rec { # Or wrap relevant programs to add a suitable PATH ? #runtimeDeps = [ gnused gnugrep ]; + # disable stackprotector on aarch64-darwin for now + # build error: + # ``` + # /private/tmp/nix-build-gambit-unstable-2020-09-20.drv-0/ccIjyeeb.s:207:15: error: index must be an integer in range [-256, 255]. + # ldr x2, [x2, ___stack_chk_guard];momd + # ^ + # ``` + hardeningDisable = lib.optionals (gccStdenv.isAarch64 && gccStdenv.isDarwin) [ "stackprotector" ]; + configureFlags = [ "--enable-targets=${gambit-params.targets}" "--enable-single-host" |