On 9/14/22 16:08, Bruno Haible wrote:
CC lib/libgnu_a-malloca.o ../lib/malloca.c:42:16: error: expected declaration specifiers or '...' before numeric constant 42 | static_assert (2 * sa_alignment_max - 1 <= (small_t) -1); | ^ make[1]: *** [Makefile:8629: lib/libgnu_a-malloca.o] Error 1Can you please show the full compilation command line? (Sometimes you may use "make V=1" to see it.)
I'm not seeing a problem on Fedora 36 x86-64, which has gcc (GCC) 12.1.1 20220507 (Red Hat 12.1.1-1), when I use current (d6f25832c0a02500602e44153e265e10a1d67ce4) Gnulib. When I bootstrap from current groff sources (5a1d89a4b59cc8b91d6b98f699258bf9a14041f5, but with the attached patch), there is no lib/malloca.c and therefore no need or way to build lib/libgnu_a-malloca.o. So it'd be helpful to know exactly what sources were used here, and why malloca.c was being compiled.
From 160932c99a650cc9c71a17acdc95cfc62f466ef1 Mon Sep 17 00:00:00 2001 From: Paul Eggert <[email protected]> Date: Wed, 14 Sep 2022 16:27:51 -0500 Subject: [PATCH] build: update gnulib submodule to latest --- gnulib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnulib b/gnulib index c8b8f3bbc..d6f25832c 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit c8b8f3bbcde37a53cd226f4c9cebd0dde6aca37f +Subproject commit d6f25832c0a02500602e44153e265e10a1d67ce4 -- 2.37.2
