+ 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/di-5.0.14/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/di-5.0.14/work.log
===> Building for di-5.0.14
[  6%] Building C object CMakeFiles/objdistrutils.dir/distrutils.c.o
[ 12%] Building C object CMakeFiles/dimathtest.dir/dimathtest.c.o
[ 12%] Built target objdistrutils
[ 18%] Linking C executable dimathtest
[ 25%] Building C object CMakeFiles/getoptn_test.dir/getoptn.c.o
[ 31%] Building C object CMakeFiles/libdi.dir/digetentries.c.o
/home/pbulk/build/sysutils/di/work/di-5.0.14/digetentries.c: In function 'di_get_disk_entries':
/home/pbulk/build/sysutils/di/work/di-5.0.14/digetentries.c:536:20: error: storage size of 'mntEntry' isn't known
  536 |   struct mnttab    mntEntry;
      |                    ^~~~~~~~
/home/pbulk/build/sysutils/di/work/di-5.0.14/digetentries.c:542:20: error: 'DI_MOUNT_FILE' undeclared (first use in this function); did you mean 'DI_MOUNTPT_LEN'?
  542 |   if ( (f = fopen (DI_MOUNT_FILE, "r")) == (FILE *) NULL) {
      |                    ^~~~~~~~~~~~~
      |                    DI_MOUNTPT_LEN
/home/pbulk/build/sysutils/di/work/di-5.0.14/digetentries.c:542:20: note: each undeclared identifier is reported only once for each function it appears in
/home/pbulk/build/sysutils/di/work/di-5.0.14/digetentries.c:547:46: error: invalid application of 'sizeof' to incomplete type 'struct mnttab'
  547 |   while (fread ( (char *) &mntEntry, sizeof (struct mnttab), 1, f) == 1) {
      |                                              ^~~~~~
/home/pbulk/build/sysutils/di/work/di-5.0.14/digetentries.c:536:20: warning: unused variable 'mntEntry' [-Wunused-variable]
  536 |   struct mnttab    mntEntry;
      |                    ^~~~~~~~
At top level:
cc1: note: unrecognized command-line option '-Wno-macro-redefined' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-used-but-marked-unused' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-unsafe-buffer-usage' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-documentation' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-documentation-unknown-command' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-documentation-deprecated-sync' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-gnu-zero-variadic-macro-arguments' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-implicit-int-conversion' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-reserved-id-macro' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-reserved-macro-identifier' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-pragma-pack' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-shift-sign-overflow' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-poison-system-directories' may have been intended to silence earlier diagnostics
cc1: note: unrecognized command-line option '-Wno-extra-semi-stmt' may have been intended to silence earlier diagnostics
--- CMakeFiles/libdi.dir/digetentries.c.o ---
*** [CMakeFiles/libdi.dir/digetentries.c.o] Error code 1

bmake[2]: stopped making "CMakeFiles/libdi.dir/build" in /home/pbulk/build/sysutils/di/work/di-5.0.14/cmake-pkgsrc-build
[ 37%] Building C object CMakeFiles/libdi.dir/didiskutil.c.o
[ 37%] Built target dimathtest
bmake[2]: 1 error

bmake[2]: stopped making "CMakeFiles/libdi.dir/build" in /home/pbulk/build/sysutils/di/work/di-5.0.14/cmake-pkgsrc-build
--- CMakeFiles/libdi.dir/all ---
*** [CMakeFiles/libdi.dir/all] Error code 2

bmake[1]: stopped making "all" in /home/pbulk/build/sysutils/di/work/di-5.0.14/cmake-pkgsrc-build
--- CMakeFiles/getoptn_test.dir/all ---
*** [CMakeFiles/getoptn_test.dir/all] Error code 6

bmake[1]: stopped making "all" in /home/pbulk/build/sysutils/di/work/di-5.0.14/cmake-pkgsrc-build
bmake[1]: 2 errors

bmake[1]: stopped making "all" in /home/pbulk/build/sysutils/di/work/di-5.0.14/cmake-pkgsrc-build
*** [all] Error code 2

bmake: stopped making "all" in /home/pbulk/build/sysutils/di/work/di-5.0.14/cmake-pkgsrc-build
bmake: 1 error

bmake: stopped making "all" in /home/pbulk/build/sysutils/di/work/di-5.0.14/cmake-pkgsrc-build
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/di
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/di