bug#75078: Guile 3.0.10 fails to build for i686 cygwin

2025-01-06 Thread Rob Browning
Jeremy Drake  writes:

> ice-9/boot-9.scm:1676:22: In procedure raise-exception:
> Value out of range 0 to< 18446744073709551615: -505802029
> make[2]: *** [Makefile:2515: language/cps/guile-vm/reify-primitives.go]
> Error 1

Is this with the release, or the current main branch?

Sounds like the former, and if so, then it could be something that's
been fixed since the release -- 3.0.10 is broken for 32-bit
architectures, but main should work there now.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4





bug#75413: Fix faulty example of SRFI-31 in the manual.

2025-01-06 Thread Yuval Langer

From aac75ef98ca6b008fd7d16f42dcb90d22b8ed43c Mon Sep 17 00:00:00 2001
From: Yuval Langer 
Date: Fri, 3 Jan 2025 06:37:43 +0200
Subject: [PATCH] Fix faulty SRFI-31 example.

---
 doc/ref/srfi-modules.texi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi
index d77bc1c90..1373409f0 100644
--- a/doc/ref/srfi-modules.texi
+++ b/doc/ref/srfi-modules.texi
@@ -3367,8 +3367,9 @@ The second syntax can be used to create anonymous recursive functions:
 
 @lisp
   guile> (define tmp (rec (display-n item n)
-   (if (positive? n)
-   (begin (display n) (display-n (- n 1))
+   (when (positive? n)
+   (display item)
+   (display-n item (- n 1)
   guile> (tmp 42 3)
   424242
   guile>
-- 
2.47.1



bug#75413: Fix faulty example of SRFI-31 in the manual.

2025-01-06 Thread Rob Browning
Yuval Langer  writes:

> diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi
> index d77bc1c90..1373409f0 100644
> --- a/doc/ref/srfi-modules.texi
> +++ b/doc/ref/srfi-modules.texi
> @@ -3367,8 +3367,9 @@ The second syntax can be used to create anonymous 
> recursive functions:
>  
>  @lisp
>guile> (define tmp (rec (display-n item n)
> -   (if (positive? n)
> -   (begin (display n) (display-n (- n 1))
> +   (when (positive? n)
> +   (display item)
> +   (display-n item (- n 1)
>guile> (tmp 42 3)
>424242
>guile>

Looks good overall -- strictly speaking, might need a (newline) in there
if we want the output to match (or the output could be changed).

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4