From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WAdJJTCfoGKhcQEAbAwnHQ (envelope-from ) for ; Wed, 08 Jun 2022 15:08:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CMZiJDCfoGJniQAAG6o9tA (envelope-from ) for ; Wed, 08 Jun 2022 15:08:00 +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 4B11B2BC1F for ; Wed, 8 Jun 2022 15:08:00 +0200 (CEST) Received: from localhost ([::1]:46104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyvPj-0003J9-G8 for larch@yhetil.org; Wed, 08 Jun 2022 09:07:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyvOr-0003Hw-Ft for bug-guix@gnu.org; Wed, 08 Jun 2022 09:07:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyvOn-00046V-Pq for bug-guix@gnu.org; Wed, 08 Jun 2022 09:07:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nyvOn-0000yE-JX for bug-guix@gnu.org; Wed, 08 Jun 2022 09:07:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55833: cross-base error: wrong type argument in position 1 Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 08 Jun 2022 13:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55833 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Josselin Poiret , Ekaitz Zarraga , 55833@debbugs.gnu.org, othacehe@gnu.org Received: via spool by 55833-submit@debbugs.gnu.org id=B55833.16546935803684 (code B ref 55833); Wed, 08 Jun 2022 13:07:01 +0000 Received: (at 55833) by debbugs.gnu.org; 8 Jun 2022 13:06:20 +0000 Received: from localhost ([127.0.0.1]:42748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyvO8-0000xK-1x for submit@debbugs.gnu.org; Wed, 08 Jun 2022 09:06:20 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:46384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyvO5-0000x8-Ai for 55833@debbugs.gnu.org; Wed, 08 Jun 2022 09:06:18 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id gd6F2700K4UW6Th06d6FFh; Wed, 08 Jun 2022 15:06:15 +0200 Message-ID: From: Maxime Devos Date: Wed, 08 Jun 2022 15:06:10 +0200 In-Reply-To: <877d5rwigy.fsf@jpoiret.xyz> References: <5qR8o5eSldiy3chXSPnE2qn1NtHm4FklEGx9APhm0xFagHrv8fZapayVEMvdtJ4Kqw6vTwbyu3rCyPc38oEbJq78X2XW7RwWoe3DzND_K_w=@elenq.tech> <877d5rwigy.fsf@jpoiret.xyz> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-Rc7qYCxYv4PmoVyxwIdw" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1654693575; bh=FiSCYt6Fe6Xh13pCq++D+2xA2w7S9fqcWze8EAG/uGM=; h=Subject:From:To:Date:In-Reply-To:References; b=fQogNudZvElmE6AUYsrs9XjfFNhBDFfD22++BoLj8Hs7ZjkZKr8e/95LLYq3LJfi+ dQn51KCNnDiUEDcfiOg5exBMy63FsrvkQ+nSC51c9cGwFfr2T8h7j5z9QgrJzT/kV+ i9LqdSJaaiJKp6T6SjiKRpY4wlnkECQ4gTrNQeDBTpiEQ/M7ZqhYVJ6dze43VCn0qF SKaP7dwOVwbvMudplIL4Za+3H5AobQOsfeUzAU6KI6OpGSgHfL7b+EVuYNMB3R2pin 804uDx9Nm/JplRHtQ0joCcJ5s+mlAs6tIGSXdDM1KBsiPKd+U58g+yimyEvIj/D8ch iXlcmtuCsb5CQ== 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=1654693680; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=FiSCYt6Fe6Xh13pCq++D+2xA2w7S9fqcWze8EAG/uGM=; b=ken0ZrQ99OVEClirmQFXh/dozmn/xD5x1BTDGQnMVNojo8YlMF6J1dAuti+185m85nigOP qolotJWIWxa8J8Upji8F+vnImxbN2ztBDMim6IXvl/A4Lk5XHF+4Tj8oNpP+ZShrW9NUdv XGXgQmKzimFAMezGYMbyyBGvm45ml9jDPXhJE5CinVaptlCiVCbbeRjwCanOjUJ8XNlHjr +O+oyQh4PUxqP9Q6idu5RKNX1pIz2jF+15lEKqGQczQbMz9lOeyqYViIGe5AYY9B5dQbkm 86YPW6BNp4vqDBiMRkV9azmOPY4iJbmaiPoIN7M6gI+fIku7/n5PquZTpJvBDA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654693680; a=rsa-sha256; cv=none; b=KjAXweolE+JZPT9k4Ofg+iTrTGL0473TJZF3dyNnV7hJ2SjfnPNZvlGMrSJVs8MwtHbTnp +mQKlrK3Vdx8VXEyvBfDroBKSOPWHSIpwPYJuHb3gkOYWUj6YXiWls6oxntT6r2reFvMl8 mCZKFWEQEh76NwV2baAcM9n81cxo5yeg7lW5jLaSQUxbiBnzUdNd2e/DQh6Ftwcjdsuqtc ek/FMAJLSpACLBSK/36840Fd16ELwDZqy+hLloZVMveRKhobCyOfj8IyRF7CRIghmGbBtW k1uisvI426jxZcME9Bjb1v8uAt4ELulmLI3JQo6MAZvqMfGqPaXJWw/zxM8teg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=fQogNudZ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=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: 2.50 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=fQogNudZ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=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: 4B11B2BC1F X-Spam-Score: 2.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: BZYXAhCiNARA --=-Rc7qYCxYv4PmoVyxwIdw Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Josselin Poiret schreef op wo 08-06-2022 om 12:35 [+0200]: > > =C2=A0=C2=A0 * rename platform-linux-architecture to > > =C2=A0=C2=A0=C2=A0=C2=A0 '%platform-linux-architecture' > > =C2=A0=C2=A0=C2=A0=C2=A0 and define a wrapper 'platform-linux-architect= ure' displaying > > =C2=A0=C2=A0=C2=A0=C2=A0 a proper error message =E2=80=98unsupported ta= rget=E2=80=99 or such. > >=20 > > and > >=20 > > =C2=A0=C2=A0 * use "riscv64-linux-gnu" instead of "riscv64-unknown-linu= x-gnu" > > =C2=A0=C2=A0=C2=A0=C2=A0 (as expected by (guix platforms riscv)). >=20 > I don't think we should deviate from the usual behaviour of a > procedure > returning #f it wasn't able to find the thing it was searching for. The proposal was to modify platform-linux-architecture, which doesn't search for anything and doesn't return #false. It already throws an exception: > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > In procedure struct-vtable: Wrong type argument in position 1 > (expecting struct): #f The proposal is to make the error message clearer, by raising an exception ourselves instead of leaving it to struct-vtable. (My proposal might have been confusing due to the mention of lookup-platform-by-target-or-system which doesn't seem relevant on second sight?) Greetings, Maxime. --=-Rc7qYCxYv4PmoVyxwIdw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYqCewhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7kHkAP4m4wrF7q24/IYCaAe9bB2YYYyO W9OZNwh4e5orKdPzTgD+KrDFwdrTQCYqsy2ruXPyhGZZeDqnOHiqku1B5bda3wc= =3gEg -----END PGP SIGNATURE----- --=-Rc7qYCxYv4PmoVyxwIdw--