GNU bug report logs - #65716
Importing a toolchain packages causes top-level dependency cycles

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Maxim Cournoyer <maxim.cournoyer@HIDDEN>; merged with #65718; dated Sun, 3 Sep 2023 18:30:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Merged 65716 65718. Request was from Maxim Cournoyer <maxim.cournoyer@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Sep 2023 18:29:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 03 14:29:19 2023
Received: from localhost ([127.0.0.1]:46868 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qcrqY-0007bk-Qy
	for submit <at> 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 <maxim.cournoyer@HIDDEN>) id 1qcrqV-0007bW-Gp
 for submit <at> 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 <maxim.cournoyer@HIDDEN>)
 id 1qcrqQ-0001Uk-CO
 for bug-guix@HIDDEN; 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 <maxim.cournoyer@HIDDEN>)
 id 1qcrqN-0007ZR-Ts
 for bug-guix@HIDDEN; Sun, 03 Sep 2023 14:29:10 -0400
Received: by mail-qt1-x834.google.com with SMTP id
 d75a77b69052e-41369b80875so2629841cf.1
 for <bug-guix@HIDDEN>; 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 <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 03 Sep 2023 11:29:05 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: bug-guix <bug-guix@HIDDEN>
Subject: Importing a toolchain packages causes top-level dependency cycles
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 <bug-guix@HIDDEN>
 (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@HIDDEN>
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@HIDDEN; 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-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

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 <maxim.cournoyer@HIDDEN>
;;;
;;; 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 <http://www.gnu.org/licenses/>.

(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
<https://lists.gnu.org/archive/html/help-guix/2023-01/msg00013.html>.

--=20
Thanks,
Maxim




Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#65716; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 3 Sep 2023 18:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.