all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 31380-done@debbugs.gnu.org
Subject: bug#31380: grub fails to build on i686-linux
Date: Sat, 16 Jun 2018 04:22:35 -0400	[thread overview]
Message-ID: <871sd75ees.fsf@netris.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")

Hi Ludovic,

ludo@gnu.org (Ludovic Courtès) writes:

> Mark H Weaver <mhw@netris.org> skribis:
>
>> Here's a proposed patch that I hope will fix the problem, although I'm
>> unable to easily test it because I no longer use binary substitutes, and
>> I have not yet built the core packages for i686-linux.
>>
>> However, I've applied this patch to my x86_64 system, and verified that
>> it does not cause any problems there.
>>
>> Would someone be willing to test it and report back?
>
> I tried it and it initially failed to build with:
[...]
> I fixed this and pushed as a7c8716928a240ba2c36d360e4ffeb447671fa6b.

Thanks very much!  Hydra has now successfully built GRUB on i686-linux,
so I'm closing this bug.

> 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:
> 
> 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")
>              '())
>  
> 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?

It would be better to auto-detect the presence of KVM support at run
time, but that's a wishlist item that deserves its own ticket.  This is
good enough for now.

> 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.

Sounds great, thanks again!

     Mark

      parent reply	other threads:[~2018-06-16  8:24 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
2018-07-04 13:25       ` Ludovic Courtès
2018-06-16  8:22     ` Mark H Weaver [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871sd75ees.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=31380-done@debbugs.gnu.org \
    --cc=ludo@gnu.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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.