+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/picodrive-1.93/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/picodrive-1.93/work.log
===> Building for picodrive-1.93
gcc -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -Wall -g -I. -O3 -DNDEBUG -falign-functions=2 -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wno-unused-result -DEMU_F68K -D_USE_CZ80 -DDRC_SH2 -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm  -c -o platform/linux/emu.o platform/linux/emu.c
gcc -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -Wall -g -I. -O3 -DNDEBUG -falign-functions=2 -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wno-unused-result -DEMU_F68K -D_USE_CZ80 -DDRC_SH2 -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm  -c -o platform/linux/blit.o platform/linux/blit.c
gcc -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -Wall -g -I. -O3 -DNDEBUG -falign-functions=2 -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wno-unused-result -DEMU_F68K -D_USE_CZ80 -DDRC_SH2 -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm  -c -o platform/common/plat_sdl.o platform/common/plat_sdl.c
gcc -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -Wall -g -I. -O3 -DNDEBUG -falign-functions=2 -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wno-unused-result -DEMU_F68K -D_USE_CZ80 -DDRC_SH2 -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm  -c -o platform/libpicofe/plat_sdl.o platform/libpicofe/plat_sdl.c
gcc -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -Wall -g -I. -O3 -DNDEBUG -falign-functions=2 -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wno-unused-result -DEMU_F68K -D_USE_CZ80 -DDRC_SH2 -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm  -c -o platform/libpicofe/in_sdl.o platform/libpicofe/in_sdl.c
gcc -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -Wall -g -I. -O3 -DNDEBUG -falign-functions=2 -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wno-unused-result -DEMU_F68K -D_USE_CZ80 -DDRC_SH2 -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm  -c -o platform/libpicofe/plat_dummy.o platform/libpicofe/plat_dummy.c
gcc -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -Wall -g -I. -O3 -DNDEBUG -falign-functions=2 -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wno-unused-result -DEMU_F68K -D_USE_CZ80 -DDRC_SH2 -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm  -c -o platform/common/main.o platform/common/main.c
gcc -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -Wall -g -I. -O3 -DNDEBUG -falign-functions=2 -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wno-unused-result -DEMU_F68K -D_USE_CZ80 -DDRC_SH2 -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm  -c -o platform/common/emu.o platform/common/emu.c
gcc -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -Wall -g -I. -O3 -DNDEBUG -falign-functions=2 -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wno-unused-result -DEMU_F68K -D_USE_CZ80 -DDRC_SH2 -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm  -c -o platform/common/menu_pico.o platform/common/menu_pico.c
gcc -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -Wall -g -I. -O3 -DNDEBUG -falign-functions=2 -DPICO_DATA_DIR="\"/opt/local/share/picodrive/\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wno-unused-result -DEMU_F68K -D_USE_CZ80 -DDRC_SH2 -I/usr/include -I/opt/local/include/SDL -I/opt/local/include -I/opt/local/include/libdrm  -c -o platform/common/config_file.o platform/common/config_file.c
In file included from platform/common/menu_pico.c:58:
platform/common/../libpicofe/menu.c: In function 'menu_init_base':
platform/common/../libpicofe/menu.c:268:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  268 |                         if (fd8x8&0x40) *fd |= 0x0f; fd++;
      |                         ^~
platform/common/../libpicofe/menu.c:268:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  268 |                         if (fd8x8&0x40) *fd |= 0x0f; fd++;
      |                                                      ^~
platform/common/../libpicofe/menu.c:270:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  270 |                         if (fd8x8&0x10) *fd |= 0x0f; fd++;
      |                         ^~
platform/common/../libpicofe/menu.c:270:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  270 |                         if (fd8x8&0x10) *fd |= 0x0f; fd++;
      |                                                      ^~
platform/common/../libpicofe/menu.c:272:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  272 |                         if (fd8x8&0x04) *fd |= 0x0f; fd++;
      |                         ^~
platform/common/../libpicofe/menu.c:272:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  272 |                         if (fd8x8&0x04) *fd |= 0x0f; fd++;
      |                                                      ^~
platform/common/../libpicofe/menu.c:274:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  274 |                         if (fd8x8&0x01) *fd |= 0x0f; fd++;
      |                         ^~
platform/common/../libpicofe/menu.c:274:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  274 |                         if (fd8x8&0x01) *fd |= 0x0f; fd++;
      |                                                      ^~
