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

        * JPEG_DEFAULT = jpeg
        * SSLBASE = /usr
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private

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

        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg

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 glib2-tools-[0-9]*: found glib2-tools-2.64.2
=> Tool dependency cmake>=2.8.1nb1: found cmake-3.17.1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.6.0
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency boost-headers-1.72.*: found boost-headers-1.72.0
=> Build dependency xorgproto>=2016.1: found xorgproto-2020.1
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.14
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency boost-libs-1.72.*: found boost-libs-1.72.0nb1
=> Full dependency boost-libs>=1.72.0: found boost-libs-1.72.0nb1
=> Full dependency hicolor-icon-theme>=0.9nb1: found hicolor-icon-theme-0.17
=> Full dependency libtorrent-rasterbar>=1.2.3nb3: found libtorrent-rasterbar-1.2.5
=> Full dependency desktop-file-utils>=0.10nb1: found desktop-file-utils-0.24nb1
=> Full dependency qt5-qttools>=5.14.2nb1: found qt5-qttools-5.14.2nb1
===> Overriding tools for qbittorrent-4.2.3nb1
===> Extracting for qbittorrent-4.2.3nb1
===> Patching for qbittorrent-4.2.3nb1
=> Applying pkgsrc patches for qbittorrent-4.2.3nb1
=> Verifying /data/pkgsrc/net/qbittorrent/patches/patch-dist_CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/net/qbittorrent/patches/patch-dist_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-dist_CMakeLists.txt,v 1.1 2020/03/30 17:17:23 adam Exp $
|
|Treat Darwin as any other UNIX.
|
|--- dist/CMakeLists.txt.orig	2020-03-30 17:02:36.000000000 +0000
|+++ dist/CMakeLists.txt
--------------------------
Patching file dist/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 1.
done
=> Verifying /data/pkgsrc/net/qbittorrent/patches/patch-src_app_CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/net/qbittorrent/patches/patch-src_app_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_app_CMakeLists.txt,v 1.1 2020/03/30 17:17:23 adam Exp $
|
|Disable app bundle on Darwin.
|
|--- src/app/CMakeLists.txt.orig	2020-03-30 16:49:50.000000000 +0000
|+++ src/app/CMakeLists.txt
--------------------------
Patching file src/app/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 27.
Hunk #2 succeeded at 101.
Hunk #3 succeeded at 134 (offset -19 lines).
Hunk #4 succeeded at 153 (offset -19 lines).
done
=> Verifying /data/pkgsrc/net/qbittorrent/patches/patch-src_base_utils_fs.cpp
=> Applying pkgsrc patch /data/pkgsrc/net/qbittorrent/patches/patch-src_base_utils_fs.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_base_utils_fs.cpp,v 1.1 2019/12/16 18:03:20 nia Exp $
|
|Support NetBSD.
|
|--- src/base/utils/fs.cpp.orig	2019-12-02 23:19:18.000000000 +0000
|+++ src/base/utils/fs.cpp
--------------------------
Patching file src/base/utils/fs.cpp using Plan A...
Hunk #1 succeeded at 39.
Hunk #2 succeeded at 49.
Hunk #3 succeeded at 336 (offset 11 lines).
done
===> Creating toolchain wrappers for qbittorrent-4.2.3nb1
===> Configuring for qbittorrent-4.2.3nb1
=> Generating pkg-config file for builtin expat package.
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
INFO: [subst.mk:cmake] Nothing changed in ./CMakeLists.txt.
=> Checking for portability problems in extracted files
CMake Warning (dev) at CMakeLists.txt:3 (message):
  If the build fails, please try the autotools/qmake method.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is Clang 10.0.10
-- The CXX compiler identification is Clang 10.0.10
-- Check for working C compiler: /data/scratch/net/qbittorrent/work/.cwrapper/bin/clang
-- Check for working C compiler: /data/scratch/net/qbittorrent/work/.cwrapper/bin/clang - broken
CMake Error at /usr/pkg/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/data/scratch/net/qbittorrent/work/.cwrapper/bin/clang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /data/scratch/net/qbittorrent/work/qBittorrent-release-4.2.3/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/data/scratch/net/qbittorrent/work/.tools/bin/make cmTC_afa84/fast && /data/scratch/net/qbittorrent/work/.tools/bin/make  -f CMakeFiles/cmTC_afa84.dir/build.make CMakeFiles/cmTC_afa84.dir/build
    Building C object CMakeFiles/cmTC_afa84.dir/testCCompiler.c.o
    /data/scratch/net/qbittorrent/work/.cwrapper/bin/clang   -O2 -pthread -I/usr/pkg/include -I/usr/include -I/usr/pkg/qt5/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libdrm -o CMakeFiles/cmTC_afa84.dir/testCCompiler.c.o   -c /data/scratch/net/qbittorrent/work/qBittorrent-release-4.2.3/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_afa84
    /usr/pkg/bin/cmake -E cmake_link_script CMakeFiles/cmTC_afa84.dir/link.txt --verbose=1
    /data/scratch/net/qbittorrent/work/.cwrapper/bin/clang -O2 -pthread -I/usr/pkg/include -I/usr/include -I/usr/pkg/qt5/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libdrm   -ljemalloc -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/qt5/lib -L/usr/pkg/qt5/plugins -Wl,-R/usr/pkg/qt5/lib -Wl,-R/usr/pkg/qt5/plugins -L/usr/pkg/lib/pulseaudio -Wl,-R/usr/pkg/lib/pulseaudio  CMakeFiles/cmTC_afa84.dir/testCCompiler.c.o  -o cmTC_afa84 
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_sdallocx'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_mallctl'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_rallocx'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_malloc_stats_print'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_mallctlnametomib'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_malloc_message_set'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_sallocx'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_xallocx'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_mallctlbymib'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_dallocx'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_malloc_message_get'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_malloc_conf_get'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_nallocx'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_mallocx'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_malloc_usable_size'
    /usr/bin/ld: /usr/lib/libjemalloc.so: undefined reference to `__je_malloc_conf_set'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    *** Error code 1
    
    Stop.
    make[1]: stopped in /data/scratch/net/qbittorrent/work/qBittorrent-release-4.2.3/CMakeFiles/CMakeTmp
    *** Error code 1
    
    Stop.
    make: stopped in /data/scratch/net/qbittorrent/work/qBittorrent-release-4.2.3/CMakeFiles/CMakeTmp
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:15 (project)


-- Configuring incomplete, errors occurred!
See also "/data/scratch/net/qbittorrent/work/qBittorrent-release-4.2.3/CMakeFiles/CMakeOutput.log".
See also "/data/scratch/net/qbittorrent/work/qBittorrent-release-4.2.3/CMakeFiles/CMakeError.log".
*** Error code 1

Stop.
make[1]: stopped in /data/pkgsrc/net/qbittorrent
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/net/qbittorrent