=> Bootstrap dependency digest>=20010302: found digest-20160304
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for nhc98src-1.22.tar.gz
=> Checksum RMD160 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 = curses
        * READLINE_DEFAULT = editline

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

        * CURSES_TYPE = curses
        * READLINE_TYPE = editline
        * TERMCAP_TYPE = termcap

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency gmake>=3.81: found gmake-4.1nb3
=> Tool dependency checkperms>=1.1: found checkperms-1.11nb1
=> Build dependency cwrappers>=20150314: found cwrappers-20171108
===> 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/pkgsrc/lang/nhc98/patches/patch-Makefile.inc
=> Applying pkgsrc patch /data/pkgsrc/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/pkgsrc/lang/nhc98/patches/patch-aa
=> Applying pkgsrc patch /data/pkgsrc/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/pkgsrc/lang/nhc98/patches/patch-ab
=> Applying pkgsrc patch /data/pkgsrc/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/pkgsrc/lang/nhc98/patches/patch-script_confhc
=> Applying pkgsrc patch /data/pkgsrc/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:
  Found C compiler:    /data/scratch/lang/nhc98/work/.cwrapper/bin/gcc
  C compiler version:  clang version 5.0.1 (branches/release_50 r320643)
  Looking for hbc...   (not found)
  Note: LMLDIR/HBCDIR variables must be set to enable detection of hbc.
  Looking for ghc...   (not found)
  Looking for nhc98... (not found)
You said you want to use gcc to build hmake.
  Now I'm creating targets/x86_64-NetBSD/hmake3.config for your installation.
Done.
--------
                   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:   /usr/pkg
nhc98 binaries/libs:  /usr/pkg/lib/nhc98/x86_64-NetBSD
hmake binaries:       /usr/pkg/lib/hmake/x86_64-NetBSD
Interfaces/includes:  /usr/pkg/include/nhc98
Scripts:              /usr/pkg/bin
Man pages:            /usr/pkg/man/man1
Html documents:       /usr/pkg/share/doc/nhc98

Now we check/create your build directories:
Config directory:      targets/x86_64-NetBSD
Build directory root:
    /data/scratch/lang/nhc98/work/nhc98-1.22/targets (exists)
Object files build in:
    /data/scratch/lang/nhc98/work/nhc98-1.22/targets/x86_64-NetBSD (exists)
Executables and libs:
    /data/scratch/lang/nhc98/work/nhc98-1.22/lib/x86_64-NetBSD (created)

Toolchain:
host compiler:                              gcc
host strip:                                 strip
cabal-parse:                                /data/scratch/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: type specifier missing, defaults to 'int' [-Wimplicit-int]
main() {
^
endian.c:8:5: warning: implicit declaration of function 'puts' is invalid in C99 [-Wimplicit-function-declaration]
    puts("-DLOW_BYTE_FIRST");
    ^
2 warnings generated.
-DLOW_BYTE_FIRST (detected) 
Executables need .exe suffix?               no  (detected)
Found /usr/bin/true not /bin/true
Testing for the curses library:             -lcurses (detected) 
Testing for the readline library:           -lreadline (detected)
Reading /usr/include/errno.h: script/config-errno.c:594:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main () {
^
1 warning generated.
script/errnogen.c:4:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main() {
^
1 warning generated.
              updated DErrNo.hs
Testing for FunnelWeb:                      no  (detected)
Default heap for compiled programs is: 100000 words (cached) 

Adding Makefile config script to
    /data/scratch/lang/nhc98/work/nhc98-1.22/lib/x86_64-NetBSD...
cat: targets/x86_64-NetBSD/ghcsym: No such file or directory
Adding build scripts to
    /data/scratch/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/x86_64-NetBSD/hmake3.config...
fullname: not found
Saving current configuration in targets/x86_64-NetBSD/config.cache
Done.