Re: lib/malloca.c: error when compiling "groff"

2022-09-18 Thread Paul Eggert
On 9/18/22 09:36, Bjarni Ingi Gislason wrote: The source of the compilation error was the file "src/include/assert.h" in "groff". Removing it fixes the compilation. This makes it sound like the problem was a leftover assert.h from a previous build, which is not a Gnulib bug per se. If s

Re: lib/malloca.c: error when compiling "groff"

2022-09-18 Thread Bjarni Ingi Gislason
The source of the compilation error was the file "src/include/assert.h" in "groff". Removing it fixes the compilation.

Re: lib/malloca.c: error when compiling "groff"

2022-09-15 Thread Bruno Haible
Hi Bjarni, > autoconf (GNU Autoconf) 2.71 > > automake (GNU automake) 1.16.5 Good to hear that the autoconf and automake versions are those that everyone else uses. > Here are some missing files to reproduce my case > > 1) bootstrap.conf in an attachment > > 2) bootstrap.out -- " -- I

Re: lib/malloca.c: error when compiling "groff"

2022-09-15 Thread Bjarni Ingi Gislason
Here are some missing files to reproduce my case 1) bootstrap.conf in an attachment 2) bootstrap.out -- " -- Other information gnulib: commit e441260eab816e9b6d202fe7ac288ec2a7b72f34 Date: Thu Sep 15 00:50:41 2022 +0200 autoconf (GNU Autoconf) 2.71 automake (GNU automake) 1.16.5 GNU

Re: lib/malloca.c: error when compiling "groff"

2022-09-15 Thread Bruno Haible
Bjarni Ingi Gislason wrote: > /usr/bin/gcc-12 ...-std=c2x ... A gnulib testdir builds fine with CC="gcc -ftrapv -std=c2x", where gcc is version 12.2.0. Bruno

Re: lib/malloca.c: error when compiling "groff"

2022-09-14 Thread Bjarni Ingi Gislason
I get the same error with "gcc-11 (Debian 11.3.0-5) 11.3.0" and gcc-10 In "config.log" I see: configure:21128: checking for static_assert configure:21162: /usr/bin/gcc-10 -c -Walloc-zero -Walloca -Wall -Wextra -Wformat=2 -Wattribute-warning -Wdate-time -Wformat-security -Wfree-nonheap-objec

Re: lib/malloca.c: error when compiling "groff"

2022-09-14 Thread Bruno Haible
Bjarni Ingi Gislason wrote: > I had bootstrapped at 19.55 UTC so I missed the latest commit. > > I bootstrapped at 22.39 UTC with these changes: > > Updating file gnulib_m4/assert_h.m4 (backup in gnulib_m4/assert_h.m4~) > Updating file lib/verify.h (backup in lib/verify.h~) > > I made dist

Re: lib/malloca.c: error when compiling "groff"

2022-09-14 Thread Bjarni Ingi Gislason
On Wed, Sep 14, 2022 at 04:45:20PM -0500, Paul Eggert wrote: > Can you reproduce the problem with my recipe? > > One possibility is that you have an old malloca.c left over from an old > build, and it won't compile with the new Gnulib. So it may help to bootstrap > from scratch. > (all times in U

Re: lib/malloca.c: error when compiling "groff"

2022-09-14 Thread Paul Eggert
Can you reproduce the problem with my recipe? One possibility is that you have an old malloca.c left over from an old build, and it won't compile with the new Gnulib. So it may help to bootstrap from scratch.

Re: lib/malloca.c: error when compiling "groff"

2022-09-14 Thread Paul Eggert
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/l

Re: lib/malloca.c: error when compiling "groff"

2022-09-14 Thread Bjarni Ingi Gislason
/usr/bin/gcc-12 -DHAVE_CONFIG_H -I. -I.. -I./src/include -I../src/include -I../lib -I./src/include -I./lib -D_FORTIFY_SOURCE=2 -DGCC_LINT -DGNULIB_NO_VLA -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion

Re: lib/malloca.c: error when compiling "groff"

2022-09-14 Thread Bruno Haible
Bjarni Ingi Gislason wrote: > CC = gcc (Debian 12.2.0-1) 12.2.0 > > 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); > |^

lib/malloca.c: error when compiling "groff"

2022-09-14 Thread Bjarni Ingi Gislason
CC = gcc (Debian 12.2.0-1) 12.2.0 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-