Doing a rebuild on arm64, I saw the following failure:
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I./src/common -I./include -Wall -Wextra -Wno-missing-field-initializers -Werror -g -O2 -std=c99 -D_XOPEN_SOURCE=600 -fvisibility=hidden -g -O2 -fdebug-prefix-map=/home/steve/debian/build/kqueue/libkqueue-2.0.3=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/common/libkqueue_la-kevent.lo `test -f 'src/common/kevent.c' || echo './'`src/common/kevent.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I./src/common -I./include -Wall -Wextra -Wno-missing-field-initializers -Werror -g -O2 -std=c99 -D_XOPEN_SOURCE=600 -fvisibility=hidden -g -O2 -fdebug-prefix-map=/home/steve/debian/build/kqueue/libkqueue-2.0.3=. -fstack-protector-strong -Wformat -Werror=format-security -c src/common/kevent.c -fPIC -DPIC -o src/common/.libs/libkqueue_la-kevent.o
src/common/kevent.c: In function 'kevent_dump':
src/common/kevent.c:107:37: error: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 931 and 1004 [-Werror=format-truncation=]
src/common/kevent.c:98:28:
return ((const char *) &buf[0]);
~~~~~~~
src/common/kevent.c:107:37:
"{ ident=%d, filter=%s, %s, %s, data=%d, udata=%p }",
^~
src/common/kevent.c:107:13: note: using the range [-2147483648, 2147483647] for directive argument
"{ ident=%d, filter=%s, %s, %s, data=%d, udata=%p }",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
I can reporiduce just the same on amd64. Using -Werror with newere
compilers...