From: Marius Bakke <mbakke@fastmail.com>
To: Leo Famulari <leo@famulari.name>, 36882@debbugs.gnu.org
Subject: bug#36882: QEMU 4 fails to build for x86_64-linux
Date: Thu, 01 Aug 2019 16:14:55 +0200 [thread overview]
Message-ID: <87h8712crk.fsf@devup.no> (raw)
In-Reply-To: <20190731200334.GA29724@jasmine.lan>
[-- Attachment #1: Type: text/plain, Size: 1737 bytes --]
Leo Famulari <leo@famulari.name> writes:
> While testing the upgrade of our QEMU package to 4.0.0 or 4.1.0-rc3 on
> x86_64-linux, the build fails when the header 'gnu/stubs-32.h' can't be
> found:
>
> ------
> In file included from /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/features.h:452:0,
> from /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/bits/libc-header-start.h:33,
> from /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/stdint.h:26,
> from linuxboot_dma.c:65:
> /gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
> compilation terminated.
> make[1]: *** [/tmp/guix-build-qemu-4.1.0-rc3.drv-0/qemu-4.1.0-rc3/rules.mak:69: linuxboot_dma.o] Error 1
> make[1]: Leaving directory '/tmp/guix-build-qemu-4.1.0-rc3.drv-0/qemu-4.1.0-rc3/pc-bios/optionrom'
> make: *** [Makefile:519: pc-bios/optionrom/all] Error 2
> ------
>
> And of course, this header is not installed by glibc when it is built
> for 64-bit systems.
>
> The header in question, 'stubs.h', looks like this:
>
> ------
> #if !defined __x86_64__
> # include <gnu/stubs-32.h>
> #endif
> #if defined __x86_64__ && defined __LP64__
> # include <gnu/stubs-64.h>
> #endif
> #if defined __x86_64__ && defined __ILP32__
> # include <gnu/stubs-x32.h>
> #endif
> ------
>
> When I build for i686-linux, it works as expected.
>
> Any advice? I'm not really sure what's going on here.
I don't know why it fails, but it works if you give it a newer GCC such
as the one on 'core-updates'.
I tried it with 4.0.0, but got stuck on two test failures. Hopefully
4.1.0 is easier to debug... :-)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2019-08-01 14:16 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-31 20:03 bug#36882: QEMU 4 fails to build for x86_64-linux Leo Famulari
2019-08-01 14:14 ` Marius Bakke [this message]
2019-08-23 12:58 ` Ludovic Courtès
2020-02-21 11:09 ` bug#36882: Qemu 4.2.0 build for x86_64-linux fails Mathieu Othacehe
2020-02-21 20:29 ` Ludovic Courtès
2020-02-22 19:13 ` Mathieu Othacehe
2020-02-23 11:32 ` Ludovic Courtès
2020-02-24 9:36 ` Mathieu Othacehe
2020-02-24 14:25 ` Ludovic Courtès
2020-02-25 14:34 ` Mathieu Othacehe
2020-02-25 14:46 ` Mathieu Othacehe
2020-02-26 20:55 ` Ludovic Courtès
2020-03-02 22:01 ` Marius Bakke
2020-03-03 7:39 ` Mathieu Othacehe
2020-03-03 11:55 ` Mathieu Othacehe
2020-03-03 20:26 ` Marius Bakke
2020-03-03 20:37 ` Marius Bakke
2020-03-03 21:09 ` Jan (janneke) Nieuwenhuizen
2020-03-04 8:16 ` Mathieu Othacehe
2020-03-05 16:36 ` Ludovic Courtès
2020-03-05 16:42 ` Marius Bakke
2020-03-06 7:25 ` Mathieu Othacehe
2020-02-26 21:12 ` Marius Bakke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h8712crk.fsf@devup.no \
--to=mbakke@fastmail.com \
--cc=36882@debbugs.gnu.org \
--cc=leo@famulari.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).