+ 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/emacs28-28.0.50nb28/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/emacs28-28.0.50nb28/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for emacs28-28.0.50nb28
/opt/pkg/bin/gmake -C lib all
gmake[1]: Entering directory '/home/pbulk/build/editors/emacs-snapshot/work/emacs-28.0.50/lib'
  GEN      alloca.h
  GEN      byteswap.h
  GEN      dirent.h
  GEN      fcntl.h
  GEN      getopt.h
  GEN      getopt-cdefs.h
  GEN      ieee754.h
  GEN      inttypes.h
  GEN      limits.h
  GEN      signal.h
  GEN      stdint.h
  GEN      stdio.h
  GEN      stdlib.h
  GEN      string.h
  GEN      sys/select.h
  GEN      sys/stat.h
  GEN      sys/time.h
  GEN      sys/types.h
  GEN      time.h
  GEN      unistd.h
  CC       fingerprint.o
  CC       copy-file-range.o
  CC       fstatat.o
  CC       fsusage.o
  CC       getopt.o
  CC       getopt1.o
  CC       lstat.o
  CC       memmem.o
  CC       mempcpy.o
  CC       mktime.o
  CC       regex.o
  CC       time_rz.o
  CC       timegm.o
  CC       acl-errno-valid.o
  CC       acl-internal.o
  CC       get-permissions.o
  CC       set-permissions.o
  CC       allocator.o
  CC       openat-proc.o
  CC       binary-io.o
  CC       c-ctype.o
  CC       c-strcasecmp.o
  CC       c-strncasecmp.o
  CC       careadlinkat.o
careadlinkat.c: In function 'careadlinkat':
careadlinkat.c:160:1: warning: function may return address of local variable [-Wreturn-local-addr]
  160 | }
      | ^
careadlinkat.c:73:8: note: declared here
   73 |   char stack_buf[1024];
      |        ^~~~~~~~~
  CC       close-stream.o
  CC       count-leading-zeros.o
  CC       count-one-bits.o
  CC       count-trailing-zeros.o
  CC       md5.o
  CC       sha1.o
  CC       sha256.o
  CC       sha512.o
  CC       dtoastr.o
  CC       dtotimespec.o
  CC       filemode.o
  CC       filevercmp.o
  CC       gettime.o
  CC       nstrftime.o
  CC       pipe2.o
  CC       qcopy-acl.o
  CC       stat-time.o
  CC       tempname.o
  CC       timespec.o
  CC       timespec-add.o
  CC       timespec-sub.o
  CC       u64.o
  CC       unistd.o
  CC       utimens.o
utimens.c: In function 'fdutimens':
utimens.c:382:17: warning: 'update_timespec' accessing 16 bytes in a region of size 8 [-Wstringop-overflow=]
  382 |       if (ts && update_timespec (&st, &ts))
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
utimens.c:382:17: note: referencing argument 2 of type 'struct timespec *[2]'
utimens.c:133:1: note: in a call to function 'update_timespec'
  133 | update_timespec (struct stat const *statbuf, struct timespec *ts[2])
      | ^~~~~~~~~~~~~~~
utimens.c: In function 'lutimens':
utimens.c:595:17: warning: 'update_timespec' accessing 16 bytes in a region of size 8 [-Wstringop-overflow=]
  595 |       if (ts && update_timespec (&st, &ts))
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
utimens.c:595:17: note: referencing argument 2 of type 'struct timespec *[2]'
utimens.c:133:1: note: in a call to function 'update_timespec'
  133 | update_timespec (struct stat const *statbuf, struct timespec *ts[2])
      | ^~~~~~~~~~~~~~~
  CC       openat-die.o
  CC       save-cwd.o
  AR       libgnu.a
gmake[1]: Leaving directory '/home/pbulk/build/editors/emacs-snapshot/work/emacs-28.0.50/lib'
/opt/pkg/bin/gmake -C lib-src all
gmake[1]: Entering directory '/home/pbulk/build/editors/emacs-snapshot/work/emacs-28.0.50/lib-src'
  CCLD     etags
  CCLD     ctags
In function 'main':
cc1: warning: '__builtin_memcpy' writing 12 bytes into a region of size between 0 and 7 [-Wstringop-overflow=]
In file included from ctags.c:2:
etags.c:1395:21: note: destination object of size [0, 7] allocated by 'xmalloc'
 1395 |         char *cmd = xmalloc (2 * strlen (tagfile) + sizeof "sort -u -o..");
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
etags.c:1401:14: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1401 |         *z++ = ' ';
      |         ~~~~~^~~~~