platform/common/../libpicofe/menu.c: In function 'draw_dirlist':
platform/common/../libpicofe/menu.c:895:34: error: 'struct dirent' has no member named 'd_type'
  895 |                 if (namelist[i+1]->d_type == DT_DIR) {
      |                                  ^~
platform/common/../libpicofe/menu.c:895:46: error: 'DT_DIR' undeclared (first use in this function)
  895 |                 if (namelist[i+1]->d_type == DT_DIR) {
      |                                              ^~~~~~
platform/common/../libpicofe/menu.c:895:46: note: each undeclared identifier is reported only once for each function it appears in
platform/common/../libpicofe/menu.c: In function 'scandir_cmp':
platform/common/../libpicofe/menu.c:933:18: error: 'const struct dirent' has no member named 'd_type'
  933 |         if ((*d1)->d_type == (*d2)->d_type)
      |                  ^~
platform/common/../libpicofe/menu.c:933:35: error: 'const struct dirent' has no member named 'd_type'
  933 |         if ((*d1)->d_type == (*d2)->d_type)
      |                                   ^~
platform/common/../libpicofe/menu.c:935:18: error: 'const struct dirent' has no member named 'd_type'
  935 |         if ((*d1)->d_type == DT_DIR)
      |                  ^~
platform/common/../libpicofe/menu.c:935:30: error: 'DT_DIR' undeclared (first use in this function)
  935 |         if ((*d1)->d_type == DT_DIR)
      |                              ^~~~~~
platform/common/../libpicofe/menu.c:937:18: error: 'const struct dirent' has no member named 'd_type'
  937 |         if ((*d2)->d_type == DT_DIR)
      |                  ^~
platform/common/../libpicofe/menu.c: In function 'scandir_filter':
platform/common/../libpicofe/menu.c:954:20: error: 'const struct dirent' has no member named 'd_type'
  954 |         switch (ent->d_type) {
      |                    ^~
platform/common/../libpicofe/menu.c:955:14: error: 'DT_DIR' undeclared (first use in this function)
  955 |         case DT_DIR:
      |              ^~~~~~
platform/common/../libpicofe/menu.c:957:14: error: 'DT_LNK' undeclared (first use in this function)
  957 |         case DT_LNK:
      |              ^~~~~~
platform/common/../libpicofe/menu.c:958:14: error: 'DT_UNKNOWN' undeclared (first use in this function)
  958 |         case DT_UNKNOWN:
      |              ^~~~~~~~~~
platform/common/../libpicofe/menu.c: In function 'menu_loop_romsel':
platform/common/../libpicofe/menu.c:1059:32: error: 'struct dirent' has no member named 'd_type'
 1059 |                 if (namelist[i]->d_type == DT_REG || namelist[i]->d_type == DT_DIR)
      |                                ^~
platform/common/../libpicofe/menu.c:1059:44: error: 'DT_REG' undeclared (first use in this function)
 1059 |                 if (namelist[i]->d_type == DT_REG || namelist[i]->d_type == DT_DIR)
      |                                            ^~~~~~
platform/common/../libpicofe/menu.c:1059:65: error: 'struct dirent' has no member named 'd_type'
 1059 |                 if (namelist[i]->d_type == DT_REG || namelist[i]->d_type == DT_DIR)
      |                                                                 ^~
platform/common/../libpicofe/menu.c:1059:77: error: 'DT_DIR' undeclared (first use in this function)
 1059 |                 if (namelist[i]->d_type == DT_REG || namelist[i]->d_type == DT_DIR)
      |                                                                             ^~~~~~
platform/common/../libpicofe/menu.c:1068:44: error: 'struct dirent' has no member named 'd_type'
 1068 |                                 namelist[i]->d_type = DT_REG;
      |                                            ^~
platform/common/../libpicofe/menu.c:1072:44: error: 'struct dirent' has no member named 'd_type'
 1072 |                                 namelist[i]->d_type = DT_DIR;
      |                                            ^~
platform/common/../libpicofe/menu.c:1123:44: error: 'struct dirent' has no member named 'd_type'
 1123 |                         if (namelist[sel+1]->d_type == DT_REG)
      |                                            ^~
platform/common/../libpicofe/menu.c:1134:49: error: 'struct dirent' has no member named 'd_type'
 1134 |                         else if (namelist[sel+1]->d_type == DT_DIR)
      |                                                 ^~
gmake: *** [<builtin>: platform/common/menu_pico.o] Error 1
gmake: *** Waiting for unfinished jobs....
platform/common/emu.c: In function 'emu_loop':
platform/common/emu.c:1440:60: warning: '%02i' directive output may be truncated writing between 2 and 11 bytes into a region of size between 0 and 5 [-Wformat-truncation=]
 1440 |                                 snprintf(fpsbuff, 8, "%02i/%02i  ", frames_shown, frames_done);
      |                                                            ^~~~
platform/common/emu.c:1440:54: note: directive argument in the range [-2147483643, 2147483647]
 1440 |                                 snprintf(fpsbuff, 8, "%02i/%02i  ", frames_shown, frames_done);
      |                                                      ^~~~~~~~~~~~~
platform/common/emu.c:1440:33: note: 'snprintf' output between 8 and 26 bytes into a destination of size 8
 1440 |                                 snprintf(fpsbuff, 8, "%02i/%02i  ", frames_shown, frames_done);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-trunk-x86_64/emulators/picodrive
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-trunk-x86_64/emulators/picodrive