GNU bug report logs -
#59085
[PATCH] services: Add x86_64 QEMU target.
Previous Next
Reported by: Leo Nikkilä <hello <at> lnikki.la>
Date: Mon, 7 Nov 2022 00:11:01 UTC
Severity: normal
Tags: patch
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Mon, 07 Nov 2022 21:03:12 +0100
with message-id <87edueo7im.fsf <at> cbaines.net>
and subject line Re: [bug#59085] [PATCH] services: Add x86_64 QEMU target.
has caused the debbugs.gnu.org bug report #59085,
regarding [PATCH] services: Add x86_64 QEMU target.
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
59085: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59085
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Greetings,
I was trying to build an x86_64 binary on an aarch64 machine, and noticed that
`qemu-binfmt-service-type' was missing the x86_64 platform definition.
* gnu/services/virtualization.scm (%x86_64): Add variable.
(%qemu-platforms) Add it.
---
gnu/packages/virtualization.scm | 1 +
gnu/services/virtualization.scm | 9 ++++++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index 981e5e0cf3..4c8662f770 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -28,6 +28,7 @@
;;; Copyright © 2022 Ekaitz Zarraga <ekaitz <at> elenq.tech>
;;; Copyright © 2022 Arun Isaac <arunisaac <at> systemreboot.net>
;;; Copyright © 2022 Zhu Zihao <all_but_last <at> 163.com>
+;;; Copyright © 2022 Leo Nikkilä <hello <at> lnikki.la>
;;;
;;; This file is part of GNU Guix.
;;;
diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index cb6227403b..b3dc9d2114 100644
--- a/gnu/services/virtualization.scm
+++ b/gnu/services/virtualization.scm
@@ -611,6 +611,13 @@ (define %i386
(magic (bv "\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00"))
(mask (bv "\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff"))))
+(define %x86_64
+ (qemu-platform
+ (name "x86_64")
+ (family "i386")
+ (magic (bv "\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00"))
+ (mask (bv "\xff\xff\xff\xff\xff\xfe\xfe\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff"))))
+
(define %alpha
(qemu-platform
(name "alpha")
@@ -767,7 +774,7 @@ (define %hppa
(mask (bv "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff"))))
(define %qemu-platforms
- (list %i386 %alpha %arm %sparc32plus %ppc %ppc64 %ppc64le %m68k
+ (list %i386 %x86_64 %alpha %arm %sparc32plus %ppc %ppc64 %ppc64le %m68k
%mips %mipsel %mipsn32 %mipsn32el %mips64 %mips64el
%riscv32 %riscv64 %sh4 %sh4eb %s390x %aarch64 %hppa))
--
2.38.0
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
Leo Nikkilä <hello <at> lnikki.la> writes:
> Greetings,
>
> I was trying to build an x86_64 binary on an aarch64 machine, and noticed that
> `qemu-binfmt-service-type' was missing the x86_64 platform definition.
>
> * gnu/services/virtualization.scm (%x86_64): Add variable.
> (%qemu-platforms) Add it.
> ---
> gnu/packages/virtualization.scm | 1 +
> gnu/services/virtualization.scm | 9 ++++++++-
> 2 files changed, 9 insertions(+), 1 deletion(-)
This sounds reasonable to me, I haven't checked the exact values are
correct but I'm assuming they're sensible.
Pushed to master as 9ad311ec15c05efc78f74252e7eb6cddfb0b5cea.
Thanks,
Chris
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 2 years and 241 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.