=> 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'.
===> Building for OVMF-0.0.2017624
cd /data/scratch/sysutils/ovmf/work/edk2-vUDK2017/OvmfPkg &&  /usr/bin/env USETOOLS=no PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= PYTHON=/usr/pkg/bin/python2.7 CC=clang CFLAGS=-O2\ -I/usr/include\ -I/usr/pkg/include CPPFLAGS=-I/usr/include\ -I/usr/pkg/include CXX=clang++ CXXFLAGS=-O2\ -I/usr/include\ -I/usr/pkg/include COMPILER_RPATH_FLAG=-Wl,-R F77=g77 FC=g77 FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/lib\ -Wl,-R/usr/lib\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R PATH=/data/scratch/sysutils/ovmf/work/.cwrapper/bin:/data/scratch/sysutils/ovmf/work/.buildlink/bin:/data/scratch/sysutils/ovmf/work/.tools/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/pkg/bin:/usr/pkg/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc HOME=/data/scratch/sysutils/ovmf/work/.home CWRAPPERS_CONFIG_DIR=/data/scratch/sysutils/ovmf/work/.cwrapper/config CPP=clang-cpp LOCALBASE=/usr/pkg X11BASE=/usr/pkg PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ pbulkXXX\ -g\ users\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ pbulkXXX\ -g\ users\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ pbulkXXX\ -g\ users\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ pbulkXXX\ -g\ users\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ pbulkXXX\ -g\ users\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ pbulkXXX\ -g\ users\ -m\ 775 INSTALL_INFO= MAKEINFO=/data/scratch/sysutils/ovmf/work/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG= PKG_CONFIG_LIBDIR=/data/scratch/sysutils/ovmf/work/.buildlink/lib/pkgconfig:/data/scratch/sysutils/ovmf/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/data/scratch/sysutils/ovmf/work/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/data/scratch/sysutils/ovmf/work/.cwrapper/config ./build.sh
Initializing workspace
/data/scratch/sysutils/ovmf/work/edk2-vUDK2017/BaseTools
WORKSPACE: /data/scratch/sysutils/ovmf/work/edk2-vUDK2017
EDK_TOOLS_PATH: /data/scratch/sysutils/ovmf/work/edk2-vUDK2017/BaseTools
CONF_PATH: /data/scratch/sysutils/ovmf/work/edk2-vUDK2017/Conf
Copying $EDK_TOOLS_PATH/Conf/build_rule.template
     to /data/scratch/sysutils/ovmf/work/edk2-vUDK2017/Conf/build_rule.txt
Copying $EDK_TOOLS_PATH/Conf/tools_def.template
     to /data/scratch/sysutils/ovmf/work/edk2-vUDK2017/Conf/tools_def.txt
Copying $EDK_TOOLS_PATH/Conf/target.template
     to /data/scratch/sysutils/ovmf/work/edk2-vUDK2017/Conf/target.txt
Building tools no /data/scratch/sysutils/ovmf/work/edk2-vUDK2017/BaseTools/Source/C/bin directory
gmake: Entering directory '/data/scratch/sysutils/ovmf/work/edk2-vUDK2017/BaseTools'
gmake -C Source/C
gmake[1]: Entering directory '/data/scratch/sysutils/ovmf/work/edk2-vUDK2017/BaseTools/Source/C'
Attempting to detect ARCH from 'uname -m': amd64
Detected ARCH of X64 using uname.
mkdir -p .
gmake -C Common
gmake[2]: Entering directory '/data/scratch/sysutils/ovmf/work/edk2-vUDK2017/BaseTools/Source/C/Common'
mkdir ../libs 
gcc  -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-unused-result -nostdlib -c -g  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -O2 BasePeCoff.c -o BasePeCoff.o
gcc  -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-unused-result -nostdlib -c -g  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -O2 BinderFuncs.c -o BinderFuncs.o
gcc  -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-unused-result -nostdlib -c -g  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/  -O2 CommonLib.c -o CommonLib.o
CommonLib.c:577:10: error: array subscript is of type 'char' [-Werror,-Wchar-subscripts]
    *s = tolower(*s);
         ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
1 error generated.
../Makefiles/footer.makefile:27: recipe for target 'CommonLib.o' failed
gmake[2]: *** [CommonLib.o] Error 1
gmake[2]: Leaving directory '/data/scratch/sysutils/ovmf/work/edk2-vUDK2017/BaseTools/Source/C/Common'
GNUmakefile:80: recipe for target 'Common' failed
gmake[1]: *** [Common] Error 2
gmake[1]: Leaving directory '/data/scratch/sysutils/ovmf/work/edk2-vUDK2017/BaseTools/Source/C'
GNUmakefile:25: recipe for target 'Source/C' failed
gmake: *** [Source/C] Error 2
gmake: Leaving directory '/data/scratch/sysutils/ovmf/work/edk2-vUDK2017/BaseTools'
*** Error code 2

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

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