=> 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 stella-4.7.3.tar.gz
=> Checksum RMD160 OK for stella-4.7.3.tar.gz
=> Checksum SHA512 OK for stella-4.7.3.tar.gz
===> Installing dependencies for stella-4.7.3
=> Tool dependency gmake>=3.81: found gmake-4.1nb3
=> Tool dependency checkperms>=1.1: found checkperms-1.11nb1
=> Build dependency dri2proto>=2.1: found dri2proto-2.8
=> Build dependency dri3proto>=1.0: found dri3proto-1.0
=> Build dependency xproto>=7.0.9: found xproto-7.0.31
=> Build dependency presentproto>=1.0: found presentproto-1.1
=> Build dependency glproto>=1.4.11: found glproto-1.4.17
=> Build dependency damageproto>=1.1.0: found damageproto-1.2.1
=> Build dependency fixesproto>=4.0.0: found fixesproto-5.0
=> Build dependency xextproto>=7.0.99.1: found xextproto-7.3.0
=> Build dependency inputproto>=1.4: found inputproto-2.3.2
=> Build dependency kbproto>=1.0.2: found kbproto-1.0.7
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.12
=> Build dependency xf86vidmodeproto>=2.3: found xf86vidmodeproto-2.3.1
=> Build dependency xf86driproto>=2.0.3: found xf86driproto-2.1.1nb1
=> Build dependency cwrappers>=20150314: found cwrappers-20170611
=> Full dependency desktop-file-utils>=0.10nb1: found desktop-file-utils-0.23
=> Full dependency SDL2>=2.0.3nb8: found SDL2-2.0.5nb5
=> Full dependency hicolor-icon-theme>=0.9nb1: found hicolor-icon-theme-0.13nb1
=> Full dependency png>=1.6.0nb1: found png-1.6.32
===> Overriding tools for stella-4.7.3
===> Extracting for stella-4.7.3
tar: Global extended headers posix ustar archive. Extracting as plain files. Following files might be in the wrong directory or have wrong attributes.
===> Patching for stella-4.7.3
=> Applying pkgsrc patches for stella-4.7.3
=> Verifying /data/pkgsrc/emulators/stella/patches/patch-configure
=> Applying pkgsrc patch /data/pkgsrc/emulators/stella/patches/patch-configure
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-configure,v 1.2 2017/09/09 22:52:55 dholland Exp $
|
|Recognize more clang versions.
|Recognize solaris, dragonfly, bitrig, and darwin.
|
|--- configure.orig	2016-11-21 19:22:17.000000000 +0000
|+++ configure
--------------------------
Patching file configure using Plan A...
Hunk #1 succeeded at 392.
Hunk #2 succeeded at 515.
done
=> Verifying /data/pkgsrc/emulators/stella/patches/patch-src_unix_FSNodePOSIX.cxx
=> Applying pkgsrc patch /data/pkgsrc/emulators/stella/patches/patch-src_unix_FSNodePOSIX.cxx
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_unix_FSNodePOSIX.cxx,v 1.2 2015/12/21 06:46:04 dbj Exp $
|
|Try to make the dirent->d_type handling code autodetect. (As best as I
|can tell it is not, in the current version 3.9.2 at least, handled
|from configure.)
|
|--- src/unix/FSNodePOSIX.cxx.orig	2015-01-01 03:49:32.000000000 +0000
|+++ src/unix/FSNodePOSIX.cxx
--------------------------
Patching file src/unix/FSNodePOSIX.cxx using Plan A...
Hunk #1 succeeded at 122 (offset 2 lines).
done
===> Creating toolchain wrappers for stella-4.7.3
src=/usr/pkg/lib/pkgconfig/fixesproto.pc  dst=/data/scratch/emulators/stella/work/.buildlink/lib/pkgconfig/fixesext.pc;  /bin/mkdir -p /data/scratch/emulators/stella/work/.buildlink/lib/pkgconfig;  if test -f ${src}; then  /bin/ln -sf ${src} ${dst};  fi
===> Configuring for stella-4.7.3
=> Checking for portability problems in extracted files
Running Stella configure...
Looking for C++ compiler... clang++
Checking for compiler version... 5.0.0, bad

The version of your compiler is not supported at this time
Please ensure you are using GCC 4.7 / Clang 3.4 or above
*** Error code 1

Stop.
make[1]: stopped in /data/pkgsrc/emulators/stella
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/emulators/stella