=> Bootstrap dependency digest>=20211023: found digest-20220214
===> 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'.
===> Building for mgba-qt-0.10.1nb4
[  0%] Built target mgba-version-info
[  0%] Building C object CMakeFiles/mgba.dir/src/core/bitmap-cache.c.o
[  0%] Building C object CMakeFiles/mgba.dir/src/core/cache-set.c.o
[  0%] Building C object CMakeFiles/mgba.dir/src/core/cheats.c.o
[  1%] Building C object CMakeFiles/mgba.dir/src/core/config.c.o
[  1%] Building C object CMakeFiles/mgba.dir/src/core/core.c.o
[  1%] Building C object CMakeFiles/mgba.dir/src/core/directories.c.o
[  2%] Building C object CMakeFiles/mgba.dir/src/core/input.c.o
[  2%] Building C object CMakeFiles/mgba.dir/src/core/interface.c.o
[  2%] Building C object CMakeFiles/mgba.dir/src/core/library.c.o
[  3%] Building C object CMakeFiles/mgba.dir/src/core/lockstep.c.o
[  3%] Building C object CMakeFiles/mgba.dir/src/core/log.c.o
[  3%] Building C object CMakeFiles/mgba.dir/src/core/map-cache.c.o
[  4%] Building C object CMakeFiles/mgba.dir/src/core/mem-search.c.o
[  4%] Building C object CMakeFiles/mgba.dir/src/core/rewind.c.o
[  4%] Building C object CMakeFiles/mgba.dir/src/core/serialize.c.o
[  5%] Building C object CMakeFiles/mgba.dir/src/core/sync.c.o
[  5%] Building C object CMakeFiles/mgba.dir/src/core/thread.c.o
[  5%] Building C object CMakeFiles/mgba.dir/src/core/tile-cache.c.o
[  5%] Building C object CMakeFiles/mgba.dir/src/core/timing.c.o
[  6%] Building C object CMakeFiles/mgba.dir/src/sm83/decoder.c.o
[  6%] Building C object CMakeFiles/mgba.dir/src/sm83/isa-sm83.c.o
[  6%] Building C object CMakeFiles/mgba.dir/src/sm83/sm83.c.o
[  7%] Building C object CMakeFiles/mgba.dir/src/gb/audio.c.o
[  7%] Building C object CMakeFiles/mgba.dir/src/gb/cheats.c.o
[  7%] Building C object CMakeFiles/mgba.dir/src/gb/core.c.o
[  8%] Building C object CMakeFiles/mgba.dir/src/gb/gb.c.o
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/gb/gb.c: In function 'GBResizeSram':
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/gb/gb.c:295:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (vf->size(vf) < gb->sramSize) {
                     ^
[  8%] Building C object CMakeFiles/mgba.dir/src/gb/input.c.o
[  8%] Building C object CMakeFiles/mgba.dir/src/gb/io.c.o
[  9%] Building C object CMakeFiles/mgba.dir/src/gb/mbc.c.o
[  9%] Building C object CMakeFiles/mgba.dir/src/gb/memory.c.o
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/gb/memory.c: In function 'GBLoad8':
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/gb/memory.c:294:63: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   } else if (cpu->tMultiplier * (cpu->pc - memory->cartBusPc) >= memory->cartBusDecay) {
                                                               ^~
[  9%] Building C object CMakeFiles/mgba.dir/src/gb/overrides.c.o
[ 10%] Building C object CMakeFiles/mgba.dir/src/gb/serialize.c.o
[ 10%] Building C object CMakeFiles/mgba.dir/src/gb/renderers/cache-set.c.o
[ 10%] Building C object CMakeFiles/mgba.dir/src/gb/renderers/software.c.o
[ 11%] Building C object CMakeFiles/mgba.dir/src/gb/sio.c.o
[ 11%] Building C object CMakeFiles/mgba.dir/src/gb/timer.c.o
[ 11%] Building C object CMakeFiles/mgba.dir/src/gb/video.c.o
[ 11%] Building C object CMakeFiles/mgba.dir/src/arm/arm.c.o
[ 12%] Building C object CMakeFiles/mgba.dir/src/arm/decoder-arm.c.o
[ 12%] Building C object CMakeFiles/mgba.dir/src/arm/decoder.c.o
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/arm/decoder.c: In function 'ARMResolveMemoryAccess':
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/arm/decoder.c:576:51: warning: signed and unsigned type in conditional expression [-Wsign-compare]
   offset = info->memory.offset.reg == ARM_PC ? pc : regs->gprs[info->memory.offset.reg];
                                                   ^
[ 12%] Building C object CMakeFiles/mgba.dir/src/arm/decoder-thumb.c.o
[ 13%] Building C object CMakeFiles/mgba.dir/src/arm/isa-arm.c.o
[ 13%] Building C object CMakeFiles/mgba.dir/src/arm/isa-thumb.c.o
[ 13%] Building C object CMakeFiles/mgba.dir/src/gba/audio.c.o
[ 14%] Building C object CMakeFiles/mgba.dir/src/gba/bios.c.o
[ 14%] Building C object CMakeFiles/mgba.dir/src/gba/cart/ereader.c.o
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/gba/cart/ereader.c: In function 'EReaderScanCard':
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/gba/cart/ereader.c:1485:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (errors < EReaderBlockListGetPointer(&scan->blocks, i)->errors) {
               ^
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/gba/cart/ereader.c: In function 'EReaderScanConnectAnchors':
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/gba/cart/ereader.c:1143:7: warning: 'threshold' may be used uninitialized in this function [-Wmaybe-uninitialized]
    if (distance <= threshold) {
       ^
[ 14%] Building C object CMakeFiles/mgba.dir/src/gba/cart/gpio.c.o
[ 15%] Building C object CMakeFiles/mgba.dir/src/gba/cart/matrix.c.o
[ 15%] Building C object CMakeFiles/mgba.dir/src/gba/cart/vfame.c.o
[ 15%] Building C object CMakeFiles/mgba.dir/src/gba/cheats.c.o
[ 16%] Building C object CMakeFiles/mgba.dir/src/gba/cheats/codebreaker.c.o
[ 16%] Building C object CMakeFiles/mgba.dir/src/gba/cheats/gameshark.c.o
[ 16%] Building C object CMakeFiles/mgba.dir/src/gba/cheats/parv3.c.o
[ 17%] Building C object CMakeFiles/mgba.dir/src/gba/core.c.o
[ 17%] Building C object CMakeFiles/mgba.dir/src/gba/dma.c.o
[ 17%] Building C object CMakeFiles/mgba.dir/src/gba/gba.c.o
[ 17%] Building C object CMakeFiles/mgba.dir/src/gba/hle-bios.c.o
[ 18%] Building C object CMakeFiles/mgba.dir/src/gba/input.c.o
[ 18%] Building C object CMakeFiles/mgba.dir/src/gba/io.c.o
[ 18%] Building C object CMakeFiles/mgba.dir/src/gba/memory.c.o
[ 19%] Building C object CMakeFiles/mgba.dir/src/gba/overrides.c.o
[ 19%] Building C object CMakeFiles/mgba.dir/src/gba/renderers/cache-set.c.o
[ 19%] Building C object CMakeFiles/mgba.dir/src/gba/renderers/common.c.o
[ 20%] Building C object CMakeFiles/mgba.dir/src/gba/renderers/gl.c.o
[ 20%] Building C object CMakeFiles/mgba.dir/src/gba/renderers/software-bg.c.o
[ 20%] Building C object CMakeFiles/mgba.dir/src/gba/renderers/software-mode0.c.o
[ 21%] Building C object CMakeFiles/mgba.dir/src/gba/renderers/software-obj.c.o
[ 21%] Building C object CMakeFiles/mgba.dir/src/gba/renderers/video-software.c.o
[ 21%] Building C object CMakeFiles/mgba.dir/src/gba/savedata.c.o
[ 22%] Building C object CMakeFiles/mgba.dir/src/gba/serialize.c.o
[ 22%] Building C object CMakeFiles/mgba.dir/src/gba/sharkport.c.o
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/gba/sharkport.c: In function 'GBASavedataExportSharkPort':
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/gba/sharkport.c:210:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (vf->write(vf, SHARKPORT_HEADER, size) < size) {
                                            ^
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/gba/sharkport.c:234:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (vf->write(vf, buffer.c, size + 4) < size + 4) {
                                        ^
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/gba/sharkport.c:285:60: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  } else if (vf->write(vf, gba->memory.savedata.data, size) < size) {
                                                            ^
[ 22%] Building C object CMakeFiles/mgba.dir/src/gba/sio.c.o
[ 23%] Building C object CMakeFiles/mgba.dir/src/gba/sio/gbp.c.o
[ 23%] Building C object CMakeFiles/mgba.dir/src/gba/sio/joybus.c.o
[ 23%] Building C object CMakeFiles/mgba.dir/src/gba/timer.c.o
[ 23%] Building C object CMakeFiles/mgba.dir/src/gba/video.c.o
[ 24%] Building C object CMakeFiles/mgba.dir/src/util/circle-buffer.c.o
[ 24%] Building C object CMakeFiles/mgba.dir/src/util/configuration.c.o
[ 24%] Building C object CMakeFiles/mgba.dir/src/util/crc32.c.o
[ 25%] Building C object CMakeFiles/mgba.dir/src/util/formatting.c.o
[ 25%] Building C object CMakeFiles/mgba.dir/src/util/gbk-table.c.o
[ 25%] Building C object CMakeFiles/mgba.dir/src/util/hash.c.o
[ 26%] Building C object CMakeFiles/mgba.dir/src/util/string.c.o
[ 26%] Building C object CMakeFiles/mgba.dir/src/util/table.c.o
[ 26%] Building C object CMakeFiles/mgba.dir/src/util/vfs.c.o
[ 27%] Building C object CMakeFiles/mgba.dir/src/util/convolve.c.o
[ 27%] Building C object CMakeFiles/mgba.dir/src/util/elf-read.c.o
[ 27%] Building C object CMakeFiles/mgba.dir/src/util/export.c.o
[ 28%] Building C object CMakeFiles/mgba.dir/src/util/patch.c.o
[ 28%] Building C object CMakeFiles/mgba.dir/src/util/patch-fast.c.o
[ 28%] Building C object CMakeFiles/mgba.dir/src/util/patch-ips.c.o
[ 29%] Building C object CMakeFiles/mgba.dir/src/util/patch-ups.c.o
[ 29%] Building C object CMakeFiles/mgba.dir/src/util/png-io.c.o
[ 29%] Building C object CMakeFiles/mgba.dir/src/util/ring-fifo.c.o
[ 29%] Building C object CMakeFiles/mgba.dir/src/util/text-codec.c.o
[ 30%] Building C object CMakeFiles/mgba.dir/version.c.o
[ 30%] Building C object CMakeFiles/mgba.dir/src/util/vfs/vfs-mem.c.o
[ 30%] Building C object CMakeFiles/mgba.dir/src/util/vfs/vfs-fifo.c.o
[ 31%] Building C object CMakeFiles/mgba.dir/src/util/vfs/vfs-fd.c.o
[ 31%] Building C object CMakeFiles/mgba.dir/src/util/vfs/vfs-dirent.c.o
[ 31%] Building C object CMakeFiles/mgba.dir/src/platform/posix/memory.c.o
[ 32%] Building C object CMakeFiles/mgba.dir/src/third-party/inih/ini.c.o
[ 32%] Building C object CMakeFiles/mgba.dir/src/third-party/blip_buf/blip_buf.c.o
[ 32%] Building C object CMakeFiles/mgba.dir/src/util/vfs/vfs-zip.c.o
[ 33%] Building C object CMakeFiles/mgba.dir/src/util/vfs/vfs-lzma.c.o
[ 33%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/7zAlloc.c.o
[ 33%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/7zArcIn.c.o
[ 34%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/7zBuf.c.o
[ 34%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/7zBuf2.c.o
[ 34%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/7zCrc.c.o
[ 35%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/7zCrcOpt.c.o
[ 35%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/7zDec.c.o
[ 35%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/CpuArch.c.o
[ 35%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/Delta.c.o
[ 36%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/LzmaDec.c.o
[ 36%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/Lzma2Dec.c.o
[ 36%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/Bra.c.o
[ 37%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/Bra86.c.o
[ 37%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/BraIA64.c.o
[ 37%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/Bcj2.c.o
[ 38%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/Ppmd7.c.o
[ 38%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/Ppmd7Dec.c.o
[ 38%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/7zFile.c.o
[ 39%] Building C object CMakeFiles/mgba.dir/src/third-party/lzma/7zStream.c.o
[ 39%] Building C object CMakeFiles/mgba.dir/src/gba/sio/dolphin.c.o
[ 39%] Building C object CMakeFiles/mgba.dir/src/gba/sio/lockstep.c.o
[ 40%] Building C object CMakeFiles/mgba.dir/src/gb/sio/lockstep.c.o
[ 40%] Building C object CMakeFiles/mgba.dir/src/gb/sio/printer.c.o
[ 40%] Building C object CMakeFiles/mgba.dir/src/feature/editline/cli-el-backend.c.o
[ 41%] Building C object CMakeFiles/mgba.dir/src/debugger/gdb-stub.c.o
[ 41%] Building C object CMakeFiles/mgba.dir/src/feature/ffmpeg/ffmpeg-encoder.c.o
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/feature/ffmpeg/ffmpeg-encoder.c: In function 'FFmpegEncoderOpen':
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/feature/ffmpeg/ffmpeg-encoder.c:307:3: warning: 'channels' is deprecated [-Wdeprecated-declarations]
   encoder->audio->channels = 2;
   ^~~~~~~
In file included from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/feature/ffmpeg/ffmpeg-encoder.c:14:0:
/scratch/work/emulators/mgba-qt/work/.buildlink/include/ffmpeg5/libavcodec/avcodec.h:1006:9: note: declared here
     int channels;
         ^~~~~~~~
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/feature/ffmpeg/ffmpeg-encoder.c:308:3: warning: 'channel_layout' is deprecated [-Wdeprecated-declarations]
   encoder->audio->channel_layout = AV_CH_LAYOUT_STEREO;
   ^~~~~~~
In file included from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/feature/ffmpeg/ffmpeg-encoder.c:14:0:
/scratch/work/emulators/mgba-qt/work/.buildlink/include/ffmpeg5/libavcodec/avcodec.h:1060:14: note: declared here
     uint64_t channel_layout;
              ^~~~~~~~~~~~~~
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/feature/ffmpeg/ffmpeg-encoder.c:333:3: warning: 'channel_layout' is deprecated [-Wdeprecated-declarations]
   encoder->audioFrame->channel_layout = AV_CH_LAYOUT_STEREO;
   ^~~~~~~
In file included from /scratch/work/emulators/mgba-qt/work/.buildlink/include/ffmpeg5/libavutil/hwcontext.h:23:0,
                 from /scratch/work/emulators/mgba-qt/work/.buildlink/include/ffmpeg5/libavcodec/codec.h:27,
                 from /scratch/work/emulators/mgba-qt/work/.buildlink/include/ffmpeg5/libavformat/avformat.h:313,
                 from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/feature/ffmpeg/ffmpeg-common.h:15,
                 from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/feature/ffmpeg/ffmpeg-encoder.h:15,
                 from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/feature/ffmpeg/ffmpeg-encoder.c:6:
/scratch/work/emulators/mgba-qt/work/.buildlink/include/ffmpeg5/libavutil/frame.h:510:14: note: declared here
     uint64_t channel_layout;
              ^~~~~~~~~~~~~~
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/feature/ffmpeg/ffmpeg-encoder.c: In function '_ffmpegOpenResampleContext':
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/feature/ffmpeg/ffmpeg-encoder.c:896:2: warning: 'swr_alloc_set_opts' is deprecated [-Wdeprecated-declarations]
  encoder->resampleContext = swr_alloc_set_opts(NULL, AV_CH_LAYOUT_STEREO, encoder->sampleFormat, encoder->sampleRate,
  ^~~~~~~
In file included from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/feature/ffmpeg/ffmpeg-encoder.c:33:0:
/scratch/work/emulators/mgba-qt/work/.buildlink/include/ffmpeg5/libswresample/swresample.h:260:20: note: declared here
 struct SwrContext *swr_alloc_set_opts(struct SwrContext *s,
                    ^~~~~~~~~~~~~~~~~~
[ 41%] Building C object CMakeFiles/mgba.dir/src/feature/ffmpeg/ffmpeg-decoder.c.o
[ 41%] Building C object CMakeFiles/mgba.dir/src/feature/ffmpeg/ffmpeg-scale.c.o
[ 42%] Building C object CMakeFiles/mgba.dir/src/debugger/cli-debugger.c.o
[ 42%] Building C object CMakeFiles/mgba.dir/src/feature/sqlite3/no-intro.c.o
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/debugger/cli-debugger.c: In function 'CLIDebuggerTabComplete':
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/debugger/cli-debugger.c:1192:83: warning: unused parameter 'initial' [-Wunused-parameter]
 bool CLIDebuggerTabComplete(struct CLIDebugger* debugger, const char* token, bool initial, size_t tokenLen) {
                                                                                   ^~~~~~~
[ 42%] Building C object CMakeFiles/mgba.dir/src/debugger/debugger.c.o
[ 43%] Building C object CMakeFiles/mgba.dir/src/debugger/parser.c.o
[ 43%] Building C object CMakeFiles/mgba.dir/src/debugger/symbols.c.o
[ 43%] Building C object CMakeFiles/mgba.dir/src/debugger/stack-trace.c.o
[ 44%] Building C object CMakeFiles/mgba.dir/src/debugger/cli-debugger-scripting.c.o
[ 44%] Building C object CMakeFiles/mgba.dir/src/sm83/debugger/cli-debugger.c.o
[ 44%] Building C object CMakeFiles/mgba.dir/src/sm83/debugger/debugger.c.o
[ 45%] Building C object CMakeFiles/mgba.dir/src/sm83/debugger/memory-debugger.c.o
[ 45%] Building C object CMakeFiles/mgba.dir/src/gb/debugger/cli.c.o
[ 45%] Building C object CMakeFiles/mgba.dir/src/gb/debugger/debugger.c.o
[ 46%] Building C object CMakeFiles/mgba.dir/src/gb/debugger/symbols.c.o
[ 46%] Building C object CMakeFiles/mgba.dir/src/arm/debugger/cli-debugger.c.o
[ 46%] Building C object CMakeFiles/mgba.dir/src/arm/debugger/debugger.c.o
[ 47%] Building C object CMakeFiles/mgba.dir/src/arm/debugger/memory-debugger.c.o
[ 47%] Building C object CMakeFiles/mgba.dir/src/gba/debugger/cli.c.o
[ 47%] Building C object CMakeFiles/mgba.dir/src/script/context.c.o
[ 47%] Building C object CMakeFiles/mgba.dir/src/script/socket.c.o
[ 48%] Building C object CMakeFiles/mgba.dir/src/script/stdlib.c.o
In file included from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/script/socket.c:6:0:
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/script/socket.c: In function 'mScriptContextAttachSocket':
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/script/socket.c:262:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   mSCRIPT_KV_PAIR(create, &mScriptSocketCreate_Binding),
                           ^
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/include/mgba/script/context.h:18:45: note: in definition of macro 'mSCRIPT_KV_PAIR'
 #define mSCRIPT_KV_PAIR(KEY, VALUE) { #KEY, VALUE }
                                             ^~~~~
In file included from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/script/stdlib.c:6:0:
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/script/stdlib.c: In function 'mScriptContextAttachStdlib':
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/script/stdlib.c:154:32: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   mSCRIPT_KV_PAIR(makeBitmask, &mScriptMakeBitmask_Binding),
                                ^
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/include/mgba/script/context.h:18:45: note: in definition of macro 'mSCRIPT_KV_PAIR'
 #define mSCRIPT_KV_PAIR(KEY, VALUE) { #KEY, VALUE }
                                             ^~~~~
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/script/stdlib.c:155:34: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   mSCRIPT_KV_PAIR(expandBitmask, &mScriptExpandBitmask_Binding),
                                  ^
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/include/mgba/script/context.h:18:45: note: in definition of macro 'mSCRIPT_KV_PAIR'
 #define mSCRIPT_KV_PAIR(KEY, VALUE) { #KEY, VALUE }
                                             ^~~~~
[ 48%] Building C object CMakeFiles/mgba.dir/src/script/types.c.o
[ 48%] Building C object CMakeFiles/mgba.dir/src/script/engines/lua.c.o
In file included from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/include/mgba/internal/script/lua.h:8:0,
                 from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/script/engines/lua.c:6:
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/script/engines/lua.c: In function '_luaCreate':
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/include/mgba/script/types.h:20:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 #define mSCRIPT_VALUE_DOC_FUNCTION(NAME) (&_mScriptDoc_ ## NAME)
                                          ^
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/include/mgba/script/context.h:18:45: note: in definition of macro 'mSCRIPT_KV_PAIR'
 #define mSCRIPT_KV_PAIR(KEY, VALUE) { #KEY, VALUE }
                                             ^~~~~
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/script/engines/lua.c:444:25: note: in expansion of macro 'mSCRIPT_VALUE_DOC_FUNCTION'
    mSCRIPT_KV_PAIR(tcp, mSCRIPT_VALUE_DOC_FUNCTION(socket_tcp)),
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/include/mgba/script/types.h:20:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 #define mSCRIPT_VALUE_DOC_FUNCTION(NAME) (&_mScriptDoc_ ## NAME)
                                          ^
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/include/mgba/script/context.h:18:45: note: in definition of macro 'mSCRIPT_KV_PAIR'
 #define mSCRIPT_KV_PAIR(KEY, VALUE) { #KEY, VALUE }
                                             ^~~~~
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/script/engines/lua.c:445:26: note: in expansion of macro 'mSCRIPT_VALUE_DOC_FUNCTION'
    mSCRIPT_KV_PAIR(bind, mSCRIPT_VALUE_DOC_FUNCTION(socket_bind)),
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/include/mgba/script/types.h:20:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 #define mSCRIPT_VALUE_DOC_FUNCTION(NAME) (&_mScriptDoc_ ## NAME)
                                          ^
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/include/mgba/script/context.h:18:45: note: in definition of macro 'mSCRIPT_KV_PAIR'
 #define mSCRIPT_KV_PAIR(KEY, VALUE) { #KEY, VALUE }
                                             ^~~~~
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/script/engines/lua.c:446:29: note: in expansion of macro 'mSCRIPT_VALUE_DOC_FUNCTION'
    mSCRIPT_KV_PAIR(connect, mSCRIPT_VALUE_DOC_FUNCTION(socket_connect)),
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
[ 49%] Building C object CMakeFiles/mgba.dir/src/gba/extra/audio-mixer.c.o
[ 49%] Building C object CMakeFiles/mgba.dir/src/gba/extra/battlechip.c.o
[ 49%] Building C object CMakeFiles/mgba.dir/src/gba/extra/proxy.c.o
[ 50%] Building C object CMakeFiles/mgba.dir/src/gb/extra/proxy.c.o
[ 50%] Building C object CMakeFiles/mgba.dir/src/feature/commandline.c.o
[ 50%] Building C object CMakeFiles/mgba.dir/src/feature/thread-proxy.c.o
[ 51%] Building C object CMakeFiles/mgba.dir/src/feature/updater.c.o
[ 51%] Building C object CMakeFiles/mgba.dir/src/feature/video-logger.c.o
[ 51%] Building C object CMakeFiles/mgba.dir/src/core/scripting.c.o
[ 52%] Linking C shared library libmgba.so
[ 52%] Built target mgba
[ 52%] Automatic MOC for target mgba-qt
[ 52%] Building C object sdl/CMakeFiles/mgba-sdl.dir/sdl-audio.c.o
AutoMoc: /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/platform/qt/DisplayGL.h:0: Note: No relevant classes found. No output generated.
[ 53%] Building C object sdl/CMakeFiles/mgba-sdl.dir/sdl-events.c.o
AutoMoc: /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/platform/qt/ShaderSelector.h:0: Note: No relevant classes found. No output generated.
[ 53%] Building C object sdl/CMakeFiles/mgba-sdl.dir/main.c.o
[ 53%] Built target mgba-qt_autogen
[ 54%] Generating mgba-de.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-de.qm'...
    Generated 1170 translation(s) (1170 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[ 54%] Generating mgba-en.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-en.qm'...
    Generated 3 translation(s) (1 finished and 2 unfinished)
    Ignored 1168 untranslated source text(s)
[ 54%] Generating mgba-es.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-es.qm'...
    Generated 1114 translation(s) (1105 finished and 9 unfinished)
    Ignored 57 untranslated source text(s)
[ 55%] Generating mgba-fr.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-fr.qm'...
    Generated 980 translation(s) (964 finished and 16 unfinished)
    Ignored 191 untranslated source text(s)
[ 55%] Generating mgba-hu.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-hu.qm'...
    Generated 309 translation(s) (159 finished and 150 unfinished)
    Ignored 862 untranslated source text(s)
[ 55%] Generating mgba-it.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-it.qm'...
    Generated 1170 translation(s) (1170 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[ 55%] Generating mgba-ja.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-ja.qm'...
    Generated 977 translation(s) (957 finished and 20 unfinished)
    Ignored 194 untranslated source text(s)
[ 56%] Generating mgba-ko.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-ko.qm'...
    Generated 1170 translation(s) (1170 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[ 56%] Generating mgba-ms.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-ms.qm'...
    Generated 661 translation(s) (581 finished and 80 unfinished)
    Ignored 510 untranslated source text(s)
[ 56%] Generating mgba-nb_NO.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-nb_NO.qm'...
    Generated 365 translation(s) (290 finished and 75 unfinished)
    Ignored 806 untranslated source text(s)
[ 56%] Building C object sdl/CMakeFiles/mgba-sdl.dir/sw-sdl2.c.o
[ 57%] Generating mgba-pl.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-pl.qm'...
    Generated 1170 translation(s) (1170 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[ 57%] Generating mgba-pt_BR.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-pt_BR.qm'...
    Generated 1170 translation(s) (1170 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
[ 57%] Generating mgba-ru.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-ru.qm'...
    Generated 1035 translation(s) (977 finished and 58 unfinished)
    Ignored 136 untranslated source text(s)
[ 58%] Generating mgba-tr.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-tr.qm'...
    Generated 1046 translation(s) (1037 finished and 9 unfinished)
    Ignored 125 untranslated source text(s)
[ 58%] Generating mgba-zh_CN.qm
Updating '/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-zh_CN.qm'...
    Generated 1146 translation(s) (1146 finished and 0 unfinished)
    Ignored 25 untranslated source text(s)
[ 58%] Generating qrc_resources.cpp
[ 58%] Generating ui_AboutScreen.h
[ 58%] Generating ui_ApplicationUpdatePrompt.h
[ 58%] Generating ui_ArchiveInspector.h
[ 59%] Generating ui_AssetTile.h
[ 60%] Linking C executable mgba
[ 60%] Generating ui_BattleChipView.h
[ 60%] Generating ui_CheatsView.h
[ 61%] Generating ui_DebuggerConsole.h
[ 61%] Generating ui_DolphinConnector.h
[ 61%] Generating ui_FrameView.h
[ 62%] Generating ui_GIFView.h
[ 62%] Built target mgba-sdl
[ 62%] Generating ui_IOViewer.h
[ 62%] Generating ui_LoadSaveState.h
[ 63%] Generating ui_LogView.h
[ 63%] Generating ui_MapView.h
[ 63%] Generating ui_MemoryDump.h
[ 64%] Generating ui_MemorySearch.h
[ 64%] Generating ui_MemoryView.h
[ 64%] Generating ui_ObjView.h
[ 65%] Generating ui_OverrideView.h
[ 65%] Generating ui_PaletteView.h
[ 65%] Generating ui_PlacementControl.h
[ 65%] Generating ui_PrinterView.h
[ 65%] Generating ui_ROMInfo.h
[ 66%] Generating ui_ReportView.h
[ 66%] Generating ui_SaveConverter.h
[ 67%] Generating ui_ScriptingView.h
[ 68%] Generating ui_SensorView.h
[ 68%] Generating ui_SettingsView.h
[ 68%] Generating ui_ShaderSelector.h
[ 69%] Generating ui_ShortcutView.h
[ 69%] Generating ui_TileView.h
[ 69%] Generating ui_VideoView.h
[ 69%] Generating qrc_ts.cpp
[ 69%] Building CXX object qt/CMakeFiles/mgba-qt.dir/mgba-qt_autogen/mocs_compilation.cpp.o
[ 70%] Building CXX object qt/CMakeFiles/mgba-qt.dir/main.cpp.o
In file included from /usr/pkg/qt5/include/QtGui/qtguiglobal.h:43:0,
                 from /usr/pkg/qt5/include/QtWidgets/qtwidgetsglobal.h:43,
                 from /usr/pkg/qt5/include/QtWidgets/qdialog.h:43,
                 from /usr/pkg/qt5/include/QtWidgets/QDialog:1,
                 from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-qt_autogen/EWIEGA46WW/../../../src/platform/qt/AboutScreen.h:8,
                 from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-qt_autogen/EWIEGA46WW/moc_AboutScreen.cpp:10,
                 from /scratch/work/emulators/mgba-qt/work/mgba-0.10.1/qt/mgba-qt_autogen/mocs_compilation.cpp:2:
/usr/pkg/qt5/include/QtCore/qbasicatomic.h: In instantiation of 'class QBasicAtomicInteger<long long int>':
/usr/pkg/qt5/include/QtCore/qatomic.h:59:7:   required from 'class QAtomicInteger<long long int>'
/scratch/work/emulators/mgba-qt/work/mgba-0.10.1/src/platform/qt/library/LibraryController.h:112:41:   required from here
/usr/pkg/qt5/include/QtCore/qbasicatomic.h:97:5: error: static assertion failed: template parameter is an integral of a size not supported on this platform
     Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not supported on this platform");
     ^
[ 70%] Building CXX object qt/CMakeFiles/mgba-qt.dir/AboutScreen.cpp.o
--- qt/CMakeFiles/mgba-qt.dir/mgba-qt_autogen/mocs_compilation.cpp.o ---
*** [qt/CMakeFiles/mgba-qt.dir/mgba-qt_autogen/mocs_compilation.cpp.o] Error code 1

make[2]: stopped in /scratch/work/emulators/mgba-qt/work/mgba-0.10.1
1 error

make[2]: stopped in /scratch/work/emulators/mgba-qt/work/mgba-0.10.1
--- qt/CMakeFiles/mgba-qt.dir/all ---
*** [qt/CMakeFiles/mgba-qt.dir/all] Error code 2

make[1]: stopped in /scratch/work/emulators/mgba-qt/work/mgba-0.10.1
1 error

make[1]: stopped in /scratch/work/emulators/mgba-qt/work/mgba-0.10.1
*** [all] Error code 2

make: stopped in /scratch/work/emulators/mgba-qt/work/mgba-0.10.1
1 error

make: stopped in /scratch/work/emulators/mgba-qt/work/mgba-0.10.1
*** Error code 2

Stop.
make[1]: stopped in /tree/pkgsrc/emulators/mgba-qt
*** Error code 1

Stop.
make: stopped in /tree/pkgsrc/emulators/mgba-qt