From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 29 07:21:28 2019 Received: (at submit) by debbugs.gnu.org; 29 Sep 2019 11:21:28 +0000 Received: from localhost ([127.0.0.1]:52397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEXGZ-0007wZ-UK for submit@debbugs.gnu.org; Sun, 29 Sep 2019 07:21:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:44134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEXGX-0007wQ-Bc for submit@debbugs.gnu.org; Sun, 29 Sep 2019 07:21:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46962) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEXGW-0004se-1Q for bug-guix@gnu.org; Sun, 29 Sep 2019 07:21:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iEXGP-0003PX-Nj; Sun, 29 Sep 2019 07:21:19 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=50564 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iEXGN-0002Cc-SB; Sun, 29 Sep 2019 07:21:16 -0400 From: Jan Nieuwenhuizen To: bug-guix@gnu.org Subject: [core-updates] [PATCH] gnu: gcc: Fix i686-linux cross compiler. Date: Sun, 29 Sep 2019 13:21:11 +0200 Message-ID: <8736gf4ac8.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Running ./pre-inst-env guix build --target=i686-unknown-linux-gnu hello on core-updates (and similarly on core-updates-next) fails with --8<---------------cut here---------------start------------->8--- checking for i686-unknown-linux-gnu-gcc... /tmp/guix-build-gcc-cross-sans-libc-i686-unknown-linux-gnu-7.4.0.drv-0/build/./gcc/xgcc -B/tmp/guix-build-gcc-cross-sans-libc-i686-unknown-linux-gnu-7.4.0.drv-0/build/./gcc/ -B/gnu/store/p4x4981zidgq36rjkx0bxb466s81xk2z-gcc-cross-sans-libc-i686-unknown-linux-gnu-7.4.0/i686-unknown-linux-gnu/bin/ -B/gnu/store/p4x4981zidgq36rjkx0bxb466s81xk2z-gcc-cross-sans-libc-i686-unknown-linux-gnu-7.4.0/i686-unknown-linux-gnu/lib/ -isystem /gnu/store/p4x4981zidgq36rjkx0bxb466s81xk2z-gcc-cross-sans-libc-i686-unknown-linux-gnu-7.4.0/i686-unknown-linux-gnu/include -isystem /gnu/store/p4x4981zidgq36rjkx0bxb466s81xk2z-gcc-cross-sans-libc-i686-unknown-linux-gnu-7.4.0/i686-unknown-linux-gnu/sys-include checking for C compiler default output file name... configure: error: in `/tmp/guix-build-gcc-cross-sans-libc-i686-unknown-linux-gnu-7.4.0.drv-0/build/i686-unknown-linux-gnu/libmpx': configure: error: C compiler cannot create executables See `config.log' for more details. --8<---------------cut here---------------end--------------->8--- The attached patch fixes this. I stumbled upon this while working to fix #37549. Where should this patch land? Greetings, janneke --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-gcc-Fix-i686-linux-cross-compiler.patch From 522aac698a66ca8ab73ac3827c61cb65627684d3 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 29 Sep 2019 13:08:01 +0200 Subject: [PATCH] gnu: gcc: Fix i686-linux cross compiler. This resurrects ./pre-inst-env guix build --target=i686-unknown-linux-gnu hello * gnu/packages/cross-base.scm (cross-gcc-arguments): Do not build libmpx; does not cross-configure. --- gnu/packages/cross-base.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index 7108000f06..fab4636450 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm @@ -144,6 +144,7 @@ base compiler and using LIBC (which may be either a libc package or #f.)" "--disable-libatomic" "--disable-libmudflap" "--disable-libgomp" + "--disable-libmpx" ; C compiler cannot create executables "--disable-libssp" "--disable-libquadmath" "--disable-decimal-float" ;would need libc -- 2.23.0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=--