+ 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/hs-posix-paths-0.3.0.0nb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/hs-posix-paths-0.3.0.0nb1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for hs-posix-paths-0.3.0.0nb1
Preprocessing library for posix-paths-0.3.0.0..
compiling dist/build/System/Posix/Directory/Foreign_hsc_make.c failed (exit code 1)
rsp file was: "dist/build/System/Posix/Directory/hsc2hscall689264-0.rsp"
command was: /home/pbulk/build/sysutils/hs-posix-paths/work/.cwrapper/bin/gcc -c dist/build/System/Posix/Directory/Foreign_hsc_make.c -o dist/build/System/Posix/Directory/Foreign_hsc_make.o -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -m64 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -m64 -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -Wl,-R/opt/pkg/lib -liconv -L/opt/pkg/lib -m64 -D__GLASGOW_HASKELL__=906 -Dsolaris2_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dsolaris2_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/opt/pkg/lib/ghc-9.6.3/lib/../lib/x86_64-solaris-ghc-9.6.3/process-1.6.17.0/include -I/opt/pkg/lib/ghc-9.6.3/lib/../lib/x86_64-solaris-ghc-9.6.3/directory-1.3.8.1/include -I/opt/pkg/lib/ghc-9.6.3/lib/../lib/x86_64-solaris-ghc-9.6.3/unix-2.8.1.0/include -I/opt/pkg/lib/ghc-9.6.3/lib/../lib/x86_64-solaris-ghc-9.6.3/time-1.12.2/include -I/opt/pkg/lib/ghc-9.6.3/lib/../lib/x86_64-solaris-ghc-9.6.3/bytestring-0.11.5.2/include -I/opt/pkg/include -I/opt/pkg/lib/ghc-9.6.3/lib/../lib/x86_64-solaris-ghc-9.6.3/base-4.18.1.0/include -I/opt/pkg/include -I/opt/pkg/lib/ghc-9.6.3/lib/../lib/x86_64-solaris-ghc-9.6.3/ghc-bignum-1.3/include -I/opt/pkg/include -I/opt/pkg/lib/ghc-9.6.3/lib/../lib/x86_64-solaris-ghc-9.6.3/rts-1.0.2/include -I/opt/pkg/include/
error: In file included from dist/build/System/Posix/Directory/Foreign_hsc_make.c:1:
Foreign.hsc: In function 'main':
Foreign.hsc:45:61: error: 'DT_BLK' undeclared (first use in this function); did you mean 'STD_BLK'?
/opt/pkg/lib/ghc-9.6.3/lib/template-hsc.h:112:10: note: in definition of macro 'hsc_enum'
  112 |     if ((x) < 0)                                        \
      |          ^
Foreign.hsc:45:61: note: each undeclared identifier is reported only once for each function it appears in
/opt/pkg/lib/ghc-9.6.3/lib/template-hsc.h:112:10: note: in definition of macro 'hsc_enum'
  112 |     if ((x) < 0)                                        \
      |          ^
Foreign.hsc:46:61: error: 'DT_CHR' undeclared (first use in this function)
/opt/pkg/lib/ghc-9.6.3/lib/template-hsc.h:112:10: note: in definition of macro 'hsc_enum'
  112 |     if ((x) < 0)                                        \
      |          ^
Foreign.hsc:47:61: error: 'DT_DIR' undeclared (first use in this function)
/opt/pkg/lib/ghc-9.6.3/lib/template-hsc.h:112:10: note: in definition of macro 'hsc_enum'
  112 |     if ((x) < 0)                                        \
      |          ^
Foreign.hsc:48:62: error: 'DT_FIFO' undeclared (first use in this function)
/opt/pkg/lib/ghc-9.6.3/lib/template-hsc.h:112:10: note: in definition of macro 'hsc_enum'
  112 |     if ((x) < 0)                                        \
      |          ^
Foreign.hsc:49:61: error: 'DT_LNK' undeclared (first use in this function)
/opt/pkg/lib/ghc-9.6.3/lib/template-hsc.h:112:10: note: in definition of macro 'hsc_enum'
  112 |     if ((x) < 0)                                        \
      |          ^
Foreign.hsc:50:61: error: 'DT_REG' undeclared (first use in this function)
/opt/pkg/lib/ghc-9.6.3/lib/template-hsc.h:112:10: note: in definition of macro 'hsc_enum'
  112 |     if ((x) < 0)                                        \
      |          ^
Foreign.hsc:51:62: error: 'DT_SOCK' undeclared (first use in this function)
/opt/pkg/lib/ghc-9.6.3/lib/template-hsc.h:112:10: note: in definition of macro 'hsc_enum'
  112 |     if ((x) < 0)                                        \
      |          ^
Foreign.hsc:52:65: error: 'DT_UNKNOWN' undeclared (first use in this function)
/opt/pkg/lib/ghc-9.6.3/lib/template-hsc.h:112:10: note: in definition of macro 'hsc_enum'
  112 |     if ((x) < 0)                                        \
      |          ^
Foreign.hsc:48:58: error: 'O_ASYNC' undeclared (first use in this function); did you mean 'O_RSYNC'?
/opt/pkg/lib/ghc-9.6.3/lib/template-hsc.h:112:10: note: in definition of macro 'hsc_enum'
  112 |     if ((x) < 0)                                        \
      |          ^

*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/hs-posix-paths
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/hs-posix-paths