From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KJ9UNCUm/2T/MgAA9RJhRA:P1 (envelope-from ) for ; Mon, 11 Sep 2023 16:37:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KJ9UNCUm/2T/MgAA9RJhRA (envelope-from ) for ; Mon, 11 Sep 2023 16:37:25 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 668DD564C1 for ; Mon, 11 Sep 2023 16:37:25 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=hjTNjN4S; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694443045; a=rsa-sha256; cv=none; b=HeEcwU6k98BeukjseQqJ1raUHQFUQZVP89VTdSnoW7H1Zvx9crqxaMexXASdQJpZpOO1xg U3sYowlyxQQeeL4Zj3npNIfveTu5tdgh+JyGYJFGzUDdvrrDZGTiU3T9uHgXqWSIb64lg2 xSf/wqSn296X4sx2IMobktk9TCUaStSpASUpNgS3SV+ocfTxZ4QtJuQf5gZxW9WaA2j9jB MxZuwPlKII7TxieL6udBM7anNR6pyYdRxthokcYrOQHKRwOBeMp+VWKYvhJe0twd9qfzjn yv+XyabdHW1PwVhcN19SEso9TBu+LCnTTLmfsZHs+O9bqGXxZM1mT2faZsCliA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694443045; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=kWib3wffOnXvB9+PIa52Rs198nGdpI4SioRAo+gjJ2g=; b=jLN5ZKzLOQetBjMMcyfFBXZdHfTQ7i4X2gKfcbr6No/lI4p5W+s+OjGmR2vDINyG15dIvU IkWqIcjnpfudztlw7yODp1JXDlDWWcpRym5VGY6PeacuLFNcc5F6DUVtWyPE9Pff2rgLxc ifYzRhCWR0Ygtk2BEZyQbc4UHvp9CtZriEBEjCluN2jMq7qABRsxuhJmGjUwoq7Q0cPSws urJfiqEzmQ/KIoIGN7004BSYkYk3OnuG7Esu5i89Id6b+pT5PR5qnjkWABLfq0URuObyPV lf2tReJXZmBRkm4sCg/wkbcYtDOp8l4p0zXBHx2HLp1QB/W+Adqj2Xs3n9guEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=hjTNjN4S; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfi29-0002Fn-8K; Mon, 11 Sep 2023 10:37:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfi27-0002FG-GV for bug-guix@gnu.org; Mon, 11 Sep 2023 10:36:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qfi26-00056q-8V for bug-guix@gnu.org; Mon, 11 Sep 2023 10:36:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfi2A-0006zW-9d for bug-guix@gnu.org; Mon, 11 Sep 2023 10:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65716: bug#65718: Importing a toolchain packages causes top-level dependency cycles Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 11 Sep 2023 14:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65716 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 65716@debbugs.gnu.org Received: via spool by 65716-submit@debbugs.gnu.org id=B65716.169444296626789 (code B ref 65716); Mon, 11 Sep 2023 14:37:02 +0000 Received: (at 65716) by debbugs.gnu.org; 11 Sep 2023 14:36:06 +0000 Received: from localhost ([127.0.0.1]:54330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfi1G-0006y0-5M for submit@debbugs.gnu.org; Mon, 11 Sep 2023 10:36:06 -0400 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]:55478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfi1C-0006xT-7H for 65716@debbugs.gnu.org; Mon, 11 Sep 2023 10:36:05 -0400 Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3a812843f0fso2775042b6e.2 for <65716@debbugs.gnu.org>; Mon, 11 Sep 2023 07:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694442952; x=1695047752; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=kWib3wffOnXvB9+PIa52Rs198nGdpI4SioRAo+gjJ2g=; b=hjTNjN4Sn9Mxd3g70Wfn/nRtXEhotvm028ncFcapvgpk4DAq1DvivixDqXBbImNtG0 NQ2ZsvTVSDiLteQ7E7l68x5U0Ix3ZA06Y3/T0kwUALvdBOwoCZt45gGCP2wApTaItgXS c2wO5Ii/8XLh3Ar2hyl3aRhvRLNa2QoQW5ienPFD99AcMUhkAjnuWu/buU2eJJs2Xxx2 /il2nQSJAt/pZjSf1Lb63v2E73hAhkwPptKRxSS/4D95bDfR12hRQTK2Uc4p2SnoemRF Fq5ns8knrdNffPaQIMAYy1i1AbMjXalmz8zVq3a47RYTDihBSgdj74IfBRt4c/JhqHmr kTjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694442952; x=1695047752; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kWib3wffOnXvB9+PIa52Rs198nGdpI4SioRAo+gjJ2g=; b=T6Py/Cb0vRaeUgF5qIsJeKfCaF+H8qJzS19dvuGnK4JOe2z1QU9f/zs3BEKDO1vGNz p7GYM7/okGXKvq/qIYRsJJlmHSWQFGT4e5566Z+w+fz7AVBopMEvkFk5M2yE0A6S3Bpz kxwWDTj/9UIOii8uL3XOVzPdcBAtEJyXgiFrcd1fDZYHlzgk3EytqXF+JyrrF1GHWjXh lRmcuFZ5PEEhCwG/ubGt4iPP6md/JKNx4bsDTNWPte/gG/jFCQDAa64OD7YdzHcT/grZ qV5Sx/4EipI9jlPDkBINzoLJUDZr8PW420ZyYSSH9Cq3pcyXn4+MdTZoK1qndfxTYdqh SLMw== X-Gm-Message-State: AOJu0YzkfVmAN23cRLaEAU2Ps+R7GlfaQWr7z9QsvAg5e9OGY5+ZFhbh FW3vZ+p6Doc9/gi8sCUb/GPFKVuD3/A= X-Google-Smtp-Source: AGHT+IEAcuWuGkMMKpUMIqGYGPfTY4+SxeVbzJyIs2AtOXLY1+ZQMJ2sUbOO1ltkTlYt5lcTjcEm6Q== X-Received: by 2002:a05:6808:1286:b0:3a6:febf:fb with SMTP id a6-20020a056808128600b003a6febf00fbmr11077807oiw.22.1694442952246; Mon, 11 Sep 2023 07:35:52 -0700 (PDT) Received: from hurd (dsl-141-150.b2b2c.ca. [66.158.141.150]) by smtp.gmail.com with ESMTPSA id o15-20020ac8554f000000b004108ce94882sm2637618qtr.83.2023.09.11.07.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 07:35:51 -0700 (PDT) From: Maxim Cournoyer References: <878r9nun4f.fsf@gmail.com> <87zg23t7cr.fsf@gmail.com> <871qffdo9v.fsf_-_@gnu.org> <87il8qrm53.fsf@gmail.com> Date: Mon, 11 Sep 2023 10:35:50 -0400 In-Reply-To: <87il8qrm53.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 04 Sep 2023 11:30:48 -0400") Message-ID: <87a5tsydyx.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.12 X-Spam-Score: -5.12 X-Migadu-Queue-Id: 668DD564C1 X-Migadu-Scanner: mx2.migadu.com X-TUID: Y7OJoKR7GKOg Hello, Maxim Cournoyer 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