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 ms9.migadu.com with LMTPS id AJcHDCFtWmQN/gAASxT56A (envelope-from ) for ; Tue, 09 May 2023 17:56:17 +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 6FctCyFtWmRJCAAAG6o9tA (envelope-from ) for ; Tue, 09 May 2023 17:56:17 +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 D45C4C881 for ; Tue, 9 May 2023 17:56:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pwPh6-0006Fg-2s; Tue, 09 May 2023 11:56:04 -0400 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 ) id 1pwPh4-0006FQ-I0 for guix-patches@gnu.org; Tue, 09 May 2023 11:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pwPh3-0008Ao-VT for guix-patches@gnu.org; Tue, 09 May 2023 11:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pwPh3-0005Yl-Rz for guix-patches@gnu.org; Tue, 09 May 2023 11:56:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63341] [PATCH] gnu: Add dummy linker for riscv64-elf. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 May 2023 15:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63341 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Cc: 63341@debbugs.gnu.org, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 63341-submit@debbugs.gnu.org id=B63341.168364774321328 (code B ref 63341); Tue, 09 May 2023 15:56:01 +0000 Received: (at 63341) by debbugs.gnu.org; 9 May 2023 15:55:43 +0000 Received: from localhost ([127.0.0.1]:44192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwPgl-0005Xu-7I for submit@debbugs.gnu.org; Tue, 09 May 2023 11:55:43 -0400 Received: from mail-wm1-f53.google.com ([209.85.128.53]:62924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwPgi-0005Xe-2O for 63341@debbugs.gnu.org; Tue, 09 May 2023 11:55:42 -0400 Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-3f315735514so214401115e9.1 for <63341@debbugs.gnu.org>; Tue, 09 May 2023 08:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683647734; x=1686239734; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=yVa039ekpvBCHzUdJF3x6EAF3wUMF91gSnR9/kXW2cQ=; b=MmFXG2N8nm/4t6zfgRe4jYqgTNQA74BZDx6CrACOyeIQ0VjxCcR6ok3d73Z+tES+GG u8nVHkyHdO5fa1q7dIpkwTNBhiRs+qJe7F44RmJxl5UtDrrMAuMKT5IjKJcL5RkLjydN 0q9UB0xl6IcbZ8wPk+tD90aFaaf4T/02F0UhWDHLg5fQj7buGqRbGeQdF8mgWj0nJW32 tBKL5RqXZ1BNt2vG+UFFSMplqQCZLx/c/eZqdvMN2E5cNXGKZiVHsyFKulTx1ZHpyz8O HZqVu3MEt0OV5E398M1KVjixUoaakrLlo530G1J1Viu8yaEj873jnZIYPFaRCX7ihWBM 1W9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683647734; x=1686239734; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yVa039ekpvBCHzUdJF3x6EAF3wUMF91gSnR9/kXW2cQ=; b=dwvGyqHXOEGO5r/oU+6VA1Idcv+73xUgN6qWGnkoq+MPLfWq5MEIXyVu3b/BHM/p/T RQ5hW3Mf+am+YksikeEI0RwMdkwZgLpcyTvor0RLf0IgtM0cH8lItZPMzhGj+7ZB2g8u 40A0eECTJhrJ1ESXGdIXry7Ouw5l4JzuIWOe1zFFGs0K7jsl0UqvQ1VddY/pLjNTVI8K wqWdIvWaeB7UpnAVBmzhV97CCB0K6T5jB7X5zfplnVFsBeCvUVrQui+eVPLOS91eO0Z+ Se7F1tZ7/KLmPOPaClvjFIqZz5rgslrPxkhIcxamDtwUIz4/LeBOEmsCd8lLmNJ5jdwB 51YA== X-Gm-Message-State: AC+VfDwthvTC48zhq+KE6sI+r+hqmhSRZA4ESMc7TITgabWlbp4ctFTH 6pvd6ETjRXSxJyehSNi4RIk= X-Google-Smtp-Source: ACHHUZ4ZQiMWcGbx5vw0H45KHPaQdE7ccpg84Z1N5+3FOaTA7A9ztSiggve3zj43a0pH1BT7VeIK4g== X-Received: by 2002:a05:600c:45c7:b0:3f1:754e:69e6 with SMTP id s7-20020a05600c45c700b003f1754e69e6mr9770594wmo.17.1683647734198; Tue, 09 May 2023 08:55:34 -0700 (PDT) Received: from localhost ([2a02:ed3:910:2a00:b62e:99ff:fef0:7bc0]) by smtp.gmail.com with ESMTPSA id l11-20020adfe58b000000b002f22c44e974sm14746139wrm.102.2023.05.09.08.55.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 May 2023 08:55:33 -0700 (PDT) Date: Tue, 9 May 2023 18:55:32 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 63341@debbugs.gnu.org, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= References: <87pm7c5l9q.fsf@envs.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Q1i1II4vaXAROmNs" Content-Disposition: inline In-Reply-To: <87pm7c5l9q.fsf@envs.net> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683647777; a=rsa-sha256; cv=none; b=j3zJHiy7BmZclU17f+KhW2y9ILFfX2CbUbN14HWx+eqWibBbbZxe7OjspjQUCBakoB31tp 5Re2OMjtC1bH7vrnjTQojiVUsAtB3XiP1Z48PJKnohWLyZyCF6/7+YnrU1hadBkrlAA57H 0Xrs+wKBSmr6YVC88s92HX2p/jyuJyMyDTUL63mbTCDTdFe2Rtc+cEriedLJDwGI4tYe3N jIHg1Cj31AAFkLNrwkobr0RyeKw0rqffWLz7J5iadICGq1j+DMYOQoGHjkeqX81lhLKvjU lLn8BfPtmOylxQUCbmgrm+hOWfGJWCxWYLVtT0TRu79TQ+DP8mc5QzhQ9ABW4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=MmFXG2N8; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683647777; 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=yVa039ekpvBCHzUdJF3x6EAF3wUMF91gSnR9/kXW2cQ=; b=CYzu1TsVk8aso3QSX474FPHTvKVFueica6KV/PP3su465hPdQhTU5PpRmU2Agqg/m74eJ3 U70jNAbnktny7lVOh0E+hcjuqd4vqWSNHu7+pyVKVz78S9RODIZDxIpIqrPQv7O9zmN5Ac mEBTB1LBfzqdQ1hfU/oWgb1ien08jdQF+u+ag39ZftiH85ojie30wVjTfWlUZz15cTuZvx qE8PxOYrLrne/8A5dVjHrYt8s/bAsLYX28tj346cl0uSQtvlbx1qHUQTZ/2uh9l2Zks9DO 8zkAgO5xD/qpKA+mECrkfNY4jd9hnxYrv3q/SmX+S7YYgchmje1YiRVE/NUHuA== X-Migadu-Spam-Score: -0.71 X-Spam-Score: -0.71 X-Migadu-Queue-Id: D45C4C881 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=MmFXG2N8; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: 73VxgWa+GXPK --Q1i1II4vaXAROmNs Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 07, 2023 at 09:22:25PM +0800, =E5=AE=8B=E6=96=87=E6=AD=A6 wrote: > Efraim Flashner writes: >=20 > > I have a couple of dummy *-elf systems I sometimes add and remove > > depending on what I'm working on. What do you think about adding and > > entry for ((string-suffix? "-elf" system) "no-ld.so") and being done > > with these one-off targets? >=20 > I think that's fine, or how about only error for '-linux' or '-gnu' > systems, i think that's where a glibc linker is needed. I do like the idea of having the fallback for typo-ed names, so let's keep that error there, but I think you're right that we can just use no-ld.so for everything else. Then if we do need an actual linker later for another architecture we can add it then. > From 2a972a30b9fcf743036bf9e81044e79854b62fde Mon Sep 17 00:00:00 2001 > Message-Id: <2a972a30b9fcf743036bf9e81044e79854b62fde.1683465580.git.iyzs= ong@member.fsf.org> > From: =3D?UTF-8?q?=3DE5=3DAE=3D8B=3DE6=3D96=3D87=3DE6=3DAD=3DA6?=3D > Date: Sun, 7 May 2023 21:15:20 +0800 > Subject: [PATCH] gnu: Use dummy linker for systems without a 'linux' or '= gnu' > suffix. >=20 > * gnu/packages/bootstrap.scm (glibc-dynamic-linker): Use dummy linker for > systems without a 'linux' or 'gnu' suffix. > --- > gnu/packages/bootstrap.scm | 18 +++++------------- > 1 file changed, 5 insertions(+), 13 deletions(-) >=20 > diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm > index 9a46f97c81..12a84b8265 100644 > --- a/gnu/packages/bootstrap.scm > +++ b/gnu/packages/bootstrap.scm > @@ -323,19 +323,11 @@ (define* (glibc-dynamic-linker > ((string=3D? system "powerpc64-linux") "/lib/ld64.so.1") > ((string=3D? system "alpha-linux") "/lib/ld-linux.so.2") > =20 > - ;; XXX: This one is used bare-bones, without a libc, so add a case > - ;; here just so we can keep going. > - ((string=3D? system "arm-elf") "no-ld.so") > - ((string=3D? system "arm-eabi") "no-ld.so") > - ((string=3D? system "xtensa-elf") "no-ld.so") > - ((string=3D? system "avr") "no-ld.so") > - ((string=3D? system "propeller-elf") "no-ld.so") > - ((string=3D? system "i686-mingw") "no-ld.so") > - ((string=3D? system "x86_64-mingw") "no-ld.so") > - ((string=3D? system "vc4-elf") "no-ld.so") > - > - (else (error "dynamic linker name not known for this system" > - system))))) > + ((or (string-suffix? "-linux" system) (string-suffix? "-gnu" system= )) > + (error "dynamic linker name not known for this system" system)) > + > + ;; For bare-bones without a libc, eg: arm-elf, arm-eabi, xtensa-elf= , etc. > + (else "no-ld.so")))) > =20 > =0C > ;;; >=20 > base-commit: 7612610c44f16fc8f2ff395d9a2d58101a7356aa > --=20 > 2.39.2 >=20 >=20 >=20 > (I'm unable to write a satisfied commit message..) --=20 Efraim Flashner =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8= =C2=A0=D7=90=D7=A4=D7=A8=D7=99=D7=9D GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --Q1i1II4vaXAROmNs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmRabPQACgkQQarn3Mo9 g1HOwg/9EFuCxMyed3LwteFQg46ZE7WDjIIr8G08bX1TOcROrAHhtFwt7k62fPlr JbYbSAtw7qCmlYIT9JEcpbwmTix7nmw9/fFn8z+n1zk60d4Cv97zAOeEpCgp73GN zYHMvfqeO64ndpWcK+++G32doGqxA6esVakoP/CnbfQlxOpUu2fnmkVi77ZidAoz 7wMcKXiVScOqJTdFCFjdT28mokBwjzRNvMFUfSqiPI8Js8ze2QWBWELKRXZ4PQCA bIIKewboSUFf6Rawy3jVkV0Sc5oTRYkPpAXk0vGLSaTZiVq6g1M6lzFbqNszBg2N Gpp7mYVd6ry3Ib3MwyEJXH1bD+3vvah85y0oHOMPtxep0j7l9TtuIOhdaMhPKFjl l1yHun2LYpKlzyA8X62ZLUT4QtaO6a+kFqx7PM49l6nnvJw5x8+nojQjz67Ku9gw aDy+XeVlQSxy1MN3r8CbPBbeUBbIoqoVpeYvuY9qqdkVK3n4NsUTWnORJvEWfOHL gHArwuKl/GtdJEgWBUN9VcM8hoJd/0KBwoqpItHgsBuhG6vRlDgEW80YFNHVQAxA 938h93iyZUWm0paelk6NbNB0sRucoSU0ptN3btr0J62E3wGWrMMdRojXhkDUo7Ez EBL4PFiTfFLvkn+FfIxCh45UleF0NmPpC2ZbWmJM85q4Y3CYhC4= =thfu -----END PGP SIGNATURE----- --Q1i1II4vaXAROmNs--