GNU bug report logs - #36322
[PATCH 0/4] [core-updates] Fix cross-compiling bootstrap tarballs

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Marius Bakke <mbakke@HIDDEN>; Keywords: patch; dated Fri, 21 Jun 2019 12:25:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 36322 <at> debbugs.gnu.org:


Received: (at 36322) by debbugs.gnu.org; 21 Jun 2019 12:26:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 21 08:26:45 2019
Received: from localhost ([127.0.0.1]:49876 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1heIcv-0006tZ-Ae
	for submit <at> debbugs.gnu.org; Fri, 21 Jun 2019 08:26:45 -0400
Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:34459)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1heIcs-0006sn-1g
 for 36322 <at> debbugs.gnu.org; Fri, 21 Jun 2019 08:26:42 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.west.internal (Postfix) with ESMTP id 8A84E438
 for <36322 <at> debbugs.gnu.org>; Fri, 21 Jun 2019 08:26:36 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute5.internal (MEProxy); Fri, 21 Jun 2019 08:26:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
 from:to:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding; s=fm3; bh=nhXUgjQJsHOeV
 5i48MgPDTDHIF+QGkMPTeHtXP75PHo=; b=FAFLsCR9jYjuaGTuS7U5bAO8AxeP5
 QgNcTAiodti0GKOdCcNA3FBsQgRY7LpNAIirU19WvsLyKC8GC8qpBC+aUA+Zxkge
 cnuGJWrrqML5ggD86PEEidKJFjEJRPaoXthuLJq2N8WNNLGlhqG214cfFJC4tMzZ
 PdgBP1rQNF0NApw6i1aABtB5Hd22wVZbkIXnXwaOYHavKNx37Q0G2TJcp3ubVyqx
 krTlIziH5ku4yOJ7d24XXZ1Q8beDLIAQDD3BkggRVdqz2i1oJlrr8K9cGn6wJuuh
 fFVs03+5QyqZJ1qGyrOaIVrvSbH/CgxUUWyLqywq1sx8ZmNkba3rK/R2w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-transfer-encoding:date:from
 :in-reply-to:message-id:mime-version:references:subject:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm3; bh=nhXUgjQJsHOeV5i48MgPDTDHIF+QGkMPTeHtXP75PHo=; b=NW3R1LqC
 l+5Z6AbJXFNo8REAfzMGVU/ozGRaQBpalpgKhD4Vu+I2iXp3vjEAda0rAfDUghZT
 PGl0G9sEOpnHw5/kabLmX9fDX/44C1rFRXy/kee9JeUAa39bs5iDtnVlNcKA3k67
 EVuWKYuaqibx0VLRnj6e+pgx8EkAXvmUwYGLgDDnio/OjKxcixvWd82FmwegMZOJ
 JEYrFNX74VG1XXEgVnwuIf8ryHBseF5jk2p+6xOvw54JpsThuDN2W987PjISHlgV
 IPNvW3EMB3zo/T9EWV4SoLu/QNFBbInYtx40PGX897H7CNBunhAsGfVZosvNEQLP
 HfNct8L0KPZuOA==
X-ME-Sender: <xms:_MwMXeyfCNAz5Tud1RlYus3TkCFRsJE5MKHB_-5ZHxS9Kj7G9y6MEg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtdeigdehhecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd
 ertddtnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshht
 mhgrihhlrdgtohhmqeenucfkphepiedvrdduiedrvddviedrudegtdenucfrrghrrghmpe
 hmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtghomhenucevlhhushht
 vghrufhiiigvpedu
X-ME-Proxy: <xmx:_MwMXfS8D6-unJdvSqWotqd1r82tJpYzTKAfdsBgURf1mw0p63Yfxw>
 <xmx:_MwMXRNz05EkBqYjr7N9J6sj3hQtMlol4mx5sPkjO3aAMQwGsEpZgA>
 <xmx:_MwMXaRUrXTHHBkm5bck-qLOwFl4HOjA6BOnTXMxaWf63S-nDYVDtQ>
 <xmx:_MwMXUc9xYfgYjHUEhgVo_GHviC7pEksCVdAeezAL42JcLs-FXHA2Q>
Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140])
 by mail.messagingengine.com (Postfix) with ESMTPA id 9FBAD380083
 for <36322 <at> debbugs.gnu.org>; Fri, 21 Jun 2019 08:26:35 -0400 (EDT)
From: Marius Bakke <mbakke@HIDDEN>
To: 36322 <at> debbugs.gnu.org
Subject: [PATCH 4/4] gnu: bootstrap-tarballs: Don't include the native mes
 when cross-compiling.
Date: Fri, 21 Jun 2019 14:26:28 +0200
Message-Id: <20190621122628.18174-4-mbakke@HIDDEN>
X-Mailer: git-send-email 2.22.0
In-Reply-To: <20190621122628.18174-1-mbakke@HIDDEN>
References: <20190621122628.18174-1-mbakke@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 36322
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

* gnu/packages/make-bootstrap.scm (%bootstrap-tarballs)[inputs]: Check
%CURRENT-TARGET-SYSTEM when deciding whether to use the reduced binary seeds.
---
 gnu/packages/make-bootstrap.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index df6b828a2d..2163b646f6 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -825,7 +825,7 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
                    %build-inputs)
          #t)))
     (inputs `(("guile-tarball" ,%guile-bootstrap-tarball)
-              ,@(match (%current-system)
+              ,@(match (or (%current-target-system) (%current-system))
                   ((or "i686-linux" "x86_64-linux")
                    `(("bootstrap-mescc-tools" ,%mescc-tools-bootstrap-tarball)
                      ("bootstrap-mes" ,%mes-bootstrap-tarball)
-- 
2.22.0





Information forwarded to guix-patches@HIDDEN:
bug#36322; Package guix-patches. Full text available.

Message received at 36322 <at> debbugs.gnu.org:


Received: (at 36322) by debbugs.gnu.org; 21 Jun 2019 12:26:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 21 08:26:45 2019
Received: from localhost ([127.0.0.1]:49874 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1heIcv-0006tX-0m
	for submit <at> debbugs.gnu.org; Fri, 21 Jun 2019 08:26:45 -0400
Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:60253)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1heIcq-0006sj-2I
 for 36322 <at> debbugs.gnu.org; Fri, 21 Jun 2019 08:26:42 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.west.internal (Postfix) with ESMTP id 8A49E35D
 for <36322 <at> debbugs.gnu.org>; Fri, 21 Jun 2019 08:26:34 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute5.internal (MEProxy); Fri, 21 Jun 2019 08:26:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
 from:to:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding; s=fm3; bh=4myvFwGsMVVbq
 zJPk7j8g84zXZy585Ssc9GRmAuZKGM=; b=gxCxZqs9Rr0QtqQXepwCTv6nnCt7b
 WQOrf6odBkpVfQvZi36lKWG0/1YFesB/ldSosCz5alm/glyt4Xkh2eevYK/29lkZ
 QsIdR2DHWI1gYsNAL6MfAsQQwq+vvr5+ZKNQPLOjqk86nsnnF8h5qDUOEnPdzqLm
 BTVrjL4qRiD/9jiKiZu8lyYzg2bTBSCWfqTat0tHJdJFTOUlsT66jPsUycRCL95/
 8ekq9U59RFdtTvwOmjrSKJqe7v3+8oiapuHZhqqX8RvqTwgbEe1T5Dt2uo43bRoM
 xR5BTL+WYQ2XB7DNgGuZHUDQtRFSMpO3dfAlYIxau0rST4aRsQ3DrkqAw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-transfer-encoding:date:from
 :in-reply-to:message-id:mime-version:references:subject:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm3; bh=4myvFwGsMVVbqzJPk7j8g84zXZy585Ssc9GRmAuZKGM=; b=EaUc7cNP
 1tNhqAEv4dqmnHh8hM44CvpnTuSRZtX+ImSUx3lLRsjg9S9U9oTKPbI8CRaMKRMo
 MBLcw4hX43rWJkizv5DVwawG06ZCT6cHooVTDeTOH/4Fpzlf66Q7rAzxKT2hglwA
 K+WUJ6vtjbPq/yBTYnMww/wm6o7gmbiOfEaoBXkUamUoSK74fHDTO2xLvrsbs0sU
 Iu3GcAsvu9W7ob2uiQ/BQDO/vfDF5oh7yEz8yh3cRapWirvkfk2tnR2lY8+KtMGJ
 vcMDpcASPkksz82iaVz9jyxw4pcG62E/VqmEaXIgPZr92XuCcOHx3CQQTuO0CWsa
 m2tMvekm5gQJGQ==
X-ME-Sender: <xms:-swMXSawTyqhh3osCocubbGl2NERRu58itPhUVUwHo57_251o4sO1w>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtdeigdehhecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd
 ertddtnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshht
 mhgrihhlrdgtohhmqeenucfkphepiedvrdduiedrvddviedrudegtdenucfrrghrrghmpe
 hmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtghomhenucevlhhushht
 vghrufhiiigvpedt
X-ME-Proxy: <xmx:-swMXUGKeUXd-KLHP2ble06yHBYi5yvNRLUDrQCtqUGtSSiJ8eLk6g>
 <xmx:-swMXfNkzzBnBIhg0beH1Xu9zeMNUFAS29yLJzQ3Q7PLh7NoSPwnRw>
 <xmx:-swMXdwboqCoNwkI56qFmwhSppRorVogq-y7ZVMJpiYNq2m275AOWQ>
 <xmx:-swMXQN-P3wLlDgHMFbhKLuV43Wad3MpB5-p1Nf5b25msjBv8a8pfg>
Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140])
 by mail.messagingengine.com (Postfix) with ESMTPA id 88A17380087
 for <36322 <at> debbugs.gnu.org>; Fri, 21 Jun 2019 08:26:33 -0400 (EDT)
From: Marius Bakke <mbakke@HIDDEN>
To: 36322 <at> debbugs.gnu.org
Subject: [PATCH 3/4] gnu: make-bootstrap: Adjust for GCC 7.
Date: Fri, 21 Jun 2019 14:26:27 +0200
Message-Id: <20190621122628.18174-3-mbakke@HIDDEN>
X-Mailer: git-send-email 2.22.0
In-Reply-To: <20190621122628.18174-1-mbakke@HIDDEN>
References: <20190621122628.18174-1-mbakke@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 36322
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

* gnu/packages/make-bootstrap.scm (package-with-relocatable-glibc)[native-inputs]:
Add SEARCH-PATHS to CROSS-GCC, and NATIVE-SEARCH-PATHS to the native GCC.
---
 gnu/packages/make-bootstrap.scm | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index 561a286d26..df6b828a2d 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -106,16 +106,33 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
 
   (define (native-inputs)
     (if (%current-target-system)
-        (let ((target (%current-target-system)))
-          `(("cross-gcc"      ,(cross-gcc target
-                                          #:xbinutils (cross-binutils target)
-                                          #:libc (cross-bootstrap-libc)))
+        (let* ((target (%current-target-system))
+               (xgcc (cross-gcc
+                      target
+                      #:xbinutils (cross-binutils target)
+                      #:libc (cross-bootstrap-libc))))
+          `(("cross-gcc" ,(package
+                            (inherit xgcc)
+                            (search-paths
+                             ;; Ensure the cross libc headers appears on the
+                             ;; C++ system header search path.
+                             (cons (search-path-specification
+                                    (variable "CROSS_CPLUS_INCLUDE_PATH")
+                                    (files '("include")))
+                                   (package-search-paths gcc)))))
             ("cross-binutils" ,(cross-binutils target))
             ,@(%final-inputs)))
         `(("libc" ,(glibc-for-bootstrap))
           ("libc:static" ,(glibc-for-bootstrap) "static")
           ("gcc" ,(package (inherit gcc)
                     (outputs '("out"))  ;all in one so libgcc_s is easily found
+                    (native-search-paths
+                     ;; Set CPLUS_INCLUDE_PATH so GCC is able to find the libc
+                     ;; C++ headers.
+                     (cons (search-path-specification
+                            (variable "CPLUS_INCLUDE_PATH")
+                            (files '("include")))
+                           (package-native-search-paths gcc)))
                     (inputs
                      `(;; Distinguish the name so we can refer to it below.
                        ("bootstrap-libc" ,(glibc-for-bootstrap))
-- 
2.22.0





Information forwarded to guix-patches@HIDDEN:
bug#36322; Package guix-patches. Full text available.

Message received at 36322 <at> debbugs.gnu.org:


Received: (at 36322) by debbugs.gnu.org; 21 Jun 2019 12:26:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 21 08:26:43 2019
Received: from localhost ([127.0.0.1]:49872 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1heIcs-0006tM-LT
	for submit <at> debbugs.gnu.org; Fri, 21 Jun 2019 08:26:42 -0400
Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:33707)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1heIco-0006sf-FF
 for 36322 <at> debbugs.gnu.org; Fri, 21 Jun 2019 08:26:39 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.west.internal (Postfix) with ESMTP id D3783369
 for <36322 <at> debbugs.gnu.org>; Fri, 21 Jun 2019 08:26:32 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute5.internal (MEProxy); Fri, 21 Jun 2019 08:26:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
 from:to:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding; s=fm3; bh=Sply92OhUBFQw
 NkbyTqsEv0UiwmKROgLFuMy9fCjeNo=; b=V+C7HgAx89xbTEUZTnwhE7l+O1UOZ
 YWhD36n7j9mu74TdN3V6BA9tHCybbenv3jHzZjOWGkPxd0zz/Kj2yCPGszHfrHho
 QBKrWgDXpwJZOxBFnoJwFYHuCbo1sw0BWWCCoYpJ+jrz+AcvrtHifHvfQsLXDO0h
 gShllxmMh/v/bvf6voQQ4asF20eARHyLfDV0piZHzIuSi+4pK/F04efibU5t7QLg
 uV3zODLVgyRgML0BZV9Lc/xi0AdRjbAGM8dy8z8UFxqDgShSGAFN8OVfX3IhIFzS
 yA2i4G+7BLsT9CbbyOhG7WTGmxF0T1UImFf8f7Ckn7jrZDp1BV2N35Qpw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-transfer-encoding:date:from
 :in-reply-to:message-id:mime-version:references:subject:to
 :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm3; bh=Sply92OhUBFQwNkbyTqsEv0UiwmKROgLFuMy9fCjeNo=; b=CtbTskuy
 ItF6nmA0TU+fLR0VuVj0pruVTf1J+XZJtklmj6oEJiAEd5bWgf+hzu+QpKjdxin4
 kGjOY4Nqv7HjWd1w5zV3JOzMaHnOaNn6GQZvhW5Z2zJYh4opisDkNO8fmgwHnn4r
 7rdka/UIOUeMtLrbJociiwEWIRcJzniTKrEwvZ3ib2zoh0Am1zqBUC1i2xKZbP7D
 4wD0LnsgQ95o1eLb8pBO24QavpIFNxHOJ5AdaagFcytkp0d/P8n0Ig50fWEv9D16
 wkTPtWdrxFAw1Zo4cjzvyzWyWIOWplZ010IIVIzxsRj+hhvZr/DbOayqqKCm8x87
 wp7VuOakPEb/NA==
X-ME-Sender: <xms:-MwMXT9gVSDXvGVS4buT4_HWFFXwsyYj0niTNXCKllTq97nHrXSFew>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtdeigdehhecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd
 ertddtnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshht
 mhgrihhlrdgtohhmqeenucffohhmrghinhepghhnuhdrohhrghenucfkphepiedvrdduie
 drvddviedrudegtdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgvsehfrghs
 thhmrghilhdrtghomhenucevlhhushhtvghrufhiiigvpedt
X-ME-Proxy: <xmx:-MwMXcBeaIJaXfqt-YPUvk9RiJvalHAmelHl8TdGG06KUjTfLkHrcQ>
 <xmx:-MwMXSp6ht72v51yRkTAo5Ik2GKvS_YK1QePVwVu9JKS3DUYBFrUyQ>
 <xmx:-MwMXcl-AOVbYf43PhWBRcI9ZAlIufgljYdvbL4gRTt3-Dkmy0Vfiw>
 <xmx:-MwMXbSsXtrC3ENITBeCLk6ZMZDjUozZCYWae-2a7lBCKY2Q1_kPWA>
Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140])
 by mail.messagingengine.com (Postfix) with ESMTPA id D8246380074
 for <36322 <at> debbugs.gnu.org>; Fri, 21 Jun 2019 08:26:31 -0400 (EDT)
From: Marius Bakke <mbakke@HIDDEN>
To: 36322 <at> debbugs.gnu.org
Subject: [PATCH 2/4] gnu: make-bootstrap: Restore cross-compilation
 workarounds.
Date: Fri, 21 Jun 2019 14:26:26 +0200
Message-Id: <20190621122628.18174-2-mbakke@HIDDEN>
X-Mailer: git-send-email 2.22.0
In-Reply-To: <20190621122628.18174-1-mbakke@HIDDEN>
References: <20190621122628.18174-1-mbakke@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 36322
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

These workarounds were removed in cf8264364761857ca3550398369a0f20d7b0d512 and
218eb6e611c0a238802bf9cb5742d37cea0bb012, but were needed for %BOOTSTRAP-TARBALLS.

* gnu/packages/make-bootstrap.scm (%static-inputs)[coreutils, tar]: Add
<#:configure-flags>.
---
 gnu/packages/make-bootstrap.scm | 37 ++++++++++++++++++++++-----------
 1 file changed, 25 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index ec477da7c8..561a286d26 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -150,7 +150,15 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
                            "--disable-silent-rules"
                            "--enable-no-install-program=stdbuf,libstdbuf.so"
                            "CFLAGS=-Os -g0"        ; smaller, please
-                           "LDFLAGS=-static -pthread")
+                           "LDFLAGS=-static -pthread"
+
+                           ;; Work around a cross-compilation bug whereby libcoreutils.a
+                           ;; would provide '__mktime_internal', which conflicts with the
+                           ;; one in libc.a.
+                           ,@(if (%current-target-system)
+                                 `("gl_cv_func_working_mktime=yes")
+                                 '()))
+
                          #:tests? #f   ; signal-related Gnulib tests fail
                          ,@(package-arguments coreutils)))
 
@@ -213,17 +221,22 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
                             '()))))
 	(tar (package (inherit tar)
 	       (arguments
-                (substitute-keyword-arguments (package-arguments tar)
-                  ((#:phases phases)
-                   `(modify-phases ,phases
-                      (replace 'set-shell-file-name
-                        (lambda _
-                          ;; Do not use "/bin/sh" to run programs; see
-                          ;; <http://lists.gnu.org/archive/html/guix-devel/2016-09/msg02272.html>.
-                          (substitute* "src/system.c"
-                            (("/bin/sh") "sh")
-                            (("execv ") "execvp "))
-                          #t))))))))
+                `(;; Work around a cross-compilation bug whereby libgnu.a would provide
+                  ;; '__mktime_internal', which conflicts with the one in libc.a.
+                  ,@(if (%current-target-system)
+                        `(#:configure-flags '("gl_cv_func_working_mktime=yes"))
+                        '())
+                  ,@(substitute-keyword-arguments (package-arguments tar)
+                      ((#:phases phases)
+                       `(modify-phases ,phases
+                          (replace 'set-shell-file-name
+                            (lambda _
+                              ;; Do not use "/bin/sh" to run programs; see
+                              ;; <http://lists.gnu.org/archive/html/guix-devel/2016-09/msg02272.html>.
+                              (substitute* "src/system.c"
+                                (("/bin/sh") "sh")
+                                (("execv ") "execvp "))
+                              #t)))))))))
         ;; We don't want to retain a reference to /gnu/store in the bootstrap
         ;; versions of egrep/fgrep, so we remove the custom phase added since
         ;; grep@HIDDEN The effect is 'egrep' and 'fgrep' look for 'grep' in
-- 
2.22.0





Information forwarded to guix-patches@HIDDEN:
bug#36322; Package guix-patches. Full text available.

Message received at 36322 <at> debbugs.gnu.org:


Received: (at 36322) by debbugs.gnu.org; 21 Jun 2019 12:26:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 21 08:26:39 2019
Received: from localhost ([127.0.0.1]:49864 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1heIcp-0006sx-Bd
	for submit <at> debbugs.gnu.org; Fri, 21 Jun 2019 08:26:39 -0400
Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:56247)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1heIcm-0006sd-Pp
 for 36322 <at> debbugs.gnu.org; Fri, 21 Jun 2019 08:26:37 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.west.internal (Postfix) with ESMTP id 24497368
 for <36322 <at> debbugs.gnu.org>; Fri, 21 Jun 2019 08:26:31 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute5.internal (MEProxy); Fri, 21 Jun 2019 08:26:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
 from:to:subject:date:message-id:mime-version
 :content-transfer-encoding; s=fm3; bh=duyElkPDXv/zS1OfpfwIzVffad
 7D4dr3l/OQynWNyJg=; b=bRbtCFnjccoi03Jh1xO73djKuhSJSguwUb0y/JkuKT
 CmM8G0aHHauue/bgAgoG3KD7tnurq7aD7CNMBhv7H/Px8WtNb98u3POPE0jVjyLs
 Wp6gKWBW7uL0mImkyx7oDcRBELOt7xhmuoJFKouy+vyHLneoC8ga2WCd241UUgPK
 zktC3I7JMARZ+vXQP1vKbqWDP/WDhMyHiJrdr9115bBbzhamOBPzXQWQy9FBkE1R
 6cia/gt0cUx0iZtEPwApYAe5UkuFQtFfVQUCeih0VplETTgn23WvVGU/Az875gHX
 0exkXpX88kzkkFPVFcnB05lJsSiPXxVI9ctCFjHN0oTA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-transfer-encoding:date:from
 :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=duyElkPDXv/zS1Ofp
 fwIzVffad7D4dr3l/OQynWNyJg=; b=rAPo0bIrfcIqMK+UpXRMYUYtVrrT2Ht5t
 uhWPzYDKjVts8sCQWh55QfEjucYAdKPDEzV1j0UhNyQvyOtgOG+fHy944svTjdRS
 YbQu7gcJqMgleFZiUH6o1DlhBfyRMo2fW9zPgUMzA05L++B1AIhSGNsV57qaISq5
 +7isC6arjXoxQr50PmK3ssFs2IZbtI58eD41gKnO2qQWyGXEm0MPAILc2F8snk7u
 1bJRyiKRM0l7fEOmHz63DkgW6RYEF2BfCSkwq86Ok5GDF4kHJQ0d1ICSqcLWcRKB
 Dr+6bIgUXeSw8soZm8r1JVMEBGC10mcaLRj9/2yPmYWK+mNpmG5cQ==
X-ME-Sender: <xms:9swMXTLcVBmjo1x1THjkek12u9K6SfDFBNOs8QCskuRDkkAK24U2lg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtdeigdehhecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd
 dtnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgr
 ihhlrdgtohhmqeenucfkphepiedvrdduiedrvddviedrudegtdenucfrrghrrghmpehmrg
 hilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtghomhenucevlhhushhtvghr
 ufhiiigvpedu
X-ME-Proxy: <xmx:9swMXWs1cG1WfPR21w8PtIzC5T0dGesE4MpJNHM_elahjvuwnRsbLg>
 <xmx:9swMXfdasYlHcDXKgI2apx2eHN8DwnhY3PRYecLeCsALhEKwt4ctZg>
 <xmx:9swMXQ3cEgNPky0BPL66m72Soj1Pj6yvaz1rlkN1LK-HRgB4f0NzWg>
 <xmx:9swMXZtz8iwixw84CwUsgjddObly3ELQAH7AdXIJlg6uO6fvfX6PtQ>
Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140])
 by mail.messagingengine.com (Postfix) with ESMTPA id 47FA5380089
 for <36322 <at> debbugs.gnu.org>; Fri, 21 Jun 2019 08:26:30 -0400 (EDT)
From: Marius Bakke <mbakke@HIDDEN>
To: 36322 <at> debbugs.gnu.org
Subject: [PATCH 1/4] gnu: make-bootstrap: Remove obsolete header file.
Date: Fri, 21 Jun 2019 14:26:25 +0200
Message-Id: <20190621122628.18174-1-mbakke@HIDDEN>
X-Mailer: git-send-email 2.22.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 36322
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

* guix/build/make-bootstrap.scm (copy-linux-headers): Do not install 'a.out.h'.
---
 guix/build/make-bootstrap.scm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/guix/build/make-bootstrap.scm b/guix/build/make-bootstrap.scm
index e5ef1d6d2b..0d29338ce3 100644
--- a/guix/build/make-bootstrap.scm
+++ b/guix/build/make-bootstrap.scm
@@ -47,7 +47,6 @@ bootstrap libc."
                 (install-file (pk 'src (string-append kernel-headers "/include/linux/" file))
                               (pk 'dest (string-append incdir "/linux"))))
               '(
-                "a.out.h"               ; for 2.2.5
                 "atalk.h"               ; for 2.2.5
                 "errno.h"
                 "falloc.h"
-- 
2.22.0





Information forwarded to guix-patches@HIDDEN:
bug#36322; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Jun 2019 12:24:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 21 08:24:28 2019
Received: from localhost ([127.0.0.1]:49854 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1heIah-0006p2-UP
	for submit <at> debbugs.gnu.org; Fri, 21 Jun 2019 08:24:28 -0400
Received: from lists.gnu.org ([209.51.188.17]:41955)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1heIaf-0006ot-7t
 for submit <at> debbugs.gnu.org; Fri, 21 Jun 2019 08:24:26 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:34428)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <mbakke@HIDDEN>) id 1heIab-00040g-Sy
 for guix-patches@HIDDEN; Fri, 21 Jun 2019 08:24:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mbakke@HIDDEN>) id 1heIaX-00017l-Cu
 for guix-patches@HIDDEN; Fri, 21 Jun 2019 08:24:20 -0400
Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:42123)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mbakke@HIDDEN>) id 1heIaX-00014d-5a
 for guix-patches@HIDDEN; Fri, 21 Jun 2019 08:24:17 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.west.internal (Postfix) with ESMTP id 73AB144C
 for <guix-patches@HIDDEN>; Fri, 21 Jun 2019 08:24:14 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute5.internal (MEProxy); Fri, 21 Jun 2019 08:24:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
 from:to:subject:date:message-id:mime-version
 :content-transfer-encoding; s=fm3; bh=xqnkW/BrB/3qyELpU0y/dYg5qS
 wvFTqgrywmlCZepZg=; b=au7u2RJ0PIUkJz1sJAcZTZJ++d8eyNf4H3pGZppXsi
 MBhcYWa0C89y8z4wihUFmOYiqpmP5WbyJ91MBQWmGSQIJeIv2f0A34VtK9I1DNa+
 b3A39p9TgVfbhDTeIs1udN710ja3WFuhphf3RAfe2jHIhgWNKUSkPpguW/0gbnNC
 kAhSAEuSrzUJ4DGs4TShdOnsv16uqGhKdjyKS5DwFpVSaPCXLwjDdwXOJrY0KdAE
 ooL20XyQHBo6vxvHgO3KYwtl0S7oJVmRaREiS46q8jHwvFnkiQbh5fDjPKakpxI6
 jvQlP+xMi4FBkTOjA01Ak0Cq/Qcz2KPuzz7hwL/h6rpg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-transfer-encoding:date:from
 :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=xqnkW/BrB/3qyELpU
 0y/dYg5qSwvFTqgrywmlCZepZg=; b=K4Ut/2lzRy3lvFTWI+KWqQEcm/JjugEQx
 NGgKtzCKwEUbF2ESbwFW+vJw7EMoAydbqtWJahMSEj1zh14hBttuFwlyRNUYhND0
 2i+m+yC10dpo/leKP3a8mH+sY2deVQz4S9M8dwD2oecnHr+JFPR8FCrNsbCd0JAx
 KW9w4uoXflrpHfRUUztASLOZHH0S9+v+KXZ3ppkJIIJJdBtAfmBPMKN/yVcpSBSF
 2T1BQGgEi45aTTVf/M6KkKqcGCBE/GUSyB7xyIEAxr69v6gcisQ7Fc1QkwbgvIHg
 mVjj3xYPtq8gpQfIrqTb3pVmtPeryj+34sDpYj8AmSS0OCjOs+m0w==
X-ME-Sender: <xms:bcwMXYUIK8tkekT8c1psW1KrsjkmAIBoHAdHxG2uxhrFAybWnMg1UA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtdeigdehhecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd
 dtnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgr
 ihhlrdgtohhmqeenucfkphepiedvrdduiedrvddviedrudegtdenucfrrghrrghmpehmrg
 hilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrghilhdrtghomhenucevlhhushhtvghr
 ufhiiigvpedt
X-ME-Proxy: <xmx:bcwMXdJEh6tWnvPCh16qr5sXfInCtQuepEtGHK26iGVqVKNu8vww9A>
 <xmx:bcwMXVQop3YibIXlfX_mDr2orcaV4t12hvli5MZsBMPQdx5jko41qQ>
 <xmx:bcwMXRjwIeFRXB-OGkX2QaK3Iy1wsPhm3yRgqyIEjifoTu7v9T1SyA>
 <xmx:bswMXVLIKzeKWJskFU6IWZgz9NJkU5J8pk_AnIIJbcG56om79jT-5g>
Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140])
 by mail.messagingengine.com (Postfix) with ESMTPA id 7F0F6380084
 for <guix-patches@HIDDEN>; Fri, 21 Jun 2019 08:24:13 -0400 (EDT)
From: Marius Bakke <mbakke@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH 0/4] [core-updates] Fix cross-compiling bootstrap tarballs
Date: Fri, 21 Jun 2019 14:24:11 +0200
Message-Id: <20190621122411.17847-1-mbakke@HIDDEN>
X-Mailer: git-send-email 2.22.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 64.147.123.19
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

With these patches, we can again cross-compile the bootstrap tarballs on
core-updates.

As of commit bd0dc2df04a1550f41d3d5c7cc2c26ad12468b36, here are my
results for armhf and Hurd(!):

$ ./pre-inst-env guix build --target=arm-linux-gnueabihf bootstrap-tarballs 
/gnu/store/q245c0s6cc55ziamfxpv43lwbnxaw0n6-bootstrap-tarballs-0
$ guix hash -rx $(!!)
01lksw8qw973bc2lllz97pxm67x84rz8crbdiqwnlbyjq0j3mvaq

$ ./pre-inst-env guix build  --target=i586-pc-gnu bootstrap-tarballs
/gnu/store/4i3zxmzcrpg2h8inwgfd24sdsgan9jw7-bootstrap-tarballs-0
$ guix hash -rx $(!!)
17yjlqvwlv8v28qm5v888kshx30djylml9fgpwkcqvx3idzw7i1v

Now, I haven't actually tried bootstrapping a system from these yet.
Do we have automated tests for that?

Marius Bakke (4):
  gnu: make-bootstrap: Remove obsolete header file.
  gnu: make-bootstrap: Restore cross-compilation workarounds.
  gnu: make-bootstrap: Adjust for GCC 7.
  gnu: bootstrap-tarballs: Don't include the native mes when
    cross-compiling.

 gnu/packages/make-bootstrap.scm | 64 ++++++++++++++++++++++++---------
 guix/build/make-bootstrap.scm   |  1 -
 2 files changed, 47 insertions(+), 18 deletions(-)

-- 
2.22.0





Acknowledgement sent to Marius Bakke <mbakke@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#36322; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 21 Jun 2019 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.