+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/elftoolchain-0.7.1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/elftoolchain-0.7.1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for elftoolchain-0.7.1
all ===> common
all ===> libelf
m4 -D SRCDIR=/home/pbulk/build/devel/elftoolchain/work/elftoolchain-0.7.1/libelf  libelf_fsize.m4 > libelf_fsize.c
m4 -D SRCDIR=/home/pbulk/build/devel/elftoolchain/work/elftoolchain-0.7.1/libelf  libelf_msize.m4 > libelf_msize.c
m4 -D SRCDIR=/home/pbulk/build/devel/elftoolchain/work/elftoolchain-0.7.1/libelf  libelf_convert.m4 > libelf_convert.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow  -I. -I/home/pbulk/build/devel/elftoolchain/work/elftoolchain-0.7.1/libelf -I/home/pbulk/build/devel/elftoolchain/work/elftoolchain-0.7.1/libelf/../common -I/opt/pkg/include -c elf.c
elf.c:31:13: error: expected declaration specifiers or '...' before string constant
   31 | ELFTC_VCSID("$Id: elf.c 2225 2011-11-26 18:55:54Z jkoshy $");
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
elf.c:34:35: error: 'LIBELF_ARCH' undeclared here (not in a function); did you mean 'LIBELF_ERROR'?
   34 |         .libelf_arch            = LIBELF_ARCH,
      |                                   ^~~~~~~~~~~
      |                                   LIBELF_ERROR
elf.c:35:35: error: 'LIBELF_BYTEORDER' undeclared here (not in a function); did you mean 'LIBELF_ERROR'?
   35 |         .libelf_byteorder       = LIBELF_BYTEORDER,
      |                                   ^~~~~~~~~~~~~~~~
      |                                   LIBELF_ERROR
elf.c:36:35: error: 'LIBELF_CLASS' undeclared here (not in a function)
   36 |         .libelf_class           = LIBELF_CLASS,
      |                                   ^~~~~~~~~~~~
*** Error code 1

Stop.
bmake[1]: stopped in /home/pbulk/build/devel/elftoolchain/work/elftoolchain-0.7.1/libelf
*** Error code 1

Stop.
bmake: stopped in /home/pbulk/build/devel/elftoolchain/work/elftoolchain-0.7.1
*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/elftoolchain
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/elftoolchain