=> Bootstrap dependency digest>=20211023: found digest-20211023
=> Checksum BLAKE2s OK for bitcoin-22.0.tar.gz
=> Checksum SHA512 OK for bitcoin-22.0.tar.gz
===> Installing dependencies for bitcoin-22.0nb1
==========================================================================
The supported build options for bitcoin are:

	qt5 upnp

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.bitcoin (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
bitcoin-22.0nb1.  Their current value is shown below:

        * SSLBASE = /usr
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private

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
`/usr/bin/make clean' after the changes.
==========================================================================
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.6nb3
=> Tool dependency automake>=1.9: found automake-1.16.5
=> Tool dependency autoconf>=2.58: found autoconf-2.71nb1
=> Tool dependency gmake>=3.81: found gmake-4.3nb3
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.8.0
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency boost-headers-1.77.*: found boost-headers-1.77.0nb1
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency db4>=4.8.30: found db4-4.8.30nb1
=> Full dependency boost-libs-1.77.*: found boost-libs-1.77.0nb1
=> Full dependency libevent>=2.1.11nb1: found libevent-2.1.12
=> Full dependency zeromq>=4.0.5: found zeromq-4.3.4
=> Full dependency desktop-file-utils>=0.10nb1: found desktop-file-utils-0.26nb1
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Overriding tools for bitcoin-22.0nb1
===> Extracting for bitcoin-22.0nb1
===> Patching for bitcoin-22.0nb1
=> Applying pkgsrc patches for bitcoin-22.0nb1
=> Verifying /tree/pkgsrc/finance/bitcoin/patches/patch-configure.ac
=> Applying pkgsrc patch /tree/pkgsrc/finance/bitcoin/patches/patch-configure.ac
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-configure.ac,v 1.1 2021/12/26 05:27:37 mef Exp $
|
|=> Checking for portability problems in extracted files
|ERROR: [check-portability.awk] => Found test ... == ...:
|ERROR: [check-portability.awk] configure:38625: if test x$enable_fuzz == xno; then
|
|--- configure.ac.orig	2021-09-09 03:16:07.000000000 +0900
|+++ configure.ac	2021-12-26 12:24:07.689196819 +0900
--------------------------
Patching file configure.ac using Plan A...
Hunk #1 succeeded at 1922.
done
=> Verifying /tree/pkgsrc/finance/bitcoin/patches/patch-src_netbase.cpp
=> Applying pkgsrc patch /tree/pkgsrc/finance/bitcoin/patches/patch-src_netbase.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_netbase.cpp,v 1.5 2021/11/22 21:32:05 khorben Exp $
|
|It is unclear why this patch exists.  NetBSD 6 and 7 have AI_ADDRCONFIG,
|although NetBSD 5 does not.  Arguably upstream should have an autoconf
|test instead.  This is not known to be reported upstream.
|
|--- src/netbase.cpp.orig	2021-09-08 18:16:07.000000000 +0000
|+++ src/netbase.cpp
--------------------------
Patching file src/netbase.cpp using Plan A...
Hunk #1 succeeded at 56.
done
===> Creating toolchain wrappers for bitcoin-22.0nb1
===> Configuring for bitcoin-22.0nb1
cd /scratch/work/finance/bitcoin/work/bitcoin-22.0 && autoreconf -fiv
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I build-aux/m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: adding subdirectory src/univalue to autoreconf
autoreconf: Entering directory 'src/univalue'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I build-aux/m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'.
libtoolize: copying file 'build-aux/m4/libtool.m4'
libtoolize: copying file 'build-aux/m4/ltoptions.m4'
libtoolize: copying file 'build-aux/m4/ltsugar.m4'
libtoolize: copying file 'build-aux/m4/ltversion.m4'
libtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I build-aux/m4
autoreconf: running: /usr/pkg/bin/autoconf --force
autoreconf: running: /usr/pkg/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:45: installing 'build-aux/compile'
configure.ac:45: installing 'build-aux/config.guess'
configure.ac:45: installing 'build-aux/config.sub'
configure.ac:28: installing 'build-aux/install-sh'
configure.ac:28: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
autoreconf: Leaving directory 'src/univalue'
autoreconf: configure.ac: adding subdirectory src/secp256k1 to autoreconf
autoreconf: Entering directory 'src/secp256k1'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I build-aux/m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'.
libtoolize: copying file 'build-aux/m4/libtool.m4'
libtoolize: copying file 'build-aux/m4/ltoptions.m4'
libtoolize: copying file 'build-aux/m4/ltsugar.m4'
libtoolize: copying file 'build-aux/m4/ltversion.m4'
libtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I build-aux/m4
autoreconf: running: /usr/pkg/bin/autoconf --force
configure.ac:36: warning: The macro `AC_PROG_CC_C89' is obsolete.
configure.ac:36: You should run autoupdate.
./lib/autoconf/c.m4:1652: AC_PROG_CC_C89 is expanded from...
configure.ac:36: the top level
autoreconf: running: /usr/pkg/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:15: installing 'build-aux/compile'
configure.ac:5: installing 'build-aux/config.guess'
configure.ac:5: installing 'build-aux/config.sub'
configure.ac:9: installing 'build-aux/install-sh'
configure.ac:9: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
autoreconf: Leaving directory 'src/secp256k1'
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'.
libtoolize: copying file 'build-aux/m4/libtool.m4'
libtoolize: copying file 'build-aux/m4/ltoptions.m4'
libtoolize: copying file 'build-aux/m4/ltsugar.m4'
libtoolize: copying file 'build-aux/m4/ltversion.m4'
libtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I build-aux/m4
autoreconf: running: /usr/pkg/bin/autoconf --force
configure.ac:812: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
build-aux/m4/ax_pthread.m4:89: AX_PTHREAD is expanded from...
configure.ac:812: the top level
autoreconf: running: /usr/pkg/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:94: installing 'build-aux/compile'
configure.ac:38: installing 'build-aux/config.guess'
configure.ac:38: installing 'build-aux/config.sub'
configure.ac:48: installing 'build-aux/install-sh'
configure.ac:48: installing 'build-aux/missing'
src/Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
autoreconf: Leaving directory '.'
=> 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
=> Adding run-time search paths to pkg-config files.
=> Checking for portability problems in extracted files
checking pkg-config is at least version 0.9.0... yes
checking build system type... i486--netbsdelf
checking host system type... i486--netbsdelf
checking for a BSD-compatible install... /usr/bin/install -c -o pbulk -g users
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C++... yes
checking whether c++ accepts -g... yes
checking for c++ option to enable C++11 features... none needed
checking whether make supports the include directive... yes (GNU style)
checking dependency style of c++... gcc3
checking whether c++ supports C++17 features with -std=c++17... yes
checking whether std::atomic can be used without link library... no
checking whether std::atomic needs -latomic... no
configure: error: in `/scratch/work/finance/bitcoin/work/bitcoin-22.0':
configure: error: cannot figure out how to use std::atomic
See `config.log' for more details
*** Error code 1

Stop.
make[1]: stopped in /tree/pkgsrc/finance/bitcoin
*** Error code 1

Stop.
make: stopped in /tree/pkgsrc/finance/bitcoin