GNU bug report logs - #60786
unsupported mips64el architecture can cause cryptic backtraces

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>; dated Fri, 13 Jan 2023 17:27:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Changed bug title to 'unsupported mips64el architecture can cause cryptic backtraces' from 'cross-kernel-headers can produce broken packages' Request was from Maxim Cournoyer <maxim.cournoyer@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 60786) by debbugs.gnu.org; 13 Jan 2023 22:12:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 13 17:12:22 2023
Received: from localhost ([127.0.0.1]:52623 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pGSHd-0006Ni-Lm
	for submit <at> debbugs.gnu.org; Fri, 13 Jan 2023 17:12:21 -0500
Received: from mail-qt1-f170.google.com ([209.85.160.170]:40724)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1pGSHb-0006NR-Fu
 for 60786 <at> debbugs.gnu.org; Fri, 13 Jan 2023 17:12:20 -0500
Received: by mail-qt1-f170.google.com with SMTP id jr10so12978506qtb.7
 for <60786 <at> debbugs.gnu.org>; Fri, 13 Jan 2023 14:12:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=DcXWQH1Cu4ZWZqgPQIFr55ggMqa2fzdG6xpSATt8Wcg=;
 b=R+0C+JYadjfjnJTkfj3FTnsGlnavdpTTRUljOxZiQC4Cd5rJ+Lb4s8rQYU2Tp+dnPE
 Ohe0iL0KvnMcOZVaGG7eWSkUS55P4k7HSH9Y1EKc+naJH1HFDcnixsz2fKB7CALUYtLC
 bEiG/8gSmRbZr2VMtrBHanYDA0YVCLwt2tmTQ6R5rwZC5mYBZ4ewgcQokt5elpg95HLk
 Gi2Tbr+hpJayHyDy22DD64Gka8L7VfkJ3ioXFP+NU+HWZHOGPAOZB2Kn/amy1rQTK+i7
 EQCh3cR9mvv5OebffqIWGDdxmMIXULuEDWqhS+zTypJXyampAeo1ZNETCfDzhGEdAMC7
 7bUg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=DcXWQH1Cu4ZWZqgPQIFr55ggMqa2fzdG6xpSATt8Wcg=;
 b=bn1wOlId8M5zo+/6wFthQKHoumv1bHufLMHhSrBrUmhhAOfUCmSVXRPxJBRBQP9CyZ
 R2vH6UBfkk6hOKNmMQBJ+vlGLjgz8WCg6YYQJNGQi4zoTGABdO3FtrAQRsQPkzmJVB/M
 vxfSrNPNj7lmLUOqey7W9gn9DNrnUa6/lqqCgOpwcW2S7TDOUqODYtW/rHtc+QirB+l0
 okXg5CEOINEijxWwiHLsTrQ/syQNCOlXoD5t06wLlSq9v1rOo3Gt2/tbX85D39vXtNQJ
 EOqWJh9/ZRcFwCcHM/jiRtBagZoi+Cs3SbRDRNsTACLrnqivDtu8mPjF3tEn6WoTKvoV
 7h8g==
X-Gm-Message-State: AFqh2krSvnqhXcisOPdRmnkg3oS3A/EawQnJDmDtyYfwB+0SYWi6mQ0F
 OvHSJyDJlnviLud4rqdpoBrZ/i3ZVyje+PnN
X-Google-Smtp-Source: AMrXdXtbde1OG1sRpLzdX4ZC4xlmZ18g/x9qNgOebMjlj865sakKg0Gxi+P54IoWF4Chf2hgqCiYDA==
X-Received: by 2002:ac8:460b:0:b0:3b2:39ee:dcf3 with SMTP id
 p11-20020ac8460b000000b003b239eedcf3mr9136198qtn.25.1673647933547; 
 Fri, 13 Jan 2023 14:12:13 -0800 (PST)
Received: from hurd (dsl-10-149-10.b2b2c.ca. [72.10.149.10])
 by smtp.gmail.com with ESMTPSA id
 i14-20020ac871ce000000b003a4f22c6507sm11212758qtp.48.2023.01.13.14.12.12
 for <60786 <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 13 Jan 2023 14:12:13 -0800 (PST)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: 60786 <at> debbugs.gnu.org
Subject: Re: bug#60786: cross-kernel-headers can produce broken packages
References: <87lem6firn.fsf@HIDDEN>
Date: Fri, 13 Jan 2023 17:12:11 -0500
In-Reply-To: <87lem6firn.fsf@HIDDEN> (Maxim Cournoyer's message of "Fri, 13
 Jan 2023 12:26:20 -0500")
Message-ID: <87358ef5j8.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
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 60786
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: -1.0 (-)

Hello,

Maxim Cournoyer <maxim.cournoyer@HIDDEN> writes:

> Hello,
>
> This issue was triggered by having make-uboot-package uses #:target [0],
> but it already exists on current master.  I've spent some time narrowing
> down the issue, and it is caused by the package returned by
> cross-kernel-headers in (gnu packages cross-base) being produced with a
> bogus arguments field, or at least one that can't be access via the
> package-arguments accessor:
>
> (use-modules (guix packages)
>              (gnu packages cross-base))
>
> (define linux-libre-headers-cross-mips64el-linux-gnuabi64
>   (cross-kernel-headers "mips64el-linux-gnuabi64"))
>
> (package-arguments linux-libre-headers-cross-mips64el-linux-gnuabi64)
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> In procedure struct-vtable: Wrong type argument in position 1 (expecting =
struct): #f
>
> Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
> scheme@(guix-user) [1]> ,bt
> In gnu/packages/cross-base.scm:
>    388:33  1 (loop (#:phases (modify-phases %standard-phases (delete (quo=
te configure)) (# (=E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)
> In ice-9/boot-9.scm:
>   1685:16  0 (raise-exception _ #:continuable? _)
>
> [0]  https://issues.guix.gnu.org/60224#30

OK, I think I've found the culprit:

--8<---------------cut here---------------start------------->8---
                 (setenv "ARCH" ,(platform-linux-architecture
                                  (lookup-platform-by-target target)))
--8<---------------cut here---------------end--------------->8---

in the definition of cross-kernel-headers*, in (gnu packages
cross-base).

When the target is "mips64el-linux-gnuabi64", lookup-platform-by-target
returns #f, which platform-linux-architecture does not expect.

--=20
Thanks,
Maxim




Information forwarded to bug-guix@HIDDEN:
bug#60786; Package guix. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 13 Jan 2023 17:26:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 13 12:26:33 2023
Received: from localhost ([127.0.0.1]:52291 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pGNp3-0002Pr-6y
	for submit <at> debbugs.gnu.org; Fri, 13 Jan 2023 12:26:33 -0500
Received: from lists.gnu.org ([209.51.188.17]:35704)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1pGNp1-0002Pi-EM
 for submit <at> debbugs.gnu.org; Fri, 13 Jan 2023 12:26:32 -0500
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 1pGNou-00072G-O5
 for bug-guix@HIDDEN; Fri, 13 Jan 2023 12:26:24 -0500
Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829])
 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 1pGNot-0003ZA-4h
 for bug-guix@HIDDEN; Fri, 13 Jan 2023 12:26:24 -0500
Received: by mail-qt1-x829.google.com with SMTP id fa5so14211989qtb.11
 for <bug-guix@HIDDEN>; Fri, 13 Jan 2023 09:26:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=8mosykFO8H5UtYQN4O98nwzLI6YmIZbspTeQTT0UOvI=;
 b=L8ITc/azJEWnQTKdlsCTNbT59LtTXT2DncADeyoWGh8h4fhcwgLEuZoRa1RTUPn1FF
 kDrzijP+6aeGRexRzk3u2tay9cPWGes0RkNqJWWqKXKbW2HAunhjbUuHBh//XovZq21F
 X4l3Y4AI7z2rvRG7s904d6hW14KLmksuvSKmS902ElMtcCskDNAT7ZIYc5hP4kcus0TW
 pMbZkRViFJ2YP6jgC9qwyUFxi23Q5aW0UF0qrqY1IzBrmyHTwtNmhMiyTbYOPUiA6cns
 Fo4lo/XFTK/vi22KIBkKfnZQbp4KieZYc3g/TuUiasYd5JM1wkXjUSlWgANpV3jkXhBv
 Enrg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 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=8mosykFO8H5UtYQN4O98nwzLI6YmIZbspTeQTT0UOvI=;
 b=0wSV0dYwEj3FJQdymlYdHv7QaSwjxYk307blis/KctBxHi4GP6u7pGc5M5NGavDSM2
 dTQXdOpEAVjKTtp1EdxpSsu1V+96vU7ptIV4bC2O5ezzAa8JkjV/TcrvhyfAyy4PZ4+1
 dyRiQ4y/2T65PiN+r6MN/eHgrScYahXlepH89Udfpw3e83bpfgr08304RO7V/aspxaHn
 Yf1wwpM2HIw3eDdpUKcpoeyOLZvLxbRH4RUdmFbnIz0+uFHoiteYe2cy1x5mY0//nUpW
 fBumlGtm6SjRZeszDS3GxhpvrC8XeLnW8qUQ/u5IKfyiTveL89obS2+/DCRZsC0GLnaR
 QwhA==
X-Gm-Message-State: AFqh2krZ9KM65uhFwnfkMCPRdXRP6j0TIDTk7PstUQwPdAoWHzKz/2ET
 9vDcEXxsUsHvnPXCsN8XGdTkwbZ+LK6kfXsg
X-Google-Smtp-Source: AMrXdXsMU+mU3td8gdhAqVV94u4qTP/gpVfdWzK3HoWuU8c9oy+FjLZfWFx4Enqx1pZu2eV+d4skJA==
X-Received: by 2002:a05:622a:90e:b0:3a3:56f7:196a with SMTP id
 bx14-20020a05622a090e00b003a356f7196amr115828815qtb.7.1673630781818; 
 Fri, 13 Jan 2023 09:26:21 -0800 (PST)
Received: from hurd (dsl-10-149-10.b2b2c.ca. [72.10.149.10])
 by smtp.gmail.com with ESMTPSA id
 i14-20020ac871ce000000b003a4f22c6507sm10882688qtp.48.2023.01.13.09.26.21
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 13 Jan 2023 09:26:21 -0800 (PST)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: bug-guix <bug-guix@HIDDEN>
Subject: cross-kernel-headers can produce broken packages
Date: Fri, 13 Jan 2023 12:26:20 -0500
Message-ID: <87lem6firn.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::829;
 envelope-from=maxim.cournoyer@HIDDEN; helo=mail-qt1-x829.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.3 (-)
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: -2.3 (--)

Hello,

This issue was triggered by having make-uboot-package uses #:target [0],
but it already exists on current master.  I've spent some time narrowing
down the issue, and it is caused by the package returned by
cross-kernel-headers in (gnu packages cross-base) being produced with a
bogus arguments field, or at least one that can't be access via the
package-arguments accessor:

--8<---------------cut here---------------start------------->8---
(use-modules (guix packages)
             (gnu packages cross-base))

(define linux-libre-headers-cross-mips64el-linux-gnuabi64
  (cross-kernel-headers "mips64el-linux-gnuabi64"))

(package-arguments linux-libre-headers-cross-mips64el-linux-gnuabi64)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1 (expecting st=
ruct): #f

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix-user) [1]> ,bt
In gnu/packages/cross-base.scm:
   388:33  1 (loop (#:phases (modify-phases %standard-phases (delete (quote=
 configure)) (# (=E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)
In ice-9/boot-9.scm:
  1685:16  0 (raise-exception _ #:continuable? _)
--8<---------------cut here---------------end--------------->8---

[0]  https://issues.guix.gnu.org/60224#30

--=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#60786; 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: Sat, 14 Jan 2023 03:15:02 UTC

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