* [Buildroot] [PATCH] package/gauche: disable TLS support in host-gauche
@ 2026-10-22 12:11 Yegor Yefremov via buildroot
2026-10-22 15:33 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Yegor Yefremov via buildroot @ 2026-10-22 12:11 UTC (permalink / raw)
To: buildroot; +Cc: Hiroshi Kawashima
host-gauche fails to build on build machines that have mbedtls 4.x
installed, e.g. Arch Linux:
checking for mbedtls/version.h... yes
...
tls/ssl: mbedtls
...
./tls-mbed.c:41:10: fatal error: mbedtls/ctr_drbg.h: No such file or directory
41 | #include <mbedtls/ctr_drbg.h>
| ^~~~~~~~~~~~~~~~~~~~
Since version 0.9.6, Gauche's configure enables mbedtls support by
default whenever it finds mbedtls on the system. For host-gauche, this
means the mbedtls of the build machine is used, and mbedtls 4.x no
longer provides mbedtls/ctr_drbg.h, which Gauche 0.9.12 needs.
host-gauche only provides the gosh interpreter used to build the target
gauche, so it doesn't need TLS support at all. Pass --with-tls=no to
not depend on whatever mbedtls the build machine has.
This issue has been present since commit 73e836e13982 ("package/gauche:
bump to version 0.9.8"), which bumped Gauche from 0.9.5 (no mbedtls
support) and thereby made host-gauche auto-detect the build machine's
mbedtls. It therefore affects 2019.11 and later, including all
maintained branches.
Fixes:
https://autobuild.buildroot.org/results/14af1c847c09fd8df35c8923194c75931d8a568d
Fixes: 73e836e1398293abc1ec2b4297e1e680d2b29e32 ("package/gauche: bump to version 0.9.8")
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
package/gauche/gauche.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/package/gauche/gauche.mk b/package/gauche/gauche.mk
index b635c488fe..c63a663ddd 100644
--- a/package/gauche/gauche.mk
+++ b/package/gauche/gauche.mk
@@ -11,7 +11,10 @@ GAUCHE_LICENSE = BSD-3-Clause, Boehm-gc, SRFI (srfi-11.scm), reload (reload.scm)
GAUCHE_LICENSE_FILES = COPYING
GAUCHE_DEPENDENCIES = host-gauche
-HOST_GAUCHE_CONF_OPTS = --without-zlib
+# host-gauche is only used to build the target gauche, so it doesn't
+# need TLS support. Disable it so that configure doesn't pick up an
+# incompatible mbedtls from the build machine.
+HOST_GAUCHE_CONF_OPTS = --without-zlib --with-tls=no
GAUCHE_CONF_OPTS = --with-libatomic-ops=none
# Enable embedded axTLS
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [Buildroot] [PATCH] package/gauche: disable TLS support in host-gauche
2026-10-22 12:11 [Buildroot] [PATCH] package/gauche: disable TLS support in host-gauche Yegor Yefremov via buildroot
@ 2026-10-22 15:33 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-22 15:33 UTC (permalink / raw)
To: Yegor Yefremov; +Cc: buildroot, Hiroshi Kawashima
On Thu, Oct 22, 2026 at 02:11:02PM +0200, Yegor Yefremov via buildroot wrote:
> host-gauche fails to build on build machines that have mbedtls 4.x
> installed, e.g. Arch Linux:
>
> checking for mbedtls/version.h... yes
> ...
> tls/ssl: mbedtls
> ...
> ./tls-mbed.c:41:10: fatal error: mbedtls/ctr_drbg.h: No such file or directory
> 41 | #include <mbedtls/ctr_drbg.h>
> | ^~~~~~~~~~~~~~~~~~~~
>
> Since version 0.9.6, Gauche's configure enables mbedtls support by
> default whenever it finds mbedtls on the system. For host-gauche, this
> means the mbedtls of the build machine is used, and mbedtls 4.x no
> longer provides mbedtls/ctr_drbg.h, which Gauche 0.9.12 needs.
>
> host-gauche only provides the gosh interpreter used to build the target
> gauche, so it doesn't need TLS support at all. Pass --with-tls=no to
> not depend on whatever mbedtls the build machine has.
>
> This issue has been present since commit 73e836e13982 ("package/gauche:
> bump to version 0.9.8"), which bumped Gauche from 0.9.5 (no mbedtls
> support) and thereby made host-gauche auto-detect the build machine's
> mbedtls. It therefore affects 2019.11 and later, including all
> maintained branches.
>
> Fixes:
> https://autobuild.buildroot.org/results/14af1c847c09fd8df35c8923194c75931d8a568d
>
> Fixes: 73e836e1398293abc1ec2b4297e1e680d2b29e32 ("package/gauche: bump to version 0.9.8")
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Applied to master, thanks!
Best regards,
Thomas Petazzoni
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-22 15:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-22 12:11 [Buildroot] [PATCH] package/gauche: disable TLS support in host-gauche Yegor Yefremov via buildroot
2026-10-22 15:33 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox