From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 yMg+MLnQ9GQpAAEAG6o9tA:P1 (envelope-from ) for ; Sun, 03 Sep 2023 20:30:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yMg+MLnQ9GQpAAEAG6o9tA (envelope-from ) for ; Sun, 03 Sep 2023 20:30:17 +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 7801D5E9EE for ; Sun, 3 Sep 2023 20:30:17 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=p88YLzq6; 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=1693765817; 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=my2slUM3lJRCXe+abSRKD2f9p0ruOv4ptZrcpJcUaMaY4PVl1sB/9bIrB2LeC7dIwTHpuk ZK3W9As+qVIWnLVZGiEupFT+bk5ok68TzXOc1PKuJqpdn7zg5wHNDBoJeyQHl8asqrEhYy /nMR01QpBed1ChxJ+lLZ/2c86txPwMRErzhQRAIDxDd+HK+sGqXcxEpKIgAq4A/JIfSyUp rZB3DrQ04XcAs96kVzTjCq3XiUYn0f6hIH+FSFsvLhqwLKmYQa3miYwdvzlRKpJobnmXN1 ES6oeticxlo2aRoud45X542+P7Re7ho0l8/l87/u5Ed2JRn0I7Vuyzwk8YTXbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=p88YLzq6; 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=1693765817; a=rsa-sha256; cv=none; b=sWj80+nSluiEFNRdnJFgS6I0Q1sa4jOlysZjbVPhRI5z/55Hzg9KThEC1waXhFzRC9LZZA 68/irlc2fxHC61qSANG1SvvhaVGFeDGOGlJOMpks9dkfrEcMebI8hDTWaCnmwjbvTxjikE TTMR0S2TDXXYNUeXkbOOXjhA0M3Wkc4S0nHEa4mmby+9mGI4KKihj0s7dpeIYiWOywSITP tCR8g7CguvDs6liY2zbE/WmTVq5FlxjmpggLdZeYTwUGcQO9VKi/WsyPYSK4e+BbCM/42A VQDxvFsjjEd/Sac3UBS1qLhFewP8bk0Fs9esoVBFZ6WGgKBDpw5PlG2NttVt8Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcrrJ-0001jg-3f; Sun, 03 Sep 2023 14:30:05 -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 1qcrrG-0001jD-Va for bug-guix@gnu.org; Sun, 03 Sep 2023 14:30:03 -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 1qcrrG-0007ky-K5 for bug-guix@gnu.org; Sun, 03 Sep 2023 14:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qcrrF-0007e8-VT for bug-guix@gnu.org; Sun, 03 Sep 2023 14:30:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65716: 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:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65716 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 65716@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.169376575929258 (code B ref -1); Sun, 03 Sep 2023 18:30:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Sep 2023 18:29:19 +0000 Received: from localhost ([127.0.0.1]:46868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcrqY-0007bk-Qy for submit@debbugs.gnu.org; Sun, 03 Sep 2023 14:29:19 -0400 Received: from lists.gnu.org ([2001:470:142::17]:41206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcrqV-0007bW-Gp for submit@debbugs.gnu.org; Sun, 03 Sep 2023 14:29:17 -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 1qcrqQ-0001Uk-CO for bug-guix@gnu.org; Sun, 03 Sep 2023 14:29:10 -0400 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcrqN-0007ZR-Ts for bug-guix@gnu.org; Sun, 03 Sep 2023 14:29:10 -0400 Received: by mail-qt1-x834.google.com with SMTP id d75a77b69052e-41369b80875so2629841cf.1 for ; Sun, 03 Sep 2023 11:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693765746; x=1694370546; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=U13FpaErOzE5yTGv7m4e9YAfoJdhHAURiLi8urwq8Z0=; b=p88YLzq6seIdOhw+P6i4P6RRo5/gl8bZ6GImlnPJ7iMsZ8oh+0TpC6F9g8eUcb6/Ub /XIRA+jNNtimlg5W1dIPEWh0d8Pfq4a/oaywJwx3ZkWGYfnwAN/hWFOqEEuFjhZ2lYkh uE18A9AgwBhLIx71O4wPJt5cOFuq1vA3kAHYwstFaq0Fqx3+EB7mQ121nEzrRdivcK5p r+HK9Z1GhDY6mdKyrpi//CZE3e9e17kj8SfR0LC0TV7qMXFenaOoBvhZblQ9DmzTppj2 7CnnjAJ1DInmSPOgNmWgW49hgdLQHpCfLYmexF3lBbFLOxCO9k0jRlDJXUZF4ZkCXI5N ghYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693765746; x=1694370546; h=content-transfer-encoding:mime-version:user-agent:message-id:date :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=U13FpaErOzE5yTGv7m4e9YAfoJdhHAURiLi8urwq8Z0=; b=EeahK0JipOhVTdVeTL1qSURhc99Dvrnt43IEHxAzn8pXhqWcVbfhLOsBtbZGkCYOki Id7elLeF9xXSgQ94v+Zyix+QCxLbI2A5LOYjkXG/giOeIORwAaAuomGepTeu0Dvk2Xck obQrh5CndeHQfHki1+Ud81kW4g/ovRVapuSm4065IA107bh/anuGhhwADYW5SAlzisv1 NzayPw9kZRbBYRhnCuX/wORAT0vzq11ZyZfalpNHlX1n0c7ICircX4j5vZJT0eXyixYX qrQ4q6aFyGqS7fKs4jciAKPxoP0/+dgzmj/iNwOM4ExxfNSWhoz9jOfc+sRF9Tre+Mp/ d7qw== X-Gm-Message-State: AOJu0YzkHUvk/ZcsouBr5oDB8uY/IC0W7qMei9mg1I/qRTVQ8l58Rr4a i4F20+qh21kzY6kJgmI92BN/ColTZIY= X-Google-Smtp-Source: AGHT+IEbuIRiy7pwMyUVIdo6ZFizpro5vEXz8c0ONYqPL3c9pqV7k5vryBhavzILqvkg8OZnXqjp0Q== X-Received: by 2002:a05:622a:1494:b0:412:2dac:acca with SMTP id t20-20020a05622a149400b004122dacaccamr10633753qtx.4.1693765746247; Sun, 03 Sep 2023 11:29:06 -0700 (PDT) Received: from hurd (dsl-10-135-141.b2b2c.ca. [72.10.135.141]) by smtp.gmail.com with ESMTPSA id b23-20020ac85417000000b0040fd47985e6sm2976615qtq.97.2023.09.03.11.29.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Sep 2023 11:29:05 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 03 Sep 2023 10:39:22 -0400 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) Message-ID: <878r9nun4f.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) 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::834; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x834.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=unavailable 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: 7801D5E9EE X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: 2.77 X-Spam-Score: 2.77 X-TUID: +6a++/or/0Tu 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