+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/nhc98-1.22nb2/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/nhc98-1.22nb2/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
=> Checksum BLAKE2s OK for nhc98src-1.22.tar.gz
=> Checksum SHA512 OK for nhc98src-1.22.tar.gz
===> Installing dependencies for nhc98-1.22nb2
==========================================================================
The following variables will affect the build process of this package,
nhc98-1.22nb2.  Their current value is shown below:

        * CURSES_DEFAULT = ncurses
        * READLINE_DEFAULT = readline

Based on these variables, the following variables have been set:

        * CURSES_TYPE = ncurses
        * READLINE_TYPE = readline
        * TERMCAP_TYPE = curses

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/opt/pkg/bin/bmake clean' after the changes.
==========================================================================
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency gmake>=3.81: found gmake-4.3nb3
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency ncurses>=6.0: found ncurses-6.3
=> Full dependency readline>=6.0: found readline-8.1.2
===> Overriding tools for nhc98-1.22nb2
===> Extracting for nhc98-1.22nb2
===> Patching for nhc98-1.22nb2
=> Applying pkgsrc patches for nhc98-1.22nb2
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nhc98/patches/patch-Makefile.inc
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nhc98/patches/patch-Makefile.inc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-Makefile.inc,v 1.1 2013/10/25 04:09:14 dholland Exp $
|
|Allow setting -m32 or not from the pkgsrc makefile.
|
|--- Makefile.inc~	2010-07-09 12:40:18.000000000 +0000
|+++ Makefile.inc
--------------------------
Patching file Makefile.inc using Plan A...
Hunk #1 succeeded at 1.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nhc98/patches/patch-aa
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nhc98/patches/patch-aa
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-aa,v 1.9 2013/10/25 06:25:18 dholland Exp $
|
|- always set the compiler to "gcc" for pkgsrc
|- honor pkgsrc LDFLAGS
|
|--- configure.orig	2010-07-09 12:41:23.000000000 +0000
|+++ configure
--------------------------
Patching file configure using Plan A...
Hunk #1 succeeded at 65.
Hunk #2 succeeded at 482.
Hunk #3 succeeded at 508.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nhc98/patches/patch-ab
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nhc98/patches/patch-ab
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ab,v 1.4 2015/12/29 23:34:52 dholland Exp $
|
|Fix include order.
|
|--- src/prelude/BinArray/cLowUnboxedArray.c.orig	2005-06-04 18:13:50.000000000 +0000
|+++ src/prelude/BinArray/cLowUnboxedArray.c	2005-06-04 18:14:03.000000000 +0000
--------------------------
Patching file src/prelude/BinArray/cLowUnboxedArray.c using Plan A...
Hunk #1 succeeded at 1.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nhc98/patches/patch-script_confhc
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nhc98/patches/patch-script_confhc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-script_confhc,v 1.1 2015/10/05 06:33:46 dholland Exp $
|
|Fix gcc version detection so it doesn't object to what NetBSD gcc
|prints, which is: "gcc (nb1 20140527) 4.8.3".
|
|--- script/confhc~	2008-10-28 12:00:56.000000000 +0000
|+++ script/confhc
--------------------------
Patching file script/confhc using Plan A...
Hunk #1 succeeded at 53.
done
===> Creating toolchain wrappers for nhc98-1.22nb2
===> Configuring for nhc98-1.22nb2
=> Checking for portability problems in extracted files
Configuring for nhc98... [ v1.22 (2010-07-09) ]
--------
Looking for already-installed Haskell compilers:
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
script/confhc[24]: /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/echo: not found [No such file or directory]
--------
                   Configuration report for nhc98.
    (You can re-run configure to change settings before proceeding.)
You wish (eventually) to install the following components in these locations:
    (Installation directories are not created/checked at this stage.)
Final install root:   /opt/pkg
nhc98 binaries/libs:  /opt/pkg/lib/nhc98/ix86-solaris2
hmake binaries:       /opt/pkg/lib/hmake/ix86-solaris2
Interfaces/includes:  /opt/pkg/include/nhc98
Scripts:              /opt/pkg/bin
Man pages:            /opt/pkg/man/man1
Html documents:       /opt/pkg/share/doc/nhc98

Now we check/create your build directories:
Config directory:      targets/ix86-solaris2
Build directory root:
    /home/pbulk/build/lang/nhc98/work/nhc98-1.22/targets (exists)
Object files build in:
    /home/pbulk/build/lang/nhc98/work/nhc98-1.22/targets/ix86-solaris2 (exists)
Executables and libs:
    /home/pbulk/build/lang/nhc98/work/nhc98-1.22/lib/ix86-solaris2 (created)

Toolchain:
host compiler:                              gcc
host strip:                                 strip
cabal-parse:                                /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script/cabal-parse

You are going to build nhc98 with:          gcc
backend compiler option:                    -m32
backend linker option:                      -m32
nhc98comp uses RTS delimiters?              yes
This machine's endian-ness is:              endian.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | main() {
      | ^~~~
endian.c: In function 'main':
endian.c:8:5: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    8 |     puts("-DLOW_BYTE_FIRST");
      |     ^~~~
-DLOW_BYTE_FIRST (detected) 
Executables need .exe suffix?               no  (detected)
Testing for the curses library:             -ltermcap -lcurses (detected) 
Testing for the readline library:           no  (detected)
Reading /usr/include/errno.h: script/config-errno.c:594:1: warning: return type defaults to 'int' [-Wimplicit-int]
  594 | main () {
      | ^~~~
script/errnogen.c:4:1: warning: return type defaults to 'int' [-Wimplicit-int]
    4 | main() {
      | ^~~~
              updated DErrNo.hs
Testing for FunnelWeb:                      no  (detected)
Default heap for compiled programs is: 100000 words (cached) 

Adding Makefile config script to
    /home/pbulk/build/lang/nhc98/work/nhc98-1.22/lib/ix86-solaris2...
cat: cannot open targets/ix86-solaris2/ghcsym: No such file or directory
Adding build scripts to
    /home/pbulk/build/lang/nhc98/work/nhc98-1.22/script...    
    nhc98 hmake hmake-config hi greencard nhc98-pkg hsc2hs cpphs 
Creating src/runtime/nhc98heap.c ...
Configuring src/compiler98/Building.hs ...
Updating targets/ix86-solaris2/hmake3.config...
Saving current configuration in targets/ix86-solaris2/config.cache
Done.