-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nix fails to cross-compile for armv7 due to it using cross-compiled perl during the build #34273
Comments
Which derivation is failing? |
@bgamari /nix/store/7fmg0krqwmza9d1knwzwm952ch6a03yd-perl-DBI-1.636-arm-unknown-linux-gnueabihf.drv
|
Probably need two Perls |
FWIW the |
Also nixUnstable'll need something like: From aca3099aba50cd68e2faddd2107edfbf585beeff Mon Sep 17 00:00:00 2001
From: Will Dietz <[email protected]>
Date: Sun, 28 Jan 2018 09:46:12 +0900
Subject: [PATCH] aws-sdk-cpp: disable tests on cross
---
pkgs/development/libraries/aws-sdk-cpp/default.nix | 1 +
1 file changed, 1 insertion(+)
diff --git a/pkgs/development/libraries/aws-sdk-cpp/default.nix b/pkgs/development/libraries/aws-sdk-cpp/default.nix
index 47d9e7dba4c..26511c22d0b 100644
--- a/pkgs/development/libraries/aws-sdk-cpp/default.nix
+++ b/pkgs/development/libraries/aws-sdk-cpp/default.nix
@@ -33,6 +33,7 @@ in stdenv.mkDerivation rec {
cmakeFlags =
lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"
+ ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "-DENABLE_TESTING=OFF"
++ lib.optional (apis != ["*"])
"-DBUILD_ONLY=${lib.concatStringsSep ";" apis}";
--
2.16.1 |
Also can just do |
Now builds just fine with
|
Issue description
Error is
Cross-compiling from x86
Steps to reproduce
With latest master(4fec62d):
@Ericson2314 @bgamari
The text was updated successfully, but these errors were encountered: