From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:59116) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0MQT-0008C1-14 for guix-patches@gnu.org; Wed, 21 Aug 2019 04:57:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0MQS-0005oh-3c for guix-patches@gnu.org; Wed, 21 Aug 2019 04:57:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54168) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0MQR-0005o8-HA for guix-patches@gnu.org; Wed, 21 Aug 2019 04:57:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i0MQR-0006ge-EY for guix-patches@gnu.org; Wed, 21 Aug 2019 04:57:03 -0400 Subject: [bug#36477] [PATCH v2 39/61] gnu: make-linux-libre: Fix cross-compilation. Resent-Message-ID: From: Mathieu Othacehe Date: Wed, 21 Aug 2019 10:54:33 +0200 Message-Id: <20190821085455.18508-39-m.othacehe@gmail.com> In-Reply-To: <20190821085455.18508-1-m.othacehe@gmail.com> References: <20190821085455.18508-1-m.othacehe@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 36477@debbugs.gnu.org Cc: Mathieu Othacehe * gnu/packages/linux.scm (make-linux-libre)[arguments]: Unset CROSS_CPATH to make sure that cross-libc is not found. Otherwise, some of its header would conflict with the one from linux (stdint.h and linux/types.h). --- gnu/packages/linux.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 0036b85e4d..ac7312bcd0 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -665,6 +665,9 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration." (replace 'configure (lambda* (#:key inputs native-inputs target #:allow-other-keys) ;; Avoid introducing timestamps + ,@(if (%current-target-system) + '((unsetenv "CROSS_CPATH")) + '()) (setenv "KCONFIG_NOTIMESTAMP" "1") (setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH")) -- 2.17.1