From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 0Dw/Nli7aWJzVQAAbAwnHQ (envelope-from ) for ; Wed, 27 Apr 2022 23:53:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YHJNNVi7aWK9EQAAG6o9tA (envelope-from ) for ; Wed, 27 Apr 2022 23:53:28 +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 7511137156 for ; Wed, 27 Apr 2022 23:53:28 +0200 (CEST) Received: from localhost ([::1]:35988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njpbD-0000na-3H for larch@yhetil.org; Wed, 27 Apr 2022 17:53:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njpb2-0000nM-VU for bug-guix@gnu.org; Wed, 27 Apr 2022 17:53:17 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njpao-0006Zc-9n for bug-guix@gnu.org; Wed, 27 Apr 2022 17:53:16 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1njpao-0006NM-60 for bug-guix@gnu.org; Wed, 27 Apr 2022 17:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54864: GNU Cuirass reports arm64 as armhf Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 27 Apr 2022 21:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54864 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mathieu Othacehe Received: via spool by 54864-submit@debbugs.gnu.org id=B54864.165109633824453 (code B ref 54864); Wed, 27 Apr 2022 21:53:02 +0000 Received: (at 54864) by debbugs.gnu.org; 27 Apr 2022 21:52:18 +0000 Received: from localhost ([127.0.0.1]:44674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njpa3-0006MF-1t for submit@debbugs.gnu.org; Wed, 27 Apr 2022 17:52:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njpa1-0006M2-OE for 54864@debbugs.gnu.org; Wed, 27 Apr 2022 17:52:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37890) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njpZw-0006OR-Dx; Wed, 27 Apr 2022 17:52:08 -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=bK84lKKUIdUQYeKnAcUo9Wo39P2iROQ1/A8qfQAGrTY=; b=QYUXs9vcjx/suXw4irh+ 89hRLC6KV27b0NKRy/GW9Ebm1HVJeROtX8sESOTckP3SNvBE99nMWQzgHgIiHK7lqMOQJ5HEoxIxj 4OPTJJGNCb8Lk2NhMTOmkhp+WA7B+r87j1XvLdTFRQF53pL042SMLZlX5BkU/4d+6eMropy132MJo bzxWB8KI9qd96akR0Jcbz410Vo6SoEN2mqiiGBqXlEPt85k09G7mXst5aNAL3kXMefD5UyrAm817m 1K8DF1eoWNtqEVKBRY5w5MqxgsItotz9isWY48tGTbdsXUx9XZ91CfvKKtjL6ftOvQZEPVnPyALek nx6/bj/4anoCpA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:55942 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njpZv-0006oL-B3; Wed, 27 Apr 2022 17:52:07 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87h76no7gv.fsf@gnu.org> <87czh94u83.fsf@gmail.com> <87fsm0wa5k.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?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: Wed, 27 Apr 2022 23:52:04 +0200 In-Reply-To: <87fsm0wa5k.fsf@gnu.org> (Mathieu Othacehe's message of "Tue, 26 Apr 2022 09:56:07 +0200") Message-ID: <87k0bagpob.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: , Cc: Christopher Rodriguez , 54864@debbugs.gnu.org, Maxim Cournoyer 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=1651096408; 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=bK84lKKUIdUQYeKnAcUo9Wo39P2iROQ1/A8qfQAGrTY=; b=o+ac1Sr/R3HVobgsmjPnRUOMUBZ0JOzBZiimiZSeTrPgqvQoG2G0Jj26nRfGBFcqwiRebT QF8F8sLCv2uJFdOVwnUrYjYdoUxfprV7qxRXmLml5HI6ljTy8ZlxEt+kAsY0ZMSYgcLMLZ 7YDuL01zSl3M+Q9cjApmzIQgq0kFldF4ANbyXObu877OXuACXbWFp9P7NB32S8Pf0SPDDb sKjtlZL0sus8my2FzO7JqvqyCanYp89q9Fj/yCoU0TyOnJ5iIcuMQiqmgtR9cNzfHZwv0h 9io04f+vmBAI5ANsnGhhGZNPRUQyb5Eh0rlwi/q9xT89KXzzBB04dOusnLjn7Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651096408; a=rsa-sha256; cv=none; b=NMB4XwBVIGwB4dms4REfr9UfQLmP6SN6nkOEO3GEfz+ouz0X5M6dqFIePadi0A+z5rnyfC 4HXs1EyaTPJphlHdnjhqCtnWLCasuLLnNLQ2ig2aaRgllP5kyNNMDupbBZnTL2vNPpZ14a PdZ2qA8sVkv38EIoNwXolKtk+7sG2vkJHUZdJqXbOPU7tPJ/nMYGgfBdL8jYtbaSTSNV59 BvuwYU0RoEgXEee4mLyBL4htmEHh1wTZy96St3bjIrZXgfZHyIsYEjuA/6oEnZOWHSPvzB EGFP4kFJ2IM9QgSNSHKj/indlryZvhlP0rFaloyHwBNkE35Whu208aA53oXMhA== 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=QYUXs9vc; 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: -2.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=QYUXs9vc; 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: 7511137156 X-Spam-Score: -2.40 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9pxwB0FNa/5b Hi, Mathieu Othacehe skribis: >> I've had this experience before, it's very confusing (it goes on trying >> to build a toolchain for something that is sure to fail). Perhaps we >> could at least have a place to refer to in the manual for the common GNU >> triplets which make the most sense in for GNU Guix (e.g., the currently >> supported GNU system triplets). Currently I grep the manual for >> disparate examples when my memory fail me. > > Yes, I also cannot remember those triplets even though I'm > cross-compiling all day long. This bug report was about system types, not triplets, but the problem is kinda similar and equally in need of a fix. :-) > Maybe we could: > > * Define all the supported architectures in (gnu platforms). We already > have ARM and Hurd defined there. > > * Define %supported-systems and %supported-targets lists constructed by > parsing the records. > > * Use those lists to check the values passed to --system and --target > arguments. > > * Add --list-available-systems and --list-available-targets arguments > for all the commands supporting --system and --target arguments. > > WDYT? I think it=E2=80=99s =E2=80=9Cnice=E2=80=9D for =E2=80=98--target=E2=80=99 = to accept a free-form triplet, because users might want to target a system triplet that Guix maintainers do not care about (we only cross-build for a handful of triplets right now). Based on that, I thought we could emit warnings when =E2=80=98cross-gcc=E2= =80=99 & co. were passed a string that doesn=E2=80=99t look like a valid triplet. B= ut then I realized that internally these procedures are passed things that are not quite triplets: see avr.scm and embedded.scm. So, a list of =E2=80=9Csupported=E2=80=9D triplets like you suggest may be = a good idea, though IMO it should be used to emit a warning rather than error out. For system types, we can probably error out to strings not in the list. Thoughts? Ludo=E2=80=99.