From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IDIQDHHBdWI6uAAAbAwnHQ (envelope-from ) for ; Sat, 07 May 2022 02:46:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2CsTDHHBdWLMRwEAauVa8A (envelope-from ) for ; Sat, 07 May 2022 02:46:41 +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 B63F78861 for ; Sat, 7 May 2022 02:46:40 +0200 (CEST) Received: from localhost ([::1]:33426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nn8ak-00035n-Il for larch@yhetil.org; Fri, 06 May 2022 20:46:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nn8aA-000349-Ir for bug-guix@gnu.org; Fri, 06 May 2022 20:46:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56218) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nn8aA-0005ow-7i for bug-guix@gnu.org; Fri, 06 May 2022 20:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nn8aA-00079D-63 for bug-guix@gnu.org; Fri, 06 May 2022 20:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55283: =?UTF-8?Q?=E2=80=98tests/guix-shell-export-manifest.sh=E2=80=99?= fails on aarch64-linux Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 07 May 2022 00:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55283 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos , raingloom , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 55283@debbugs.gnu.org Received: via spool by 55283-submit@debbugs.gnu.org id=B55283.165188432827410 (code B ref 55283); Sat, 07 May 2022 00:46:02 +0000 Received: (at 55283) by debbugs.gnu.org; 7 May 2022 00:45:28 +0000 Received: from localhost ([127.0.0.1]:50115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nn8Zc-000782-EZ for submit@debbugs.gnu.org; Fri, 06 May 2022 20:45:28 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:36714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nn8Zb-00077f-9j for 55283@debbugs.gnu.org; Fri, 06 May 2022 20:45:27 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:20]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 357EB1ABDB; Fri, 6 May 2022 17:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1651884321; bh=VUvr1lpwhIyK8+T3kBz1eV60y2I2oez+0G5jnBYbo/k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=i/oqi55Nph0kCr0DN0vbYU7g2zzwakZm26eBFNb4x99TeaMZLsYQD2DSXfGYtg2E1 ynxnpSlWUWSpJ6OD1WPpBA364H5cgS/M/sWPopHU8SymCw5Q74A+sC2+MDtcGIAnT9 zNQS+JoZYP2cBOyJdgYDqSNhWXWBkwxB+F00ng0JgSPywAkLDwV3hMiu+USVimXJ9x 2yxUkIauC3+A7utSrnX45NoCJ7OwQZKHxWbDx9pBrlUz98A4JnuX+BaeCt/o08Xant GX1Ve6U/S6EA1E/kLfN+KYabY0UQK3xJhK1HQPxboSnzjs96Mpe0Q09A15XqR241XT 30+CEBlCXBgkA== From: Vagrant Cascadian In-Reply-To: <87wney6vwq.fsf@contorta> References: <87ee1761ci.fsf@inria.fr> <20220506022826.5089eb2c@riseup.net> <5d219586c7a9a5ed2d89b12db73385d9d55adeb9.camel@telenet.be> <871qx68g33.fsf@contorta> <87wney6vwq.fsf@contorta> Date: Fri, 06 May 2022 17:45:15 -0700 Message-ID: <87tua26uhw.fsf@contorta> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651884400; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=hDkHYMWMessoRNTaOh/gxF7QVZazvdhdqGv3j72I0gw=; b=DWqVjH6ffuAa3KHpxsfjkKcApqkzp5cRdQ1Lp5DzoPQ48WIsCeGEpjXTO6c8L3YDkhd7Sr CpAqe7v+A/HYFfrOTbUSPUvwj1fBqi9lwzeb2DuT52vnvkIc+VC5DWblphPRrum/AvhWS8 YSYe+8mEhuk2BLRFEufX4kJlztcF9le6DvuNki/6797pirhPwfsmadRARB8O5Wj6OZ5D1h e0eSiVxR7EpfsNSEBlYdwrnt1eOAjXM9HuuuHKGWDlG5/JPr/k5HS815lRvDJwI8ZFKh2E G+Xr4skSN1Bryq03CaoyLPr8r/E61qhAyegAr+4SW5unOYXQOBfS3KvDcY36+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651884400; a=rsa-sha256; cv=none; b=dJwSoaPmDAUELXdYBY2t7lG7DnS/u9W9QjIZGFDOLJhdkbMflM5avQbh5K7/0W0J+kY5Tu DWiM3y8A3ySHFZ4VVU+J/2Q1Fb9NucuhXbYJFanNGM0bITd6ced9Hb6wmzENNDrk4eONib swiupa/so+7xQ2T7MhybrPdGGzo+e3JzsWaTxMW5MjC0/nkxiJKOmksEkWDKojvptJKLvp aWjyn/z1JfYRZCqHDmXvUcLBSiGZsH6d7+ZzNubwHq5vllb4kc9EQZrqk5irMTbawyVBLx 5O8/KiJ8eQEjVp1V+GBFFfJ8IK8zm2eJLaQkT4yrebup0gxzh7Krf3LPapJeFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b="i/oqi55N"; dmarc=none; 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" X-Migadu-Spam-Score: -1.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b="i/oqi55N"; dmarc=none; 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" X-Migadu-Queue-Id: B63F78861 X-Spam-Score: -1.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ij9XFWM7hYzT --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2022-05-06, Vagrant Cascadian wrote: > On 2022-05-06, Vagrant Cascadian wrote: >> On 2022-05-06, Maxime Devos wrote: >>> raingloom schreef op vr 06-05-2022 om 02:28 [+0200]: >>>> > =E2=80=A6)) In guix/cpu.scm: >>>> > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 94:2=C2=A0 0 (cpu->gcc-architecture #= f) >>>>=20 >>>> This indicates the same to me. >>>> But I don't know the internals of --tune well enough, so it's just a >>>> hunch. >>> >>> Could anyone who encounters the issue on aarch64-linux send their >>> /proc/cpuinfo, such that other people can test the body of 'current- >>> cpu' on that copy? > > What is reading from /proc/cpuinfo? I've heard it suggested that > /proc/cpuinfo was more informational and not something to be relied on > for anything that actually matters... ? > > Well, I guess I answered my initial question by reading the error > message... guix/cpu.scm ... how did that work before for things like > cross-building, where /proc/cpuinfo is *definitely* wrong to get > information about the architecture you're building for? So, the simplest reproducer is just to call what was in the test, essentially: $ guix shell --export-manifest gsl openblas gcc-toolchain --tune Backtrace: 10 (primitive-load "/home/vagrant/.config/guix/current/bin=E2= =80=A6") In guix/ui.scm: 2230:7 9 (run-guix . _) 2193:10 8 (run-guix-command _ . _) In guix/scripts/shell.scm: 160:17 7 (guix-shell . _) In ice-9/boot-9.scm: 1747:15 6 (with-exception-handler # =E2=80=A6) In srfi/srfi-37.scm: 201:16 5 (next-arg) 113:18 4 (invoke-option-processor _ _ _ _ _) In unknown file: 3 (_ # # =E2= =80=A6) 2 (_ # # =E2= =80=A6) In guix/transformations.scm: 864:25 1 (_ _ _ _ ((package ad-hoc-package "gcc-toolchain") (=E2=80= =A6) =E2=80=A6)) In guix/cpu.scm: 94:2 0 (cpu->gcc-architecture #f) =20=20 guix/cpu.scm:94:2: In procedure cpu->gcc-architecture: In procedure struct-vtable: Wrong type argument in position 1 (expecting = struct): #f Calling "guix shell --export-manifest gsl openblas gcc-toolchain" without the "--tune" argument works fine. So whatever codepath is not handling cpu->gcc-architecture being #f should somehow... handle that reasonably. Not sure what that is, as calling --tune you asked for somet tuning and failing makes sense... So apparently --tune is broken on aarch64 (and presumably any other architecture that doesn't return anything). Seems cpu->gcc-architecture should always at least return a safe baseline for all supported architectures, maybe? live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYnXBGwAKCRDcUY/If5cW qr/6AQDabeCXVUj4xrA8G08o0GlcjvTWA4XLWzHnxfIdxnQZ3wEArP7CAuvlDoDm l+/SQLByxJZ8CcQOUOKiIt/iugCJGQ0= =88GV -----END PGP SIGNATURE----- --=-=-=--