GNU bug report logs - #60719
openbios-qemu-ppc fails to build on aarch64

Previous Next

Package: guix;

Reported by: Andrew Patterson <andrewpatt7 <at> gmail.com>

Date: Tue, 10 Jan 2023 23:03:02 UTC

Severity: normal

Done: Andrew Patterson <andrewpatt7 <at> gmail.com>

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 60719 in the body.
You can then email your comments to 60719 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#60719; Package guix. (Tue, 10 Jan 2023 23:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrew Patterson <andrewpatt7 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 10 Jan 2023 23:03:02 GMT) Full text and rfc822 format available.

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

From: Andrew Patterson <andrewpatt7 <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: openbios-qemu-ppc fails to build on aarch64
Date: Tue, 10 Jan 2023 17:35:49 -0500
[Message part 1 (text/plain, inline)]
openbios-qemu-ppc currently fails to compile on aarch64, with 
build errors about missing __u32 and __u16 types somehow existing 
in a linux header file that includes the header file that defines 
those types.  (Log attached.)
[Message part 2 (text/plain, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Andrew Patterson

Information forwarded to bug-guix <at> gnu.org:
bug#60719; Package guix. (Thu, 12 Jan 2023 23:19:02 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: guix-devel <at> gnu.org
Cc: 60719 <at> debbugs.gnu.org, Marius Bakke <marius <at> gnu.org>
Subject: Re: [aarch64] grub-efi cannot be built because of qemu changes
Date: Fri, 13 Jan 2023 00:17:34 +0100
Ricardo Wurmus <rekado <at> elephly.net> writes:

> commit 71b8707100e2fbc00f123566717ba3958c6afabb seems to have broken
> reconfiguration of my aarch64 machine.

See also https://issues.guix.gnu.org/60719

-- 
Ricardo




Information forwarded to bug-guix <at> gnu.org:
bug#60719; Package guix. (Tue, 17 Jan 2023 04:27:02 GMT) Full text and rfc822 format available.

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

From: Andrew Patterson <andrewpatt7 <at> gmail.com>
To: 60719 <at> debbugs.gnu.org, rekado <at> elephly.net
Subject: Re: bug#60719: Acknowledgement (openbios-qemu-ppc fails to build on
 aarch64)
Date: Mon, 16 Jan 2023 23:12:23 -0500
From altogether too much searching around with gcc -M, it looks 
like the problem is that openbios has in its include directory an 
asm/types.h.  Because things added to the header search path by -I 
shadow system headers and are global, this replaces the 
<asm/types.h> that <asm/sigcontext.h> relies on, causing the 
error.  On aarch64, <bits/sigcontext.h> (which I think <signal.h> 
includes?) imports <asm/sigcontext.h>, so the whole thing fails to 
build.  On x86_64, <bits/sigcontext.h> does not import 
<asm/sigcontext.h>, so this whole problem never occurs.

I don't know how to fix this on guix's end, but I guess I now need 
to complain to upstream and hope they can work out a fix.

(I have a newfound hatred of #include.)
-- 
Andrew Patterson




Information forwarded to bug-guix <at> gnu.org:
bug#60719; Package guix. (Tue, 17 Jan 2023 05:18:01 GMT) Full text and rfc822 format available.

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

From: Andrew Patterson <andrewpatt7 <at> gmail.com>
To: 60719 <at> debbugs.gnu.org, rekado <at> elephly.net
Subject: Re: bug#60719: Acknowledgement (openbios-qemu-ppc fails to build on
 aarch64)
Date: Tue, 17 Jan 2023 00:16:03 -0500
> I don't know how to fix this on guix's end, but I guess I now 
> need to
> complain to upstream and hope they can work out a fix.

I've submitted an issue to upstream: 
https://github.com/openbios/openbios/issues/11

-- 
Andrew Patterson




Information forwarded to bug-guix <at> gnu.org:
bug#60719; Package guix. (Mon, 30 Jan 2023 00:53:02 GMT) Full text and rfc822 format available.

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

From: Akira Kyle <akira <at> akirakyle.com>
To: 60719 <at> debbugs.gnu.org
Cc: openbios <at> openbios.org, qemu-ppc <at> nongnu.org, Marius Bakke <marius <at> gnu.org>
Subject: openbios-qemu-ppc fails to build on aarch64
Date: Sun, 29 Jan 2023 17:52:23 -0700
Andrew Patterson wrote on 17 Jan 06:16 +0100:

> I've submitted an issue to upstream: 
> https://github.com/openbios/openbios/issues/11

It looks like from the other open issues, that the openbios team doesn't actually use the github issue tracker but their own mailing list, which I'm CC'ing, along with the qemu-ppc mailing list.

For anyone following this issue who wants to work around it and be able to `guix system reconfigure` on aarch64, I've copied the qemu package definition from before Marius unbundled a bunch of the qemu firmware, including openbios, to here:
https://github.com/akirakyle/guix-channel/blob/master/akira/qemu.scm


The relevant parts of my system config are then

(use-modules (akira qemu))

(define %qemu-package-replacements
  `((,qemu-minimal . ,my-qemu-minimal)))

(define with-my-qemu
  (package-input-rewriting %qemu-package-replacements))

(define my-grub-efi
  (with-my-qemu grub-efi))

(define my-grub-efi-bootloader
  (bootloader 
   (inherit grub-efi-bootloader)
   (package my-grub-efi)))


(operating-system
...
  (bootloader (bootloader-configuration
               (bootloader my-grub-efi-bootloader)
               (targets '("/boot"))
               (keyboard-layout keyboard-layout)))
...)




Reply sent to Andrew Patterson <andrewpatt7 <at> gmail.com>:
You have taken responsibility. (Tue, 21 Feb 2023 05:19:02 GMT) Full text and rfc822 format available.

Notification sent to Andrew Patterson <andrewpatt7 <at> gmail.com>:
bug acknowledged by developer. (Tue, 21 Feb 2023 05:19:02 GMT) Full text and rfc822 format available.

Message #22 received at 60719-close <at> debbugs.gnu.org (full text, mbox):

From: Andrew Patterson <andrewpatt7 <at> gmail.com>
To: 60719-close <at> debbugs.gnu.org, rekado <at> elephly.net
Subject: Re: bug#60719: Acknowledgement (openbios-qemu-ppc fails to build on
 aarch64)
Date: Tue, 21 Feb 2023 00:08:45 -0500
Fixed as of 042b92edb20648c030dcbaf59acd176731550b70

-- 
Andrew Patterson




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

This bug report was last modified 1 year and 34 days ago.

Previous Next


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