From: "Ludovic Courtès" <ludo@gnu.org>
To: Mathieu Othacehe <othacehe@gnu.org>
Cc: 44952-done@debbugs.gnu.org
Subject: bug#44952: Guix cross-compilation is broken.
Date: Tue, 01 Dec 2020 00:12:24 +0100 [thread overview]
Message-ID: <87eekajv6v.fsf@gnu.org> (raw)
In-Reply-To: <87y2ikosf1.fsf@gnu.org> (Mathieu Othacehe's message of "Sun, 29 Nov 2020 20:48:50 +0100")
Hi!
Mathieu Othacehe <othacehe@gnu.org> skribis:
> When I pushed this patchset[1], I didn't anticipate that Avahi depends
> on glib which doesn't cross-compile. To fix the situation, I pushed
> d9f05c70a6af1087de1717ff20036efa1afef5fb and
> 35a32fefb4695442265809805145b7a262ae4988.
>
> While, it now allows to build and cross-build Guix, there's still an
> issue when evaluating the "guix-master" specification with the CI.
> It looks like "%current-target-system" doesn't have the expected value
> in the propagated-inputs.
One way to reproduce it is:
--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix build -e '((@ (gnu system image) system-image) (@ (gnu system images hurd) hurd-barebones-qcow2-image))' -n --no-grafts
guix build: error: gnu/packages/glib.scm:181:2: glib@2.62.6: build system `meson' does not support cross builds
--8<---------------cut here---------------end--------------->8---
or:
--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ,use(gnu system images hurd)
scheme@(guile-user)> ,use(gnu image)
scheme@(guile-user)> ,use(guix)
scheme@(guile-user)> ,use(guix grafts)
scheme@(guile-user)> (%graft? #f)
$2 = #t
scheme@(guile-user)> ,use(gnu system image)
scheme@(guile-user)> (with-store s (run-with-store s (lower-object (system-image hurd-barebones-qcow2-image))))
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
ERROR:
1. &package-cross-build-system-error: #<package glib@2.62.6 gnu/packages/glib.scm:181 7f986f1ea780>
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
--8<---------------cut here---------------end--------------->8---
The problem here is that, when populating in ‘packages->manifest’,
called from ‘packages->profile-entry’ in (gnu services),
(%current-target-system) is #false.
This is fixed by commit 07a33b1d21e240781072352f93206cfdc765f907.
Sorry that this spoiled the pleasure of merging service discovery
support!
Thanks,
Ludo’.
next prev parent reply other threads:[~2020-11-30 23:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-29 19:48 bug#44952: Guix cross-compilation is broken Mathieu Othacehe
2020-11-30 23:12 ` Ludovic Courtès [this message]
2020-12-01 8:46 ` Mathieu Othacehe
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=87eekajv6v.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=44952-done@debbugs.gnu.org \
--cc=othacehe@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).