Re: signal.h:682:13: error: size of array 'verify_NSIG_constraint' is negative
On 02.08.20 15:41, Bruno Haible wrote: > Tim Rühsen wrote: >> The surrounding code in lib/signal.h is >> #if 1 >> # if !0 > > Huh? HAVE_POSIX_SIGNALBLOCKING evaluates to 0 ?! > > There was a change to m4/signalblocking.m4 recently, but for me it works. > Can you take a look at the "checking for sigprocmask..." test in > config.log? Oh ouch, my bad. Just recognized that i use a global configure cache that i didn't remove. I assume that all the CI jobs suffer from the same. This rarely happens - but updating gnulib is definitely worth removing all configure caches. I am really sorry to have wasted your time. The cache just didn't pop into my mind :-( Thank you very much ! Regards, Tim signature.asc Description: OpenPGP digital signature
Re: signal.h:682:13: error: size of array 'verify_NSIG_constraint' is negative
Tim Rühsen wrote: > The surrounding code in lib/signal.h is > #if 1 > # if !0 Huh? HAVE_POSIX_SIGNALBLOCKING evaluates to 0 ?! There was a change to m4/signalblocking.m4 recently, but for me it works. Can you take a look at the "checking for sigprocmask..." test in config.log? Bruno
Re: signal.h:682:13: error: size of array 'verify_NSIG_constraint' is negative
Hi Tim, > after updating gnulib, I see this on all CI pipelines (Debian, Fedora, > Alpine, Arch, ...): > > In file included from /usr/include/x86_64-linux-gnu/sys/param.h:28, > from ./minmax.h:34, > from md2.c:30: > ./signal.h:682:13: error: size of array 'verify_NSIG_constraint' is negative > 682 | typedef int verify_NSIG_constraint[NSIG <= 32 ? 1 : -1]; > | ^~ > make[3]: *** [Makefile:2261: md2.lo] Error 1 Where do you see this? https://gitlab.com/gnulib/gnulib-ci/-/jobs https://gitlab.com/gnulib/build-images/-/jobs are fine. The signal.h related stuff in Gnulib has not changed since February 2020. To me, it looks like you are building a package that has "#define NSIG 64" in its config.h. Or something like that... Bruno