unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 65716@debbugs.gnu.org
Subject: bug#65716: bug#65718: Importing a toolchain packages causes top-level dependency cycles
Date: Mon, 11 Sep 2023 10:35:50 -0400	[thread overview]
Message-ID: <87a5tsydyx.fsf_-_@gmail.com> (raw)
In-Reply-To: <87il8qrm53.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 04 Sep 2023 11:30:48 -0400")

Hello,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

[...]

> A very simple reproducer on current master:
>
> modified   gnu/packages/firmware.scm
> @@ -43,6 +43,7 @@ (define-module (gnu packages firmware)
>    #:use-module (gnu packages admin)
>    #:use-module (gnu packages autotools)
>    #:use-module (gnu packages assembly)
> +  #:use-module (gnu packages avr)
>    #:use-module (gnu packages backup)
>    #:use-module (gnu packages base)
>    #:use-module (gnu packages bash)
>
>
> And then:
>
> $ ./pre-inst-env guix build hello

[...]

> ;;; loading /home/maxim/src/guix/gnu/packages/unicode.scm
> error: cross-gcc: unbound variable

There were multiple top-level problems in the avr and embedded modules,
which I've fixed in bug#65860 [0] (pending review).

I've added some documentation w.r.t. rules to avoid cyclic module
dependencies to hopefully educate people like myself about the problem
and how to avoid it in the future.

On a related note, I've also sent some improvement to guile-devel [1] so
that we can track the nested level of loaded modules when setting
'%load-verbosely' to #t.

[0]  https://issues.guix.gnu.org/65860
[1]  https://lists.gnu.org/archive/html/guile-devel/2023-09/msg00021.html.

-- 
Thanks,
Maxim




      reply	other threads:[~2023-09-11 14:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-03 14:39 bug#65716: Importing a toolchain packages causes top-level dependency cycles Maxim Cournoyer
2023-09-03 18:55 ` Maxim Cournoyer
2023-09-03 19:56   ` bug#65718: " Ludovic Courtès
2023-09-03 20:14     ` bug#65716: " Maxim Cournoyer
2023-09-04  2:16       ` Maxim Cournoyer
2023-09-04 15:30     ` Maxim Cournoyer
2023-09-11 14:35       ` Maxim Cournoyer [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

  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=87a5tsydyx.fsf_-_@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=65716@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 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).