Subject: bug#49941: closed (Re: bug#49941: [PATCH] module/system/base/target.scm: support riscv32)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 01 Oct 2022 13:28:02 +0000

Your bug report

#49941: [PATCH] module/system/base/target.scm: support riscv32

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
49941: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49941
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#49941: [PATCH] module/system/base/target.scm: support riscv32
From: Ludovic Courtès <[email-masked]>
To: Fabrice Fontaine <[email-masked]>
Cc: [email-masked]
Date: Sat, 01 Oct 2022 15:26:47 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Fabrice Fontaine <[email-masked]> skribis:

> 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 <[email-masked]>

Pushed a while back as ffb33fd66bba30f6a3e554be644fcaf269d39f05, thanks!

Ludo'.

Subject: [PATCH] module/system/base/target.scm: support riscv32
From: Fabrice Fontaine <[email-masked]>
To: [email-masked]
Cc: Fabrice Fontaine <[email-masked]>
Date: Sun, 8 Aug 2021 10:13:53 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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 <[email-masked]>
---
 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