On Solaris 11.4, the compilation fails:
gcc -O2 -DHAVE_CONFIG_H -I. -I../../../gnulib/lib -I../..
-I/export/home/bruno/prefix64/include -Wall -D_REENTRANT -Wno-cast-qual
-Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef
-Wno-unused-function -Wno-unused-parameter -Wno-float-conversion
-Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits
-Wno-unsuffixed-float-constants -g -O2 -MT libgnu_a-malloca.o -MD -MP -MF
.deps/libgnu_a-malloca.Tpo -c -o libgnu_a-malloca.o `test -f 'malloca.c' ||
echo '../../../gnulib/lib/'`malloca.c
../../../gnulib/lib/malloca.c:42:56: error: macro "static_assert" requires 2
arguments, but only 1 given
static_assert (2 * sa_alignment_max - 1 <= (small_t) -1);
^
../../../gnulib/lib/malloca.c:42:1: warning: data definition has no type or
storage class
static_assert (2 * sa_alignment_max - 1 <= (small_t) -1);
^~~~~~~~~~~~~
../../../gnulib/lib/malloca.c:42:1: warning: type defaults to ‘int’ in
declaration of ‘static_assert’ [-Wimplicit-int]
gmake[4]: *** [Makefile:2521: libgnu_a-malloca.o] Error 1
This is the same problem as found in a GNU sed pretest [1]. It needs to be
fixed in Gnulib.
Bruno
[1] https://lists.gnu.org/archive/html/sed-devel/2022-10/msg00004.html