GNU bug report logs - #37550
[core-updates] [PATCH] gnu: gcc: Fix i686-linux cross compiler.

Previous Next

Package: guix;

Reported by: Jan Nieuwenhuizen <janneke <at> gnu.org>

Date: Sun, 29 Sep 2019 11:22:01 UTC

Severity: normal

Tags: patch

Done: Jan Nieuwenhuizen <janneke <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37550 in the body.
You can then email your comments to 37550 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#37550; Package guix. (Sun, 29 Sep 2019 11:22:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Nieuwenhuizen <janneke <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 29 Sep 2019 11:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jan Nieuwenhuizen <janneke <at> gnu.org>
To: bug-guix <at> gnu.org
Subject: [core-updates] [PATCH] gnu: gcc: Fix i686-linux cross compiler. 
Date: Sun, 29 Sep 2019 13:21:11 +0200
[Message part 1 (text/plain, inline)]
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

[0001-gnu-gcc-Fix-i686-linux-cross-compiler.patch (text/x-patch, inline)]
From 522aac698a66ca8ab73ac3827c61cb65627684d3 Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen <janneke <at> gnu.org>
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

[Message part 3 (text/plain, inline)]
-- 
Jan Nieuwenhuizen <janneke <at> gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

Information forwarded to bug-guix <at> gnu.org:
bug#37550; Package guix. (Sun, 29 Sep 2019 12:16:02 GMT) Full text and rfc822 format available.

Message #8 received at 37550 <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: Jan Nieuwenhuizen <janneke <at> gnu.org>, 37550 <at> debbugs.gnu.org
Subject: Re: bug#37550: [core-updates] [PATCH] gnu: gcc: Fix i686-linux cross
 compiler.
Date: Sun, 29 Sep 2019 14:15:15 +0200
[Message part 1 (text/plain, inline)]
Jan Nieuwenhuizen <janneke <at> gnu.org> writes:

> 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?

This patch should be safe for 'core-updates'.  Please double check that
it does not rebuild the world, though.  :-)

> From 522aac698a66ca8ab73ac3827c61cb65627684d3 Mon Sep 17 00:00:00 2001
> From: Jan Nieuwenhuizen <janneke <at> gnu.org>
> 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.

libmpx does not build natively either (see 01e8263febb) and has been
removed from GCC entirely in version 9.

> 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

IMO the comment is unnecessary.  LGTM!
[signature.asc (application/pgp-signature, inline)]

Reply sent to Jan Nieuwenhuizen <janneke <at> gnu.org>:
You have taken responsibility. (Sun, 29 Sep 2019 14:23:02 GMT) Full text and rfc822 format available.

Notification sent to Jan Nieuwenhuizen <janneke <at> gnu.org>:
bug acknowledged by developer. (Sun, 29 Sep 2019 14:23:02 GMT) Full text and rfc822 format available.

Message #13 received at 37550-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Nieuwenhuizen <janneke <at> gnu.org>
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: 37550-done <at> debbugs.gnu.org
Subject: Re: bug#37550: [core-updates] [PATCH] gnu: gcc: Fix i686-linux cross
 compiler.
Date: Sun, 29 Sep 2019 16:22:07 +0200
Marius Bakke writes:

> Jan Nieuwenhuizen <janneke <at> gnu.org> writes:
>> I stumbled upon this while working to fix #37549.  Where should this
>> patch land?
>
> This patch should be safe for 'core-updates'.  Please double check that
> it does not rebuild the world, though.  :-)

I was hesitating and re-checked on a fresh computer.

> libmpx does not build natively either (see 01e8263febb) and has been
> removed from GCC entirely in version 9.

Ah, good to know.  I was worrying about just dropping it.

>> +                               "--disable-libmpx" ; C compiler cannot create executables
>
> IMO the comment is unnecessary.  LGTM!
>

Removed, and pushed to core-updates as 43124a54744b64dcdbdd8f92d2a037bf8e0dd215

Thanks!
janneke

-- 
Jan Nieuwenhuizen <janneke <at> gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com




Information forwarded to bug-guix <at> gnu.org:
bug#37550; Package guix. (Tue, 01 Oct 2019 09:31:02 GMT) Full text and rfc822 format available.

Message #16 received at 37550 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jan Nieuwenhuizen <janneke <at> gnu.org>
Cc: 37550 <at> debbugs.gnu.org
Subject: Re: bug#37550: [core-updates] [PATCH] gnu: gcc: Fix i686-linux cross
 compiler.
Date: Tue, 01 Oct 2019 11:30:45 +0200
Hello,

Thanks for pushing this patch!

Jan Nieuwenhuizen <janneke <at> gnu.org> skribis:

>     ./pre-inst-env guix build --target=i686-unknown-linux-gnu hello

Note that on x86_64 you can perform native builds for i686 with
“guix build -s i686-linux hello”.

You probably already know it but I thought I’d mention it because native
builds are much easier.  :-)

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 29 Oct 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 228 days ago.

Previous Next


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