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 fnXjDqyHemImEQAAbAwnHQ (envelope-from ) for ; Tue, 10 May 2022 17:41:32 +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 uMdjDayHemJafgAAauVa8A (envelope-from ) for ; Tue, 10 May 2022 17:41:32 +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 A14F41745D for ; Tue, 10 May 2022 17:41:31 +0200 (CEST) Received: from localhost ([::1]:60554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noRzO-0003MN-RU for larch@yhetil.org; Tue, 10 May 2022 11:41:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noRyw-0003MF-Fu for bug-guix@gnu.org; Tue, 10 May 2022 11:41:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noRyw-0000Iy-7F for bug-guix@gnu.org; Tue, 10 May 2022 11:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noRyw-0006PP-2D for bug-guix@gnu.org; Tue, 10 May 2022 11:41: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 10 May 2022 15:41: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: Efraim Flashner Cc: Vagrant Cascadian , 55283@debbugs.gnu.org, Maxime Devos , raingloom Received: via spool by 55283-submit@debbugs.gnu.org id=B55283.165219723924598 (code B ref 55283); Tue, 10 May 2022 15:41:02 +0000 Received: (at 55283) by debbugs.gnu.org; 10 May 2022 15:40:39 +0000 Received: from localhost ([127.0.0.1]:34880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noRyZ-0006Og-DW for submit@debbugs.gnu.org; Tue, 10 May 2022 11:40:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noRyY-0006OU-Kh for 55283@debbugs.gnu.org; Tue, 10 May 2022 11:40:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47148) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noRyR-0000F7-As; Tue, 10 May 2022 11:40:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=mqIyZQKYGIS4IHy+O7kLU5UwTh1vz5IW+z0gMyTKoMw=; b=KdpmKgGDQ3/yqHMPRJjm uZ3BBigobqP4KSm0yx5E99RRWzIgDh4J5MfL2BDz+tzolMdbUUeIMo6Z9EfFh6O0P1uktAD+HHf9k ybjCi+yhsiZpCpXGP7xDTK2mL8DOUCS/Da+VvL4K5YQqfnnImHZIir2qV/bOMMrMVv7fcxieiIE2s 22XWjzZv16BBLu+v96Czg8kB3Y1/bjh/DkZtWw5xz2FESeRb81mdQMJJvWnkjNGsxdpJy8B5SkWQ2 DLIt5sJk3gLu0Gfm/HC67G+WlXFVTzlcGhST61eGluv62vHGBlKgR875Pj9ntlE8xZNGsy0n5dtGP p4NWTrxAUbbAFQ==; Received: from [193.50.110.244] (port=52688 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noRyQ-0000Cd-UM; Tue, 10 May 2022 11:40:31 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87ee1761ci.fsf@inria.fr> <20220506022826.5089eb2c@riseup.net> <5d219586c7a9a5ed2d89b12db73385d9d55adeb9.camel@telenet.be> <871qx68g33.fsf@contorta> <87wney6vwq.fsf@contorta> <87wnevu0x1.fsf@gnu.org> <4d2747729262ac3e3f27d7e75f1dfb50da4c7fed.camel@telenet.be> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 21 =?UTF-8?Q?Flor=C3=A9al?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 10 May 2022 17:40:28 +0200 In-Reply-To: (Efraim Flashner's message of "Mon, 9 May 2022 17:17:55 +0300") Message-ID: <87v8udpf9v.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1652197291; 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: content-transfer-encoding:content-transfer-encoding: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=mqIyZQKYGIS4IHy+O7kLU5UwTh1vz5IW+z0gMyTKoMw=; b=kWRYWUPWjubGdqzh1VTsQKxHJW2B9ubrDCR4NLFZJfutthHkmbJ148UKknC8q/JOmp9toH 119OV9/qg8ZrFeN4uYFMzZr+Gf0Mv/y1yNLqSVJjOOBAgtXZ2xe/GWbR1fv3JJHUngU2ZO HWlvCKOv7E6p5tVrz5Eg+4urftGazH63v1jhT3qzjdEKaFHBEKI0gK7fA94cSonWkVPdrR Ys7X3kWcNgUj4BLc05/VCGbWLK9kN/kDB4QxSZO5qqLPwZRTHPFf+LsNTqGsvMmLNT8UP4 QtYeMaN0eVOr+FqteGU55Q8DgosQUjBpXXhpXjc9RE7URomHaLGNpTq8S6khhA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652197291; a=rsa-sha256; cv=none; b=ZJ9oEAcN3nbJqKd9x6C7LLJDMB9wIvSyapiH8/pmP8F7u1qGx9uU7ZUPdQlEYLHt8hYM29 5ps0mKQpsA6W86s0/MVTnGsXhGnuqdpFKbZ7heIvQBDqbJUKGSJEDJxtsUYRGKW4Mg5++R gWE39qmoL2sQ81jpJ4tRvcJlVLk3fVqzY7x1KZkvFNqMrQgW6B9RAgi6xhXi52tyzDBzDQ zUJRevAwMBqP8N1cu+Y/jzg7/NebCi2z9UDZpQt37F9fguIwDFJ9ym2agNVbu5haa/SvBJ /noDivpIABAgAedZCDZMC24Liq5pIy3m3tbTftDgcwco44cmzqHDVQso0k8nPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=KdpmKgGD; dmarc=pass (policy=none) header.from=gnu.org; 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: -5.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=KdpmKgGD; dmarc=pass (policy=none) header.from=gnu.org; 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: A14F41745D X-Spam-Score: -5.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: DnspwhGJ+NvD Hello! Nice to have AArch64 support in (guix cpu)! Efraim Flashner skribis: > diff --git a/guix/cpu.scm b/guix/cpu.scm > index a44cd082f1..37ed6f0a18 100644 > --- a/guix/cpu.scm > +++ b/guix/cpu.scm > @@ -62,31 +62,51 @@ (define (prefix? prefix) > (lambda (port) > (let loop ((vendor #f) > (family #f) > - (model #f)) > + (model #f) > + (flags (list->set '()))) You can replace (list->set '()) by (set). > + ("aarch64" > + ;; Transcribed from GCC's list of aarch64 processors in aarch64-cor= es.def > + ;; What to do with big.LITTLE cores? > + (match (cpu-vendor cpu) > + ("0x41" Is /proc/cpuinfo more or less guaranteed to return hex numbers like this? > (architecture > - ;; TODO: AArch64. > - architecture))) > + ;; TODO: More architectures > + (utsname:machine (uname))))) We can return =E2=80=98architecture=E2=80=99 as is, no need to re-call =E2= =80=98uname=E2=80=99. I haven=E2=80=99t run the code but at first sight it LGTM! (The bug reported at the beginning of this thread looks rather basic though; I=E2=80=99ll follow up on that.) Thanks, Ludo=E2=80=99.