package/gauche: disable TLS support in host-gauche
PATCH 1/1 package/gauche: disable TLS support in host-gauche
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
--- package/gauche/gauche.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
package/gauche/gauche.mk +4 -1
@@ -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
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 26 lines · Yegor Yefremov via buildroot
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 directory41 | #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.
Quoted 6 lines
Fixes:
https://autobuild.buildroot.org/results/14af1c847c09fd8df35c8923194c75931d8a568dFixes 73e836e1398293abc1ec2b4297e1e680d2b29e32 ("package/gauche: bump to version 0.9.8")Assisted-by Claude:claude-opus-5-5Signed-off-by Yegor Yefremov <[email protected]>
Applied to master, thanks!
Best regards,
Thomas Petazzoni
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedIn reply of:
Quoted 26 lines
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 directory41 | #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.
Quoted 6 lines
Fixes:
https://autobuild.buildroot.org/results/14af1c847c09fd8df35c8923194c75931d8a568dFixes 73e836e1398293abc1ec2b4297e1e680d2b29e32 ("package/gauche: bump to version 0.9.8")Assisted-by Claude:claude-opus-5-5Signed-off-by Yegor Yefremov <[email protected]>
Applied to 2025.02.x, 2026.08.x. Thanks
Quoted 10 lines
--- package/gauche/gauche.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)package/gauche/gauche.mk +0
-0@@ -11,7 +11,10 @@ GAUCHE_LICENSE = BSD-3-Clause, Boehm-gc, SRFI (srfi-11.scm), reload (reload.scm) GAUCHE_LICENSE_FILES = COPYING
package/gauche/gauche.mk GAUCHE_LICENSE = BSD-3-Clause, Boehm-gc, SRFI (srfi-11.scm), reload (reload.scm) · line 20
Quoted 10 lines
package/gauche/gauche.mk +4
-1GAUCHE_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
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot