From: ludo@gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw@netris.org>
Cc: 31380@debbugs.gnu.org
Subject: bug#31380: grub fails to build on i686-linux
Date: Fri, 15 Jun 2018 18:45:16 +0200 [thread overview]
Message-ID: <87in6krobn.fsf@gnu.org> (raw)
In-Reply-To: <87d0wst84e.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 15 Jun 2018 16:52:17 +0200")
[-- Attachment #1: Type: text/plain, Size: 335 bytes --]
ludo@gnu.org (Ludovic Courtès) skribis:
> I wanted to try ‘guix system vm-image -s i686-linux’ on my x86_64 laptop
> to make sure GRUB runs fine. Unfortunately, I stumbled upon another
> issue, which is that qemu-system-i386 built for i686-linux segfaults at
> startup:
I was able to work around it by disabling KVM:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 583 bytes --]
diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index 73d0191de..a675111d4 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -104,7 +104,8 @@ the #:references-graphs parameter of 'derivation'."
;; hardware virtualization to still use these commands. KVM support is
;; still buggy on some ARM32 boards. Do not use it even if available.
,@(if (and (file-exists? "/dev/kvm")
- (not target-arm32?))
+ (not target-arm32?)
+ (not (string-suffix? "-i386" qemu)))
'("-enable-kvm")
'())
[-- Attachment #3: Type: text/plain, Size: 389 bytes --]
I suspect a KVM bug in Linux 4.17 though, because running the same
‘qemu-system-i386’ binary under strace works… Perhaps worth applying
the patch above in the meantime, WDYT?
Anyway, with this patch I successfully run:
guix system vm-image gnu/system/examples/bare-bones.tmpl -s i686-linux
and confirmed that the resulting image would boot through GRUB.
Ludo’.
next prev parent reply other threads:[~2018-06-15 16:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-07 19:59 bug#31380: [core-updates] grub fails to build on i686-linux Mark H Weaver
2018-06-14 3:43 ` bug#31380: " Mark H Weaver
2018-06-15 14:52 ` Ludovic Courtès
2018-06-15 16:45 ` Ludovic Courtès [this message]
2018-07-04 13:25 ` Ludovic Courtès
2018-06-16 8:22 ` Mark H Weaver
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=87in6krobn.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=31380@debbugs.gnu.org \
--cc=mhw@netris.org \
/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).