=> Bootstrap dependency digest>=20010302: found digest-20160304
===> 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 grub-0.97.tar.gz
=> Checksum RMD160 OK for grub-0.97.tar.gz
=> Checksum SHA512 OK for grub-0.97.tar.gz
===> Installing dependencies for grub-0.97nb10
==========================================================================
The following variables will affect the build process of this package,
grub-0.97nb10.  Their current value is shown below:

        * CURSES_DEFAULT = curses
        * GRUB_NETWORK_CARDS (not defined)
        * GRUB_PRESET_COMMAND (not defined)
        * GRUB_SCAN_ARGS (not defined)

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

        * CURSES_TYPE = curses

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 grub-0.97nb10
===> Extracting for grub-0.97nb10
/bin/mv /data/scratch/sysutils/grub/work/grub-0.97/stage2/term.h /data/scratch/sysutils/grub/work/grub-0.97/stage2/grubterm.h
===> Patching for grub-0.97nb10
=> Applying pkgsrc patches for grub-0.97nb10
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-aa
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-aa
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-aa,v 1.3 2006/10/17 21:55:33 bad Exp $
|
|--- stage2/pc_slice.h.orig	2003-07-09 13:45:53.000000000 +0200
|+++ stage2/pc_slice.h	2006-09-18 00:36:35.000000000 +0200
--------------------------
Patching file stage2/pc_slice.h using Plan A...
Hunk #1 succeeded at 246.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-ab
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-ab
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ab,v 1.3 2006/10/17 21:55:33 bad Exp $
|
|--- stage2/disk_io.c.orig	2004-05-23 18:35:24.000000000 +0200
|+++ stage2/disk_io.c	2006-09-18 01:12:19.000000000 +0200
--------------------------
Patching file stage2/disk_io.c using Plan A...
Hunk #1 succeeded at 632.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-ac
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-ac
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ac,v 1.4 2006/02/03 09:59:32 jmmv Exp $
|
|--- stage2/boot.c.orig	2004-03-30 13:44:08.000000000 +0200
|+++ stage2/boot.c
--------------------------
Patching file stage2/boot.c using Plan A...
Hunk #1 succeeded at 22.
Hunk #2 succeeded at 105.
Hunk #3 succeeded at 625.
Hunk #4 succeeded at 897.
Hunk #5 succeeded at 1004.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-ad
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-ad
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ad,v 1.4 2005/10/23 19:53:24 rillig Exp $
|
|--- stage2/netbsd_reboot.h	1970-01-01 01:00:00.000000000 +0100
|+++ stage2/netbsd_reboot.h	2005-07-25 21:49:37.000000000 +0200
--------------------------
(Creating file stage2/netbsd_reboot.h...)
Patching file stage2/netbsd_reboot.h using Plan A...
Empty context always matches.
Hunk #1 succeeded at 1.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-ae
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-ae
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ae,v 1.4 2010/02/21 16:44:52 wiz Exp $
|
|--- stage2/shared.h	2004-06-19 18:40:09.000000000 +0200
|+++ stage2/shared.h	2005-07-25 21:33:19.000000000 +0200
--------------------------
Patching file stage2/shared.h using Plan A...
Hunk #1 succeeded at 911.
Hunk #2 succeeded at 975.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-af
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-af
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-af,v 1.3 2006/10/17 21:55:33 bad Exp $
|
|--- stage2/fsys_ffs.c.orig	2003-07-09 13:45:52.000000000 +0200
|+++ stage2/fsys_ffs.c	2006-09-20 00:38:40.000000000 +0200
--------------------------
Patching file stage2/fsys_ffs.c using Plan A...
Hunk #1 succeeded at 83.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-ag
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-ag
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ag,v 1.3 2006/10/17 21:55:33 bad Exp $
|
|--- stage2/fsys_ufs2.c.orig	2004-06-19 14:17:52.000000000 +0200
|+++ stage2/fsys_ufs2.c
--------------------------
Patching file stage2/fsys_ufs2.c using Plan A...
Hunk #1 succeeded at 88.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-ah
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-ah
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ah,v 1.4 2006/12/17 19:21:43 jmmv Exp $
|
|--- docs/grub.info.orig	2005-05-08 05:00:05.000000000 +0200
|+++ docs/grub.info
--------------------------
Patching file docs/grub.info using Plan A...
Hunk #1 succeeded at 881.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-ai
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-ai
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ai,v 1.2 2005/11/12 06:35:24 jlam Exp $
|
|--- util/grub-install.in.orig	2004-07-24 14:57:31.000000000 -0400
|+++ util/grub-install.in
--------------------------
Patching file util/grub-install.in using Plan A...
Hunk #1 succeeded at 119.
Hunk #2 succeeded at 321.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-aj
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-aj
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-aj,v 1.1 2003/07/13 17:35:06 wiz Exp $
|
|--- stage2/bios.c.orig	Sun Dec 30 08:33:23 2001
|+++ stage2/bios.c
--------------------------
Patching file stage2/bios.c using Plan A...
Hunk #1 succeeded at 20.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-ak
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-ak
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ak,v 1.3 2007/06/25 13:05:56 tron Exp $
|
|--- /build/pkg_comp/default/pkg_comp/obj/pkgsrc/sysutils/grub/default/grub-0.97/netboot/etherboot.h	2003-07-09 13:45:37.000000000 +0200
|+++ netboot/etherboot.h	2007-06-24 15:28:38.000000000 +0200
--------------------------
Patching file netboot/etherboot.h using Plan A...
Hunk #1 succeeded at 531.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-al
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-al
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-al,v 1.3 2007/06/25 13:05:57 tron Exp $
|
|--- /build/pkg_comp/default/pkg_comp/obj/pkgsrc/sysutils/grub/default/grub-0.97/netboot/sis900.c	2003-07-09 13:45:38.000000000 +0200
|+++ netboot/sis900.c	2007-06-24 18:15:38.000000000 +0200
--------------------------
Patching file netboot/sis900.c using Plan A...
Hunk #1 succeeded at 901.
Hunk #2 succeeded at 940.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-am
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-am
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-am,v 1.3 2007/06/25 13:05:57 tron Exp $
|
|--- /build/pkg_comp/default/pkg_comp/obj/pkgsrc/sysutils/grub/default/grub-0.97/netboot/natsemi.c	2003-07-09 13:45:38.000000000 +0200
|+++ netboot/natsemi.c	2007-06-24 18:25:21.000000000 +0200
--------------------------
Patching file netboot/natsemi.c using Plan A...
Hunk #1 succeeded at 608.
Hunk #2 succeeded at 647.
done
=> Verifying /data/pkgsrc/sysutils/grub/patches/patch-an
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub/patches/patch-an
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-an,v 1.3 2010/02/21 16:44:52 wiz Exp $
|
|--- stage2/char_io.c
|+++ stage2/char_io.c
--------------------------
Patching file stage2/char_io.c using Plan A...
Hunk #1 succeeded at 1175.
Hunk #2 succeeded at 1192.
done
=> Changing references to <term.h> to <grubterm.h>
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/bios.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/boot.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/cmdline.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/common.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/disk_io.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/fsys_ext2fs.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/fsys_fat.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/fsys_ffs.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/fsys_iso9660.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/fsys_jfs.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/fsys_minix.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/fsys_reiserfs.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/fsys_ufs2.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/fsys_vstafs.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/fsys_xfs.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/gunzip.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/md5.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/smp-imps.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/stage1_5.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/terminfo.c.
INFO: [subst.mk:grubterm] Nothing changed in ./stage2/tparm.c.
===> Creating toolchain wrappers for grub-0.97nb10
===> Configuring for grub-0.97nb10
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Checking for portability problems in extracted files
checking for a BSD-compatible install... /usr/bin/install -c -o pbulkXXX -g users
checking whether build environment is sane... yes
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64--netbsd-gcc... clang
checking for x86_64--netbsd-gcc... (cached) clang
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of clang... gcc3
checking dependency style of clang... (cached) gcc3
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking whether -Wundef works... yes
checking whether -falign-loops works... yes
checking for x86_64--netbsd-objcopy... no
checking for objcopy... objcopy
checking if C symbols get an underscore after compilation... no
checking whether objcopy works for absolute addresses... yes
checking whether addr32 must be in the same line as the instruction... no
checking for .code16 addr32 assembler support... no
configure: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils
*** Error code 1

Stop.
make[1]: stopped in /data/pkgsrc/sysutils/grub
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/sysutils/grub