From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EN35CcrQ9GSPNwEAauVa8A:P1 (envelope-from ) for ; Sun, 03 Sep 2023 20:30:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EN35CcrQ9GSPNwEAauVa8A (envelope-from ) for ; Sun, 03 Sep 2023 20:30:34 +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 F39605F71E for ; Sun, 3 Sep 2023 20:30:33 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=OeSIzTBi; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693765834; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=U13FpaErOzE5yTGv7m4e9YAfoJdhHAURiLi8urwq8Z0=; b=Hq/OzqreiB9cQAz4n0rhfetKdqceHaLuF8mWWjXien7+KhzD8AHGtoN2c6c8aXyLjdLsf0 3WcL+nl114rZPCbuTyWt9BzbKBidiQV0RMdxwasQU4J3EdAAbpFtQmcej+t7vfq4xgqrpL X7vzknz63JX+rnpsnfWkKx3DXhwbecxJQsoeROIbg7bbU8ehsTqMGynqy4mWrCOPp/IVhL E1nd2WC+buYKC0gfr2TnMfzjZSS7+TE/Jv349xGbt83OpaeLwPDTsFNbzkK26g5rpcJwkn GjLsN8LfJfpOVZU3XuhGOgNhFUgeSs9eXQNSNTg8rM6mAUIJiP7CA++vpiel8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=OeSIzTBi; 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=1693765834; a=rsa-sha256; cv=none; b=JardF17yU/hDFcoPyn2cK9mcRPy5393HofDtMCshq/QhATijgt0yZ3KUptccZXjh6Z7eXu lXW5lHgBHlce59lrFAqUt0lwTSh4vW/ynqUwsF9ISXxjBS+GEH5OJtPjElabinGCJQsKzU 8WQHAbcMWoUQTjQDniJ0QCjcL/JvZjYa/pOv568GMYazKDCRSlrbUndkiGgzT3RORRmImy xnPqnDrVvbTCSgSVMoOvHgjoAkZ5QbCBRK/pHyOxi9wqSximDMq7+0Jxt//4MBv7KzmxaE chgixxG+ieT3l8HjQd9oK+00vDGzD9OmYiyeofNhnFkSpFIbajUcb87mP02U2w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcrrM-0001kM-Fr; Sun, 03 Sep 2023 14:30:08 -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 1qcrrI-0001jV-KZ for bug-guix@gnu.org; Sun, 03 Sep 2023 14:30:04 -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 1qcrrI-0007uf-4R for bug-guix@gnu.org; Sun, 03 Sep 2023 14:30:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qcrrH-0007hM-Gn for bug-guix@gnu.org; Sun, 03 Sep 2023 14:30:03 -0400 X-Loop: help-debbugs@gnu.org Subject: 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: Sun, 03 Sep 2023 18:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65718 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 65718@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.169376576429294 (code B ref -1); Sun, 03 Sep 2023 18:30:03 +0000 Received: (at submit) by debbugs.gnu.org; 3 Sep 2023 18:29:24 +0000 Received: from localhost ([127.0.0.1]:46875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcrqd-0007cP-Nt for submit@debbugs.gnu.org; Sun, 03 Sep 2023 14:29:24 -0400 Received: from lists.gnu.org ([2001:470:142::17]:41206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcrqb-0007bW-Et for submit@debbugs.gnu.org; Sun, 03 Sep 2023 14:29:21 -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 1qcoG8-0005ny-6v for bug-guix@gnu.org; Sun, 03 Sep 2023 10:39:28 -0400 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcoG5-0002TG-Jd for bug-guix@gnu.org; Sun, 03 Sep 2023 10:39:27 -0400 Received: by mail-qt1-x830.google.com with SMTP id d75a77b69052e-41479b9b4f1so5253011cf.3 for ; Sun, 03 Sep 2023 07:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693751964; x=1694356764; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=U13FpaErOzE5yTGv7m4e9YAfoJdhHAURiLi8urwq8Z0=; b=OeSIzTBiYNJYDmlHklTEma6WdTs0UROD5GwKnB6rJ5FMlIhYgNtL/kNS8AbNDJvp8P sX2Tb+X/Sqxh7blonQD5cn4j6ht4a6n6d4Yy7sHDi3pS5ML4wN3xB5QF6K5FAndSlMM6 GowpesmKpUATduBcYC4BEsizERd4cLwyXrmw4S/CC3VwhjEb/NMiLKogqIS0ZU2/afYz OTsfcFOqvj2eoKrvzb4GEND/LjO+T29dSlQqrifKO/ZqFhHiV1zJsM4jCay8RlEuTQu1 pgjnlT4KLBgfUmms6sAS1Q1DA7G+I2xA5Z8D7odBrZZopGnqURmc8ecS3GjNSHYwq8mr U6kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693751964; x=1694356764; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U13FpaErOzE5yTGv7m4e9YAfoJdhHAURiLi8urwq8Z0=; b=eYTnszUPLrMonmLO+2nIA/oqQ2TfBGy4fR26ZNZ5qNFUoulolWen6c7JU+tDCvWnIF fZofryz6ZX+OLYKr43YDdmuYJ7ua33UeBdKSd1+B7PadgN2okVsAmcG84Z8uA4z8lQ6/ pq5wWxjmeuNEgNarBKr+0fZZQCTpmQ7o/RAhWzcs8UULs/x60Aiw7SKUJ5vrrNcTvRO0 /MTO/zzXr/lnb2nAmpcF8+RvmFwcgufVbDP+iy5JdYEdbMvTkfVuNrqd2V0DRVeP/t1Y wFEYnaC7M1ssr1B91a+rLIfGKBHyOFRay8hfLrAzJwWFOE3SlGUKJYdKsvHRFABJrW9j +Ddg== X-Gm-Message-State: AOJu0YycpGGcQ92lAMygTLTc4igICoepokA/CoXe5ii146ZWNDPkrukg P2r1QibW8GNzmRXhdU09M5QZAqTMafE= X-Google-Smtp-Source: AGHT+IHA5bn4aBRhtCGiRwKZVo7M0qOkSi71pbHIape09CWvnJLr2M9pg6O2OuOhWqwa++64ElvUNQ== X-Received: by 2002:a05:622a:1495:b0:410:a018:c7ec with SMTP id t21-20020a05622a149500b00410a018c7ecmr9947422qtx.6.1693751964209; Sun, 03 Sep 2023 07:39:24 -0700 (PDT) Received: from hurd (dsl-10-135-141.b2b2c.ca. [72.10.135.141]) by smtp.gmail.com with ESMTPSA id g3-20020ac87743000000b004035b79860dsm2892809qtu.81.2023.09.03.07.39.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Sep 2023 07:39:23 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 03 Sep 2023 10:39:22 -0400 Message-ID: <87sf7vuxr9.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::830; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x830.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Queue-Id: F39605F71E X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: 2.77 X-Spam-Score: 2.77 X-TUID: cuAkCbrGC8gK Hello, Attempting to add a new (gnu packages ergodox) module, it fails with the following error: --8<---------------cut here---------------start------------->8--- [ 11%] LOAD guix/store/deduplication.scm [ 11%] LOAD guix/store/roots.scm [ 11%] LOAD guix/config.scm [ 11%] LOAD guix/tests.scm ice-9/eval.scm:293:34: error: cross-gcc: unbound variable hint: Did you forget `(use-modules (gnu packages cross-base))'? make[2]: *** [Makefile:6997: make-core-go] Error 1 make[2]: Leaving directory '/home/maxim/src/guix' make[1]: *** [Makefile:6083: all-recursive] Error 1 make[1]: Leaving directory '/home/maxim/src/guix' make: *** [Makefile:4197: all] Error 2 --8<---------------cut here---------------end--------------->8--- Which looks like a circular dependency problem at the top level. Here's the content of gnu/packages/ergodox.scm: --8<---------------cut here---------------start------------->8--- ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2023 Maxim Cournoyer ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages ergodox) #:use-module (gnu packages avr) #:use-module (guix build-system gnu) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages)) (define (make-ergodox-firmware layout) (let ((revision "0") (commit "89b7e2bfdafb2a87e0248846d5c95cc5e9a27858")) (package (name (string-append "ergodox-firmware-" layout)) (version (git-version "1" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/benblazak/ergodox-firmware") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "1gy2332kdqk8bjzpcsripx10896rbvgl0ic7r344kmpiwdgm9480")))) (build-system gnu-build-system) (arguments (list #:make-flags #~(list (string-append "LAYOUT=3D" layout)) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'chdir (lambda _ (chdir "src"))) ;; The Makefile-based build system lacks configure ;; and install targets. (delete 'configure) (replace 'install (lambda _ (install-file "firmware.hex" #$output) (install-file "firmware.eep" #$output)))))) (native-inputs (list avr-toolchain)) (home-page "http://www.ergodox.io") (synopsis "Firmware for the ErgoDox keyboard") (description (format #f "This package contains the original firmware = for the ErgoDox keyboard, built using the ~a firmware. It contains two files: = the @file{firmware.hex} and the @file{firmware.eep} files, which can be loaded = to a target using the @code{teensy-loader-cli} package." layout)) (license license:expat)))) (define-public ergodox-firmware-colemak-jc-mod (make-ergodox-firmware "colemak-jc-mod")) (define-public ergodox-firmware-colemak-symbol-mod (make-ergodox-firmware "colemak-symbol-mod")) (define-public ergodox-firmware-dvorak-kinesis-mod (make-ergodox-firmware "dvorak-kinesis-mod")) (define-public ergodox-firmware-qwerty-kinesis-mod (make-ergodox-firmware "qwerty-kinesis-mod")) (define-public ergodox-firmware-workman-p-kinesis-mod (make-ergodox-firmware "workman-p-kinesis-mod")) --8<---------------cut here---------------end--------------->8--- Commenting out the '(native-inputs (list avr-toolchain))' line resolves the problem, but obviously breaks the package, which requires avr-gcc and friends. Another similar report was made in . --=20 Thanks, Maxim