GNU bug report logs - #65718
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 #65716; dated Sun, 3 Sep 2023 18:30:03 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:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 03 14:29:24 2023
Received: from localhost ([127.0.0.1]:46875 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qcrqd-0007cP-Nt
	for submit <at> 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 <maxim.cournoyer@HIDDEN>) id 1qcrqb-0007bW-Et
 for submit <at> 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 <maxim.cournoyer@HIDDEN>)
 id 1qcoG8-0005ny-6v
 for bug-guix@HIDDEN; 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 <maxim.cournoyer@HIDDEN>)
 id 1qcoG5-0002TG-Jd
 for bug-guix@HIDDEN; Sun, 03 Sep 2023 10:39:27 -0400
Received: by mail-qt1-x830.google.com with SMTP id
 d75a77b69052e-41479b9b4f1so5253011cf.3
 for <bug-guix@HIDDEN>; 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 <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 03 Sep 2023 07:39:23 -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
Message-ID: <87sf7vuxr9.fsf@HIDDEN>
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@HIDDEN; 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-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#65718; 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.