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 ms9.migadu.com with LMTPS id gK3kC0imV2RMXQAASxT56A (envelope-from ) for ; Sun, 07 May 2023 15:23:20 +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 6Bu0C0imV2SxtgAAauVa8A (envelope-from ) for ; Sun, 07 May 2023 15:23:20 +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 B696C3B127 for ; Sun, 7 May 2023 15:23:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pveLz-0000hs-Sw; Sun, 07 May 2023 09:23:08 -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 1pveLu-0000hS-Uk for guix-patches@gnu.org; Sun, 07 May 2023 09:23:03 -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 1pveLu-00085d-Ls for guix-patches@gnu.org; Sun, 07 May 2023 09:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pveLu-0004zH-H3 for guix-patches@gnu.org; Sun, 07 May 2023 09:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63341] [PATCH] gnu: Add dummy linker for riscv64-elf. Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 07 May 2023 13:23:02 +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: Efraim Flashner 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.168346575919121 (code B ref 63341); Sun, 07 May 2023 13:23:02 +0000 Received: (at 63341) by debbugs.gnu.org; 7 May 2023 13:22:39 +0000 Received: from localhost ([127.0.0.1]:36702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pveLW-0004yL-Um for submit@debbugs.gnu.org; Sun, 07 May 2023 09:22:39 -0400 Received: from mail.envs.net ([5.199.136.28]:37376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pveLU-0004yA-Kv for 63341@debbugs.gnu.org; Sun, 07 May 2023 09:22:38 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 54E3538A0F27; Sun, 7 May 2023 13:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1683465754; bh=y8sYSV6DesdsS6/v7xnleIYFPe3qEo/rGKVN3cD6xjc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=hd1V2lAmQKGrLpLv89UihKmv8zEflaVHbYMUrGRDiTbZmHqmD+OilCQyQKrLO33Xe bYWSOuLBw6b5aZCpK0L+8sogMFOM4cmB3nnBPRa1BpFgQCbBKzrQh/r80CQCA4Rmsu +UptOw5uPPNTZTySHy03kEB4YTiR+F5Sx1O1hFby9CSfO3RZrIBcGkTCFqwX4Ne1c9 /5Rn23IIGkmU0Y96m1L3Kf4pU2GvOdSQ40Nymv6SgdK4iuz3pdJd+1mT67CZU2WiTR 3g2awSHWGudgtQ5AhEBcsrK8Ox/uV5XXsY9wZf2n3xTwan4PyInuPqb4GgvLrrOh8q e6dFYfZ1Ml2H3S7Wm24TbK8D0Uvo/5CDyBXR05QTByRh/0409x+XYjAcYHaMsHNGzp rHn0vR+z696xa04yi4S3WwsB/JOBe4KFYHtrrBkXPUM/P8i0+YwOddbuuMzc3DW/Tt 5npbUjhbvPzqzNa0sUdpnxMorXSid+8kTtfY9ZkbTaOHWdHmqhK/z/aYKhMY5Lz8wB LX9G5L9308AjMuNSiemjhpsWM5cQARD64xBmOOJZjJ+kNgiRwdwwlTOZer1AmMCfVZ hibV6KlepbfulsCyiTNrbsQGtRFIGNNsmr8ZDJwWQSAicelAAHPJDQcudvM7uAAdHE wErMUM9lSN3z0VMXYM6oaJ2k= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id maItXYkpfgJL; Sun, 7 May 2023 13:22:29 +0000 (UTC) Received: from localhost (unknown [36.170.57.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Sun, 7 May 2023 13:22:28 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id dd5195cb; Sun, 7 May 2023 13:22:25 +0000 (UTC) References: Date: Sun, 07 May 2023 21:22:25 +0800 In-Reply-To: (Efraim Flashner's message of "Sun, 7 May 2023 11:43:29 +0300") Message-ID: <87pm7c5l9q.fsf@envs.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: , Reply-to: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-ACL-Warn: , =?utf-8?b?5a6L5paH5q2mIHZpYSBHdWl4LXBhdGNoZXM=?= From: =?utf-8?b?5a6L5paH5q2mIHZpYSBHdWl4LXBhdGNoZXM=?= via 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=1683465799; a=rsa-sha256; cv=none; b=gotAru33XBYIlnhABbQSYyc+IFSBlkaxaIrgy4OcrBNX2xhUEICO0BOFLkIAOLjrQ+Fcvn m/D61lgwfgNoW6j1yl0nIQdJSPEWTtK7Go94DYhksqmDhV8V163RD5CrBhwXOrx7iLlgz7 YItgYVssvn2Kk0G2PpyV+yXVStfifyq8rMLoSl3Kv376z3kDkcqI8TAnIhtwnyqFc0GLdf y8aytdwDmp0hOC8uI/HNoX3yMRAI/BoJCRs8Y/MJECmEaM68TtT6SDd1P3zD2I9wEApG1P fQw8lmW0LPZ2lQt8kGKED8rBdPQ3RJgx+He0h0tULrf1s2o+AEfnGPgdHHe71w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=envs.net header.s=modoboa header.b=hd1V2lAm; dmarc=pass (policy=none) header.from=gnu.org; 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=1683465799; h=from:from:sender:sender:reply-to: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=cfwIzWgBv7TNvkDsw3X8Ms5979VP75zKH2HMQrPPOPU=; b=WyDei+anVksoL1XQnLNiLy3q2af33FBsPTkYc7IfYe19Si/VFpb8L8MiS8hspE3uCVhU+E DfpLC4ZgdmW/G0q4t3J4w9z8B7M/w+80eZnIvgVUVmonzYWEJaForEngrWrBQXiSsEbbBX f73fVExL1AfFe5aQiPKMwiKv0Bz7lg9aaCWnbqLFWn6vfr90iZsNCCGSHiSJCA9i1JxKlp wScvpsvmMvSqOPpP4XHwuNOMFxOSyCm5Z3w0oiv1c/U0sxZnDJ8zOYT6A67EsDAuAfx1Nm +8W0Qcdy+oxVmgysgv5ciIKqlVbCwsRGOKbmHPByalbIuoV8Qsy6AyeI4a7GUQ== X-Migadu-Spam-Score: -1.91 X-Spam-Score: -1.91 X-Migadu-Queue-Id: B696C3B127 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=envs.net header.s=modoboa header.b=hd1V2lAm; dmarc=pass (policy=none) header.from=gnu.org; 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: M+6zOUL9LLYs --=-=-= Content-Type: text/plain Efraim Flashner writes: > 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? 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. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Use-dummy-linker-for-systems-without-a-linux-or-.patch >From 2a972a30b9fcf743036bf9e81044e79854b62fde Mon Sep 17 00:00:00 2001 Message-Id: <2a972a30b9fcf743036bf9e81044e79854b62fde.1683465580.git.iyzsong@member.fsf.org> From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Sun, 7 May 2023 21:15:20 +0800 Subject: [PATCH] gnu: Use dummy linker for systems without a 'linux' or 'gnu' suffix. * 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(-) 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=? system "powerpc64-linux") "/lib/ld64.so.1") ((string=? system "alpha-linux") "/lib/ld-linux.so.2") - ;; XXX: This one is used bare-bones, without a libc, so add a case - ;; here just so we can keep going. - ((string=? system "arm-elf") "no-ld.so") - ((string=? system "arm-eabi") "no-ld.so") - ((string=? system "xtensa-elf") "no-ld.so") - ((string=? system "avr") "no-ld.so") - ((string=? system "propeller-elf") "no-ld.so") - ((string=? system "i686-mingw") "no-ld.so") - ((string=? system "x86_64-mingw") "no-ld.so") - ((string=? 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")))) ;;; base-commit: 7612610c44f16fc8f2ff395d9a2d58101a7356aa -- 2.39.2 --=-=-= Content-Type: text/plain (I'm unable to write a satisfied commit message..) --=-=-=--