Build fails due glibc >glibc-2.33 (Ubuntu 21), Testing solutions
It no longer builds, fresh install:
>>> host-m4 1.4.18 Building
Making all in .
Making all in examples
Making all in lib
GEN alloca.h
GEN configmake.h
GEN arg-nonnull.h
GEN warn-on-use.h
GEN c++defs.h
GEN limits.h
GEN unused-parameter.h
GEN sys/types.h
GEN fcntl.h
GEN langinfo.h
GEN locale.h
GEN spawn.h
GEN signal.h
GEN stdio.h
GEN stdlib.h
GEN math.h
GEN string.h
GEN sys/stat.h
GEN sys/time.h
GEN time.h
GEN wchar.h
GEN unistd.h
GEN wctype.h
GEN sys/wait.h
CC gl_avltree_oset.o
CC binary-io.o
CC c-ctype.o
CC c-stack.o
CC c-strcasecmp.o
CC c-strncasecmp.o
CC cloexec.o
CC clean-temp.o
CC close-stream.o
In file included from /usr/include/signal.h:328,
from ./signal.h:52,
from c-stack.c:49:
c-stack.c:55:26: error: missing binary operator before token "("
55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
| ^~~~~~~~
CC closein.o
CC closeout.o
c-stack.c:134:8: error: variably modified 'buffer' at file scope
134 | char buffer[SIGSTKSZ];
| ^~~~~~
make[5]: *** [Makefile:1915: c-stack.o] Error 1
It seems glibc library changed in 2021 causing a lot of issues like this, this, this and so on.
Here they talk about this ubuntu patch for m4 1.4.18 (debian\patches\04-fix-sigstksz.patch):
Updated m4:
M4_VERSION = 1.4.19
sha256 63aede5c6d33b6d9b13511cd0be2cac046f2e70fd0a07aa9573a04a82783af96 m4-1.4.19.tar.xz
sha256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 COPYING
Updated fakeroot (also fails due glibc):
FAKEROOT_VERSION = 1.28
FAKEROOT_SOURCE = fakeroot_$(FAKEROOT_VERSION).orig.tar.gz
FAKEROOT_SITE = http://ftp.debian.org/debian/pool/main/f/fakeroot/
sha256 56d405e36ff685f83879be08fdd654255ab9aa38632b4605a98e896ad63990c2 fakeroot_1.28.orig.tar.gz
sha256 fc82ca8b6fdb18d4e3e85cfd8ab58d1bcd3f1b29abe782895abd91d64763f8e7 COPYING
Updated autoconf (Needed by newer fakeroot):
AUTOCONF_VERSION = 2.71
sha256 f14c83cfebcc9427f2c3cea7258bd90df972d92eb26752da4ddad81c87a0faa4 autoconf-2.71.tar.xz
sha256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 COPYINGv3
sha256 1f1cde9fb68b9b3cff18c420894bec5bd4defacd700b7d13df54a887301e5350 COPYING.EXCEPTION
Still failing...
For now, don't update to Ubuntu 21. Ubuntu LTS 20.04.4 has glibc-2.3.1, building works.
Same issue for me after fresh install. Using Ubuntu 22.10, glibc = 2.36
Use older version and it'll be fine. Debian 10, Ubuntu 20...