From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: 49941@debbugs.gnu.org
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Subject: bug#49941: [PATCH] module/system/base/target.scm: support riscv32
Date: Sun, 8 Aug 2021 10:13:53 +0200 [thread overview]
Message-ID: <20210808081353.2942556-1-fontaine.fabrice@gmail.com> (raw)
Fix the following build failure on riscv32:
system/base/target.scm:132:16: In procedure triplet-pointer-size:
unknown CPU word size "riscv32"
Fixes:
- http://autobuild.buildroot.org/results/6705630c1484239ec8b73d57ebc2e2570fbfc8f8
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
module/system/base/target.scm | 1 +
1 file changed, 1 insertion(+)
diff --git a/module/system/base/target.scm b/module/system/base/target.scm
index 2088cd866..dba46664d 100644
--- a/module/system/base/target.scm
+++ b/module/system/base/target.scm
@@ -116,6 +116,7 @@
((string-match "^x86_64-.*-gnux32" triplet) 4) ; x32
+ ((string-match "32$" cpu) 4)
((string-match "64$" cpu) 8)
((string-match "64_?[lbe][lbe]$" cpu) 8)
((member cpu '("sparc" "powerpc" "mips" "mipsel" "nios2" "m68k" "sh3" "sh4")) 4)
--
2.30.2
next reply other threads:[~2021-08-08 8:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-08 8:13 Fabrice Fontaine [this message]
2022-10-01 13:26 ` bug#49941: [PATCH] module/system/base/target.scm: support riscv32 Ludovic Courtès
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://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210808081353.2942556-1-fontaine.fabrice@gmail.com \
--to=fontaine.fabrice@gmail.com \
--cc=49941@debbugs.gnu.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.
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).