+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/trn-4.77nb7/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/trn-4.77nb7/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for trn-4.77nb7
--- newsnews ---
--- addng.o ---
--- newsnews ---
/bin/sh /home/pbulk/build/news/trn/work/trn-4.0-test77/newsnews.SH
--- addng.o ---
cc -c -O addng.c
--- newsnews ---
Extracting newsnews (with version substitution)
--- art.o ---
cc -c -O art.c
In file included from art.c:28:
art.c: In function 'do_article':
term.h:164:20: warning: implicit declaration of function 'tputs'; did you mean 'puts'? [-Wimplicit-function-declaration]
 #define standout() tputs(tc_SO,1,putchr) FLUSH
                    ^~~~~
art.c:344:4: note: in expansion of macro 'standout'
    standout();
    ^~~~~~~~
--- addng.o ---
In file included from /usr/include/features.h:438,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from common.h:6,
                 from addng.c:7:
/usr/include/bits/fcntl2.h: In function 'open':
/usr/include/bits/fcntl2.h:43:7: error: invalid use of '__builtin_va_arg_pack_len ()'
   if (__va_arg_pack_len () > 1)
       ^~~~~~~~~~~~~~~~~
/usr/include/bits/fcntl2.h:56:7: error: invalid use of '__builtin_va_arg_pack_len ()'
   if (__va_arg_pack_len () < 1)
       ^~~~~~~~~~~~~~~~~
In file included from /usr/include/fcntl.h:328,
                 from common.h:26,
                 from addng.c:7:
/usr/include/bits/fcntl2.h:59:10: error: invalid use of '__builtin_va_arg_pack ()'
   return __open_alias (__path, __oflag, __va_arg_pack ());
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/features.h:438,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from common.h:6,
                 from addng.c:7:
/usr/include/bits/fcntl2.h: In function 'openat':
/usr/include/bits/fcntl2.h:119:7: error: invalid use of '__builtin_va_arg_pack_len ()'
   if (__va_arg_pack_len () > 1)
       ^~~~~~~~~~~~~~~~~
/usr/include/bits/fcntl2.h:132:7: error: invalid use of '__builtin_va_arg_pack_len ()'
   if (__va_arg_pack_len () < 1)
       ^~~~~~~~~~~~~~~~~
In file included from /usr/include/fcntl.h:328,
                 from common.h:26,
                 from addng.c:7:
/usr/include/bits/fcntl2.h:135:10: error: invalid use of '__builtin_va_arg_pack ()'
   return __openat_alias (__fd, __path, __oflag, __va_arg_pack ());
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*** [addng.o] Error code 1

bmake: stopped in /home/pbulk/build/news/trn/work/trn-4.0-test77
--- art.o ---
In file included from /usr/include/features.h:438,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from common.h:6,
                 from art.c:7:
/usr/include/bits/fcntl2.h: In function 'open':
/usr/include/bits/fcntl2.h:43:7: error: invalid use of '__builtin_va_arg_pack_len ()'
   if (__va_arg_pack_len () > 1)
       ^~~~~~~~~~~~~~~~~
/usr/include/bits/fcntl2.h:56:7: error: invalid use of '__builtin_va_arg_pack_len ()'
   if (__va_arg_pack_len () < 1)
       ^~~~~~~~~~~~~~~~~
In file included from /usr/include/fcntl.h:328,
                 from common.h:26,
                 from art.c:7:
/usr/include/bits/fcntl2.h:59:10: error: invalid use of '__builtin_va_arg_pack ()'
   return __open_alias (__path, __oflag, __va_arg_pack ());
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/features.h:438,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from common.h:6,
                 from art.c:7:
/usr/include/bits/fcntl2.h: In function 'openat':
/usr/include/bits/fcntl2.h:119:7: error: invalid use of '__builtin_va_arg_pack_len ()'
   if (__va_arg_pack_len () > 1)
       ^~~~~~~~~~~~~~~~~
/usr/include/bits/fcntl2.h:132:7: error: invalid use of '__builtin_va_arg_pack_len ()'
   if (__va_arg_pack_len () < 1)
       ^~~~~~~~~~~~~~~~~
In file included from /usr/include/fcntl.h:328,
                 from common.h:26,
                 from art.c:7:
/usr/include/bits/fcntl2.h:135:10: error: invalid use of '__builtin_va_arg_pack ()'
   return __openat_alias (__fd, __path, __oflag, __va_arg_pack ());
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*** [art.o] Error code 1

bmake: stopped in /home/pbulk/build/news/trn/work/trn-4.0-test77
2 errors

bmake: stopped in /home/pbulk/build/news/trn/work/trn-4.0-test77
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/news/trn
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-el8-trunk-x86_64/news/trn