Paul Eggert [2026-07-27 15:09 -0700] wrote:
> Also, port better to non-glibc, and in documentation update the
> list of platforms needing a fix. This includes 32-bit platforms
> using AddressSanitizer, unfortunately.
> * m4/malloc.m4 (gl_CHECK_MALLOC_PTRDIFF): Invoke gl_MUSL_LIBC.
> musl is safe, as is FreeBSD 11+, NetBSD 8+, OpenBSD 5.6+, AIX,
> Microsoft Windows. However, the AddressSanitizer is unsafe.
Following this change I see the following error during bootstrap:
autoreconf: running: /usr/bin/autoconf --force
configure:18862: error: undefined or overquoted macro: gl_MUSL_LIBC
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: error: /usr/bin/autoconf failed with exit status: 1
./bootstrap: autoreconf failed
That is in a project of mine that builds a dynamic module for Emacs, but
I was able to reproduce the same error in a dummy reproducer project
with only the following change:
diff --git a/bootstrap.conf b/bootstrap.conf
index 52f4fdf..4ac6e8a 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -10,13 +10,13 @@ checkout_only_file=.gitignore
gnulib_modules='
bool
+ calloc-gnu
config-h
git-version-gen
maintainer-makefile
std-gnu23
stddef-h
stdint-h
- stdio-h
stdlib-h
string-h
'
Here's the full recipe:
0. cd "$(mktemp -d)"
1. git clone 'https://git.sr.ht/~blc/foo'
2. cd foo && ./bootstrap
Hopefully the cause is more obvious to you, as I won't be able to look
into this for another week or two, sorry.
Thanks,
--
Basil