etags.c:1395:21: note: at offset 11 into destination object of size [0, 7] allocated by 'xmalloc'
 1395 |         char *cmd = xmalloc (2 * strlen (tagfile) + sizeof "sort -u -o..");
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
etags.c:1400:13: warning: 'stpcpy' writing 1 or more bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
 1400 |         z = stpcpy (z, tagfile);
      |             ^~~~~~~~~~~~~~~~~~~
etags.c:1395:21: note: at offset 11 into destination object of size [0, 7] allocated by 'xmalloc'
 1395 |         char *cmd = xmalloc (2 * strlen (tagfile) + sizeof "sort -u -o..");
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
etags.c:1402:9: warning: 'strcpy' writing 1 or more bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
 1402 |         strcpy (z, tagfile);
      |         ^~~~~~~~~~~~~~~~~~~
etags.c:1395:21: note: at offset 12 into destination object of size [0, 7] allocated by 'xmalloc'
 1395 |         char *cmd = xmalloc (2 * strlen (tagfile) + sizeof "sort -u -o..");
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CCLD     emacsclient
  CCLD     ebrowse
  CCLD     hexl
  CC       pop.o
  CCLD     movemail
  CCLD     make-docfile
  CCLD     make-fingerprint
gmake[1]: Leaving directory '/home/pbulk/build/editors/emacs-snapshot/work/emacs-28.0.50/lib-src'
/opt/pkg/bin/gmake -C src VCSWITNESS='' all
gmake[1]: Entering directory '/home/pbulk/build/editors/emacs-snapshot/work/emacs-28.0.50/src'
  GEN      lisp.mk
  GEN      globals.h
  CC       dispnew.o
  CC       frame.o
  CC       scroll.o
  CC       xdisp.o
  CC       menu.o
  CC       xmenu.o
  CC       window.o
  CC       charset.o
  CC       coding.o
  CC       category.o
  CC       ccl.o
  CC       character.o
  CC       chartab.o
  CC       bidi.o
  CC       cm.o
  CC       term.o
  CC       terminal.o
  CC       xfaces.o
  CC       xterm.o
  CC       xfns.o
  CC       xselect.o
  CC       xrdb.o
  CC       xsmfns.o
  CC       xsettings.o
  CC       gtkutil.o
  CC       emacsgtkfixed.o
  CC       dbusbind.o
  CC       emacs.o
  CC       keyboard.o
  CC       macros.o
  CC       keymap.o
  CC       sysdep.o
  CC       bignum.o
  CC       buffer.o
  CC       filelock.o
  CC       insdel.o
  CC       marker.o
  CC       minibuf.o
  CC       fileio.o
  CC       dired.o
  CC       cmds.o
  CC       casetab.o
  CC       casefiddle.o
  CC       indent.o
  CC       search.o
  CC       regex-emacs.o
  CC       undo.o
  CC       alloc.o
  CC       pdumper.o
  CC       data.o
  GEN      buildobj.h
  CC       doc.o
  CC       editfns.o
  CC       callint.o
  CC       eval.o
  CC       floatfns.o
  CC       fns.o
  CC       font.o
  CC       print.o
  CC       lread.o
  CC       dynlib.o
  CC       emacs-module.o
  CC       syntax.o
  CC       bytecode.o
  CC       process.o
  CC       gnutls.o
  CC       callproc.o
  CC       region-cache.o
  CC       sound.o
  CC       timefns.o
  CC       atimer.o
  CC       doprnt.o
  CC       intervals.o
  CC       textprop.o
  CC       composite.o
  CC       xml.o
  CC       lcms.o
  CC       inotify.o
inotify.c: In function 'inotify_callback':
inotify.c:316:18: error: 'FIONREAD' undeclared (first use in this function); did you mean 'UIO_READ'?
  316 |   if (ioctl (fd, FIONREAD, &to_read) < 0)
      |                  ^~~~~~~~
      |                  UIO_READ
inotify.c:316:18: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [Makefile:402: inotify.o] Error 1
gmake[1]: Leaving directory '/home/pbulk/build/editors/emacs-snapshot/work/emacs-28.0.50/src'
gmake: *** [Makefile:424: src] Error 2
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/editors/emacs-snapshot