From: "宋文武 via Guix-patches via" <guix-patches@gnu.org>
To: Efraim Flashner <efraim@flashner.co.il>
Cc: 63341@debbugs.gnu.org, 宋文武 <iyzsong@member.fsf.org>
Subject: [bug#63341] [PATCH] gnu: Add dummy linker for riscv64-elf.
Date: Sun, 07 May 2023 21:22:25 +0800 [thread overview]
Message-ID: <87pm7c5l9q.fsf@envs.net> (raw)
In-Reply-To: <ZFdksRAVlzn88M69@3900XT> (Efraim Flashner's message of "Sun, 7 May 2023 11:43:29 +0300")
[-- Attachment #1: Type: text/plain, Size: 416 bytes --]
Efraim Flashner <efraim@flashner.co.il> 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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Use-dummy-linker-for-systems-without-a-linux-or-.patch --]
[-- Type: text/x-patch, Size: 1869 bytes --]
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?= <iyzsong@member.fsf.org>
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"))))
\f
;;;
base-commit: 7612610c44f16fc8f2ff395d9a2d58101a7356aa
--
2.39.2
[-- Attachment #3: Type: text/plain, Size: 53 bytes --]
(I'm unable to write a satisfied commit message..)
next prev parent reply other threads:[~2023-05-07 13:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-07 1:31 [bug#63341] [PATCH] gnu: Add dummy linker for riscv64-elf iyzsong--- via Guix-patches via
2023-05-07 8:43 ` Efraim Flashner
2023-05-07 13:22 ` 宋文武 via Guix-patches via [this message]
2023-05-09 15:55 ` Efraim Flashner
2023-05-15 10:16 ` 宋文武 via Guix-patches via
2023-05-15 10:16 ` [bug#63341] [PATCH v2] gnu: Use dummy linker for '*-elf' systems iyzsong--- via Guix-patches via
[not found] ` <ZGIds6AAo1Vcmx8w@3900XT>
2023-05-15 13:33 ` bug#63341: " 宋文武 via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pm7c5l9q.fsf@envs.net \
--to=guix-patches@gnu.org \
--cc=63341@debbugs.gnu.org \
--cc=efraim@flashner.co.il \
--cc=iyzsong@envs.net \
--cc=iyzsong@member.fsf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).