* bug#37550: [core-updates] [PATCH] gnu: gcc: Fix i686-linux cross compiler.
@ 2019-09-29 11:21 Jan Nieuwenhuizen
2019-09-29 12:15 ` Marius Bakke
2019-10-01 9:30 ` Ludovic Courtès
0 siblings, 2 replies; 4+ messages in thread
From: Jan Nieuwenhuizen @ 2019-09-29 11:21 UTC (permalink / raw)
To: 37550
[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-gcc-Fix-i686-linux-cross-compiler.patch --]
[-- Type: text/x-patch, Size: 1182 bytes --]
From 522aac698a66ca8ab73ac3827c61cb65627684d3 Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen <janneke@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
[-- Attachment #3: Type: text/plain, Size: 152 bytes --]
--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#37550: [core-updates] [PATCH] gnu: gcc: Fix i686-linux cross compiler.
2019-09-29 11:21 bug#37550: [core-updates] [PATCH] gnu: gcc: Fix i686-linux cross compiler Jan Nieuwenhuizen
@ 2019-09-29 12:15 ` Marius Bakke
2019-09-29 14:22 ` Jan Nieuwenhuizen
2019-10-01 9:30 ` Ludovic Courtès
1 sibling, 1 reply; 4+ messages in thread
From: Marius Bakke @ 2019-09-29 12:15 UTC (permalink / raw)
To: Jan Nieuwenhuizen, 37550
[-- Attachment #1: Type: text/plain, Size: 2747 bytes --]
Jan Nieuwenhuizen <janneke@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@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!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#37550: [core-updates] [PATCH] gnu: gcc: Fix i686-linux cross compiler.
2019-09-29 12:15 ` Marius Bakke
@ 2019-09-29 14:22 ` Jan Nieuwenhuizen
0 siblings, 0 replies; 4+ messages in thread
From: Jan Nieuwenhuizen @ 2019-09-29 14:22 UTC (permalink / raw)
To: Marius Bakke; +Cc: 37550-done
Marius Bakke writes:
> Jan Nieuwenhuizen <janneke@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@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#37550: [core-updates] [PATCH] gnu: gcc: Fix i686-linux cross compiler.
2019-09-29 11:21 bug#37550: [core-updates] [PATCH] gnu: gcc: Fix i686-linux cross compiler Jan Nieuwenhuizen
2019-09-29 12:15 ` Marius Bakke
@ 2019-10-01 9:30 ` Ludovic Courtès
1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2019-10-01 9:30 UTC (permalink / raw)
To: Jan Nieuwenhuizen; +Cc: 37550
Hello,
Thanks for pushing this patch!
Jan Nieuwenhuizen <janneke@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’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-10-01 9:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-29 11:21 bug#37550: [core-updates] [PATCH] gnu: gcc: Fix i686-linux cross compiler Jan Nieuwenhuizen
2019-09-29 12:15 ` Marius Bakke
2019-09-29 14:22 ` Jan Nieuwenhuizen
2019-10-01 9:30 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).