From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#31380: grub fails to build on i686-linux Date: Fri, 15 Jun 2018 18:45:16 +0200 Message-ID: <87in6krobn.fsf@gnu.org> References: <87d0y7grsz.fsf@netris.org> <874li6rq21.fsf@netris.org> <87d0wst84e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTrrS-00042u-EY for bug-guix@gnu.org; Fri, 15 Jun 2018 12:46:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTrrO-0004iF-IB for bug-guix@gnu.org; Fri, 15 Jun 2018 12:46:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:42688) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTrrO-0004iA-DT for bug-guix@gnu.org; Fri, 15 Jun 2018 12:46:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: 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") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Mark H Weaver Cc: 31380@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > I wanted to try =E2=80=98guix system vm-image -s i686-linux=E2=80=99 on m= y 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: --=-=-= Content-Type: text/x-patch Content-Disposition: inline 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") '()) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I suspect a KVM bug in Linux 4.17 though, because running the same =E2=80=98qemu-system-i386=E2=80=99 binary under strace works=E2=80=A6 Perh= aps 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=E2=80=99. --=-=-=--