unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: guix-devel@gnu.org
Subject: Implications of QEMU binfmt transparent emulation for builds
Date: Sat, 06 Mar 2021 21:35:24 +0000	[thread overview]
Message-ID: <87eegsnexv.fsf@cbaines.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1781 bytes --]

Hey,

I'm starting to play with mixing native and emulated builds with the
Guix Build Coordinator again. I did do this many months ago, but at that
time, there wasn't support for targeting retries across a range of
machines, to help avoid blockages due to QEMU issues.

Anyway, something that's been on my mind regarding QEMU and builds is
how well this matches up with building natively. In particular, I'm
concerned that there are some derivations that will build on system A
with some QEMU configuration allowing binaries for system B to be run,
but won't build if that QEMU support wasn't there. I think there's also
a chance that you could have a derivation for system A that builds on a
system with QEMU support for system B, but then wouldn't build natively
on system B.

I think the first scenario is more likely, mainly because I wonder if
this happens with cross built packages. If the package attempts to run
software built for the target system, that will work if there's QEMU
support there for that target system, but not if that QEMU support is
lacking.

This is just a theory at this point, I at least don't know of any cases
of this happening, but I also haven't been looking. Any ideas?

I'd like the Guix Build Coordinator agents to be able to report the
configuration of the machine at the time builds happen, so maybe once
that's a feature, and QEMU support can be detected, then it'll be
possible to look for cases where a change in QEMU support affects the
build result.

I've been thinking about this lately because I'd like to maybe use QEMU
to help build things for aarch64-linux and armhf-linux, but I don't want
to do something that could impact x86_64-linux derivations building for
other architectures (which guix.cbaines.net does do).

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

             reply	other threads:[~2021-03-06 21:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-06 21:35 Christopher Baines [this message]
2021-03-06 23:19 ` Implications of QEMU binfmt transparent emulation for builds Léo Le Bouter
2021-03-07 11:44   ` Christopher Baines
2021-03-07  1:34 ` Mark H Weaver
2021-03-07 12:00   ` Christopher Baines
2021-04-21  3:29   ` Maxim Cournoyer
2021-03-10 10:47 ` Ludovic Courtès

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=87eegsnexv.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=guix-devel@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 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).