>>> Building on sparc64-0b under emulators/mgba,-libretro BDEPENDS = [x11/qt5/qtmultimedia;x11/qt5/qtbase,-main;databases/sqlite3;lang/gcc/15;archivers/libzip;x11/qt5/qttools,-main;devel/cmake/core;graphics/ffmpeg;devel/ninja;lang/gcc/15,-c++;graphics/png;devel/sdl2] DIST = [emulators/mgba,-libretro:mgba-0.10.5.tar.gz] FULLPKGNAME = libretro-mgba-0.10.5 (Junk lock obtained for sparc64-0b at 1770901920.08) >>> Running depends in emulators/mgba,-libretro at 1770901920.22 last junk was in games/devilutionx /usr/sbin/pkg_add -aI -Drepair ffmpeg-8.0.1p0v1 libzip-1.8.0p0 sdl2-2.32.8 was: /usr/sbin/pkg_add -aI -Drepair cmake-core-3.31.8p0 ffmpeg-8.0.1p0v1 g++-15.2.0p5 gcc-15.2.0p5 libzip-1.8.0p0 ninja-1.11.1p1v1 png-1.6.54 qtbase-5.15.18pl109p0 qtmultimedia-5.15.18pl2 qttools-5.15.18pl3 sdl2-2.32.8 sqlite3-3.51.2 /usr/sbin/pkg_add -aI -Drepair ffmpeg-8.0.1p0v1 libzip-1.8.0p0 sdl2-2.32.8 >>> Running show-prepare-results in emulators/mgba,-libretro at 1770901931.39 ===> emulators/mgba,-libretro ===> Building from scratch mgba-0.10.5 ===> libretro-mgba-0.10.5 depends on: cmake-core-* -> cmake-core-3.31.8p0 ===> libretro-mgba-0.10.5 depends on: ninja-* -> ninja-1.11.1p1v1 ===> libretro-mgba-0.10.5 depends on: qttools-* -> qttools-5.15.18pl3 ===> libretro-mgba-0.10.5 depends on: gcc->=15,<16 -> gcc-15.2.0p5 ===> libretro-mgba-0.10.5 depends on: g++->=15,<16 -> g++-15.2.0p5 ===> libretro-mgba-0.10.5 depends on: libzip-* -> libzip-1.8.0p0 ===> libretro-mgba-0.10.5 depends on: sqlite3-* -> sqlite3-3.51.2 ===> libretro-mgba-0.10.5 depends on: ffmpeg-* -> ffmpeg-8.0.1p0v1 ===> libretro-mgba-0.10.5 depends on: png-* -> png-1.6.54 ===> libretro-mgba-0.10.5 depends on: sdl2-* -> sdl2-2.32.8 ===> libretro-mgba-0.10.5 depends on: qtbase-* -> qtbase-5.15.18pl109p0 ===> libretro-mgba-0.10.5 depends on: qtmultimedia-* -> qtmultimedia-5.15.18pl2 ===> Verifying specs: EGL GL SDL2 avfilter avcodec avformat avutil c curses edit elf m png pthread sqlite3 swresample swscale z zip EGL GL SDL2 avfilter avcodec avformat avutil c curses edit elf m png pthread sqlite3 swresample swscale z zip mgba Qt5Core Qt5Gui Qt5Multimedia Qt5Network Qt5Widgets estdc++>=21 pthread m pthread z ===> found EGL.2.0 GL.19.2 SDL2.0.15 avfilter.13.1 avcodec.27.1 avformat.24.1 avutil.17.1 c.102.2 curses.16.0 edit.7.0 elf.3.0 m.10.1 png.18.2 pthread.28.1 sqlite3.37.36 swresample.6.1 swscale.9.1 z.7.1 zip.4.2 mgba.2.0 Qt5Core.6.0 Qt5Gui.4.3 Qt5Multimedia.3.0 Qt5Network.4.0 Qt5Widgets.4.1 estdc++.21.0 cmake-core-3.31.8p0 ffmpeg-8.0.1p0v1 g++-15.2.0p5 gcc-15.2.0p5 libzip-1.8.0p0 ninja-1.11.1p1v1 png-1.6.54 qtbase-5.15.18pl109p0 qtmultimedia-5.15.18pl2 qttools-5.15.18pl3 sdl2-2.32.8 sqlite3-3.51.2 (Junk lock released for sparc64-0b at 1770901947.86) distfiles size=14358730 >>> Running patch in emulators/mgba,-libretro at 1770901947.98 ===> emulators/mgba,-libretro ===> Checking files for mgba-0.10.5 `/usr/ports/distfiles/mgba-0.10.5.tar.gz' is up to date. >> (SHA256) all files: OK ===> Extracting for mgba-0.10.5 ===> Patching for mgba-0.10.5 ===> Applying OpenBSD patch patch-CMakeLists_txt Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Add option to drop privileges with pledge(). |From https://github.com/mgba-emu/mgba/pull/1271. | |Index: CMakeLists.txt |--- CMakeLists.txt.orig |+++ CMakeLists.txt -------------------------- Patching file CMakeLists.txt using Plan A... Hunk #1 succeeded at 47. Hunk #2 succeeded at 541. Hunk #3 succeeded at 1291. done ===> Applying OpenBSD patch patch-src_platform_sdl_main_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Add option to drop privileges with pledge(). |From https://github.com/mgba-emu/mgba/pull/1271. | |Index: src/platform/sdl/main.c |--- src/platform/sdl/main.c.orig |+++ src/platform/sdl/main.c -------------------------- Patching file src/platform/sdl/main.c using Plan A... Hunk #1 succeeded at 45. Hunk #2 succeeded at 176. Hunk #3 succeeded at 309. Hunk #4 succeeded at 355. done ===> Compiler link: gcc -> /usr/local/bin/egcc ===> Compiler link: cc -> /usr/local/bin/egcc ===> Compiler link: c++ -> /usr/local/bin/eg++ ===> Compiler link: g++ -> /usr/local/bin/eg++ >>> Running configure in emulators/mgba,-libretro at 1770901955.34 ===> emulators/mgba,-libretro ===> Generating configure for mgba-0.10.5 ===> Configuring for mgba-0.10.5 CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier. -- The C compiler identification is GNU 15.2.0 -- The CXX compiler identification is GNU 15.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/obj/ports/mgba-0.10.5/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/obj/ports/mgba-0.10.5/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: /usr/bin/pkg-config (found version "2.4.3") -- Looking for strdup -- Looking for strdup - found -- Looking for strlcpy -- Looking for strlcpy - found -- Looking for strndup -- Looking for strndup - found -- Looking for vasprintf -- Looking for vasprintf - found -- Looking for freelocale -- Looking for freelocale - found -- Looking for newlocale -- Looking for newlocale - found -- Looking for setlocale -- Looking for setlocale - found -- Looking for snprintf_l -- Looking for snprintf_l - not found -- Looking for uselocale -- Looking for uselocale - found -- Looking for popcount32 -- Looking for popcount32 - not found -- Looking for futimens -- Looking for futimens - found -- Looking for futimes -- Looking for futimes - found -- Looking for localtime_r -- Looking for localtime_r - found -- Looking for strtof_l -- Looking for strtof_l - not found -- Looking for include file xlocale.h -- Looking for include file xlocale.h - not found -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Performing Test HAVE_PTHREAD -- Performing Test HAVE_PTHREAD - Success -- Looking for pthread_create -- Looking for pthread_create - found -- Looking for include file pthread_np.h -- Looking for include file pthread_np.h - found -- Looking for pthread_setname_np -- Looking for pthread_setname_np - not found -- Looking for pthread_set_name_np -- Looking for pthread_set_name_np - found -- Found OpenGL: /usr/X11R6/lib/libGL.so.19.2 CMake Warning at src/platform/cmake/FindFeature.cmake:54 (find_package): By not providing "Findlibavcodec.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "libavcodec", but CMake did not find one. Could not find a package configuration file provided by "libavcodec" with any of the following names: libavcodecConfig.cmake libavcodec-config.cmake Add the installation prefix of "libavcodec" to CMAKE_PREFIX_PATH or set "libavcodec_DIR" to a directory containing one of the above files. If "libavcodec" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:505 (find_feature) -- Checking for one of the modules 'libavcodec' CMake Warning at src/platform/cmake/FindFeature.cmake:54 (find_package): By not providing "Findlibavfilter.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "libavfilter", but CMake did not find one. Could not find a package configuration file provided by "libavfilter" with any of the following names: libavfilterConfig.cmake libavfilter-config.cmake Add the installation prefix of "libavfilter" to CMAKE_PREFIX_PATH or set "libavfilter_DIR" to a directory containing one of the above files. If "libavfilter" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:505 (find_feature) -- Checking for one of the modules 'libavfilter' CMake Warning at src/platform/cmake/FindFeature.cmake:54 (find_package): By not providing "Findlibavformat.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "libavformat", but CMake did not find one. Could not find a package configuration file provided by "libavformat" with any of the following names: libavformatConfig.cmake libavformat-config.cmake Add the installation prefix of "libavformat" to CMAKE_PREFIX_PATH or set "libavformat_DIR" to a directory containing one of the above files. If "libavformat" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:505 (find_feature) -- Checking for one of the modules 'libavformat' CMake Warning at src/platform/cmake/FindFeature.cmake:54 (find_package): By not providing "Findlibavutil.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "libavutil", but CMake did not find one. Could not find a package configuration file provided by "libavutil" with any of the following names: libavutilConfig.cmake libavutil-config.cmake Add the installation prefix of "libavutil" to CMAKE_PREFIX_PATH or set "libavutil_DIR" to a directory containing one of the above files. If "libavutil" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:505 (find_feature) -- Checking for one of the modules 'libavutil' CMake Warning at src/platform/cmake/FindFeature.cmake:54 (find_package): By not providing "Findlibswscale.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "libswscale", but CMake did not find one. Could not find a package configuration file provided by "libswscale" with any of the following names: libswscaleConfig.cmake libswscale-config.cmake Add the installation prefix of "libswscale" to CMAKE_PREFIX_PATH or set "libswscale_DIR" to a directory containing one of the above files. If "libswscale" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:505 (find_feature) -- Checking for one of the modules 'libswscale' CMake Warning at src/platform/cmake/FindFeature.cmake:54 (find_package): By not providing "Findlibswresample.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "libswresample", but CMake did not find one. Could not find a package configuration file provided by "libswresample" with any of the following names: libswresampleConfig.cmake libswresample-config.cmake Add the installation prefix of "libswresample" to CMAKE_PREFIX_PATH or set "libswresample_DIR" to a directory containing one of the above files. If "libswresample" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:505 (find_feature) -- Checking for one of the modules 'libswresample' -- Found ZLIB: /usr/lib/libz.so.7.1 (found version "1.3.1.1") -- Found PNG: /usr/local/lib/libpng.so.18.2 (found version "1.6.54") -- Found SQLite3: /usr/local/include (found version "3.51.2") CMake Warning at src/platform/cmake/FindFeature.cmake:54 (find_package): By not providing "Findlibelf.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "libelf", but CMake did not find one. Could not find a package configuration file provided by "libelf" with any of the following names: libelfConfig.cmake libelf-config.cmake Add the installation prefix of "libelf" to CMAKE_PREFIX_PATH or set "libelf_DIR" to a directory containing one of the above files. If "libelf" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:514 (find_feature) -- Checking for one of the modules 'libelf' -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found SDL2: /usr/local/lib/libSDL2.so.0.15 -- Build type: Release -- Platforms: -- Game Boy Advance: ON -- Game Boy: ON -- Features: -- Debuggers: ON -- CLI debugger: ON -- GDB stub: ON -- pledge/unveil: ON -- GIF/Video recording: ON -- Screenshot/advanced savestate support: ON -- ZIP support: libzip -- 7-Zip support: ON -- SQLite3 game database: ON -- ELF loading support: ON -- Discord Rich Presence support: OFF -- OpenGL support: OpenGL, OpenGL|ES 2, OpenGL|ES 3 -- Scripting support: OFF -- Frontends: -- Qt: ON -- SDL (2): ON -- Python bindings: OFF -- Examples: OFF -- Test tools: -- Profiling: OFF -- Test harness: OFF -- Test suite: OFF -- Video test suite: OFF -- ROM tester: OFF -- Cores: -- Libretro core: ON -- Libraries: -- Static: OFF -- Shared: ON -- Configuring done (38.6s) CMake Warning (dev): Policy CMP0058 is not set: Ninja requires custom command byproducts to be explicit. Run "cmake --help-policy CMP0058" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This project specifies custom command DEPENDS on files in the build tree that are not specified as the OUTPUT or BYPRODUCTS of any add_custom_command or add_custom_target: qt/ts.qrc For compatibility with versions of CMake that did not have the BYPRODUCTS option, CMake is generating phony rules for such files to convince 'ninja' to build. Project authors should add the missing BYPRODUCTS or OUTPUT options to the custom commands that produce these files. This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done (1.8s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_ASM_COMPILER_AR CMAKE_ASM_COMPILER_RANLIB CMAKE_Fortran_COMPILER_AR CMAKE_Fortran_COMPILER_RANLIB CMAKE_OBJCXX_COMPILER_AR CMAKE_OBJCXX_COMPILER_RANLIB CMAKE_OBJC_COMPILER_AR CMAKE_OBJC_COMPILER_RANLIB -- Build files have been written to: /usr/obj/ports/mgba-0.10.5/build-sparc64 >>> Running build in emulators/mgba,-libretro at 1770901997.81 ===> emulators/mgba,-libretro ===> Building for mgba-0.10.5 Change Dir: '/usr/obj/ports/mgba-0.10.5/build-sparc64' Run Build Command(s): /usr/local/bin/ninja -v -j 1 [1/420] cd /usr/obj/ports/mgba-0.10.5/mgba-0.10.5 && /usr/local/bin/cmake -DBINARY_NAME=mgba -DCONFIG_FILE=/usr/obj/ports/mgba-0.10.5/mgba-0.10.5/src/core/version.c.in -DOUT_FILE=/usr/obj/ports/mgba-0.10.5/build-sparc64/version.c -P /usr/obj/ports/mgba-0.10.5/mgba-0.10.5/version.cmake [2/420] /usr/obj/ports/mgba-0.10.5/bin/cc -DBUILD_GL -DBUILD_GLES2 -DBUILD_GLES3 -DHAVE_CRC32 -DHAVE_FREELOCALE -DHAVE_FUTIMENS -DHAVE_FUTIMES -DHAVE_LOCALE -DHAVE_LOCALTIME_R -DHAVE_NEWLOCALE -DHAVE_PTHREAD_CREATE -DHAVE_PTHREAD_NP_H -DHAVE_PTHREAD_SET_NAME_NP -DHAVE_SETLOCALE -DHAVE_STRDUP -DHAVE_STRLCPY -DHAVE_STRNDUP -DHAVE_USELOCALE -DHAVE_VASPRINTF -DMGBA_DLL -DM_CORE_GB -DM_CORE_GBA -DUSE_DEBUGGERS -DUSE_EDITLINE -DUSE_EGL -DUSE_ELF -DUSE_FFMPEG -DUSE_GDB_STUB -DUSE_LIBSWRESAMPLE -DUSE_LIBZIP -DUSE_LZMA -DUSE_PLEDGE_UNVEIL -DUSE_PNG -DUSE_PTHREADS -DUSE_SQLITE3 -DUSE_ZLIB -D_7ZIP_PPMD_SUPPPORT -Dmgba_EXPORTS -I/usr/obj/ports/mgba-0.10.5/mgba-0.10.5/include -I/usr/obj/ports/mgba-0.10.5/build-sparc64/include -I/usr/obj/ports/mgba-0.10.5/mgba-0.10.5/src -I/usr/obj/ports/mgba-0.10.5/mgba-0.10.5/src/third-party/lzma -isystem /usr/X11R6/include -isystem /usr/local/include -O2 -pipe -Wall -Wextra -Wno-missing-field-initializers -Werror=implicit-function-declaration -pthread -DNDEBUG -flto -std=c11 -fPIC -MD -MT CMakeFiles/mgba.dir/src/core/bitmap-cache.c.o -MF CMakeFiles/mgba.dir/src/core/bitmap-cache.c.o.d -o CMakeFiles/mgba.dir/src/core/bitmap-cache.c.o -c /usr/obj/ports/mgba-0.10.5/mgba-0.10.5/src/core/bitmap-cache.c FAILED: CMakeFiles/mgba.dir/src/core/bitmap-cache.c.o /usr/obj/ports/mgba-0.10.5/bin/cc -DBUILD_GL -DBUILD_GLES2 -DBUILD_GLES3 -DHAVE_CRC32 -DHAVE_FREELOCALE -DHAVE_FUTIMENS -DHAVE_FUTIMES -DHAVE_LOCALE -DHAVE_LOCALTIME_R -DHAVE_NEWLOCALE -DHAVE_PTHREAD_CREATE -DHAVE_PTHREAD_NP_H -DHAVE_PTHREAD_SET_NAME_NP -DHAVE_SETLOCALE -DHAVE_STRDUP -DHAVE_STRLCPY -DHAVE_STRNDUP -DHAVE_USELOCALE -DHAVE_VASPRINTF -DMGBA_DLL -DM_CORE_GB -DM_CORE_GBA -DUSE_DEBUGGERS -DUSE_EDITLINE -DUSE_EGL -DUSE_ELF -DUSE_FFMPEG -DUSE_GDB_STUB -DUSE_LIBSWRESAMPLE -DUSE_LIBZIP -DUSE_LZMA -DUSE_PLEDGE_UNVEIL -DUSE_PNG -DUSE_PTHREADS -DUSE_SQLITE3 -DUSE_ZLIB -D_7ZIP_PPMD_SUPPPORT -Dmgba_EXPORTS -I/usr/obj/ports/mgba-0.10.5/mgba-0.10.5/include -I/usr/obj/ports/mgba-0.10.5/build-sparc64/include -I/usr/obj/ports/mgba-0.10.5/mgba-0.10.5/src -I/usr/obj/ports/mgba-0.10.5/mgba-0.10.5/src/third-party/lzma -isystem /usr/X11R6/include -isystem /usr/local/include -O2 -pipe -Wall -Wextra -Wno-missing-field-initializers -Werror=implicit-function-declaration -pthread -DNDEBUG -flto -std=c11 -fPIC -MD -MT CMakeFiles/mgba.dir/src/core/bitmap-cache.c.o -MF CMakeFiles/mgba.dir/src/core/bitmap-cache.c.o.d -o CMakeFiles/mgba.dir/src/core/bitmap-cache.c.o -c /usr/obj/ports/mgba-0.10.5/mgba-0.10.5/src/core/bitmap-cache.c {standard input}: Assembler messages: {standard input}:2: Fatal error: unrecognized .section attribute: want a,w,x,M,S,G,T ninja: build stopped: subcommand failed. *** Error 1 in emulators/mgba (/usr/ports/devel/cmake/cmake.port.mk:40 'do-build': @cd /usr/obj/ports/mgba-0.10.5/build-sparc64 && exec /usr...) *** Error 2 in emulators/mgba (/usr/ports/infrastructure/mk/bsd.port.mk:3059 '/usr/obj/ports/mgba-0.10.5/build-sparc64/.build_done': @cd /us...) *** Error 2 in emulators/mgba (/usr/ports/infrastructure/mk/bsd.port.mk:2706 'build': @lock=mgba-0.10.5; export _LOCKS_HELD=" mgba-0.10.5";...) ===> Exiting emulators/mgba,-libretro with an error *** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:144 'build': @: ${echo_msg:=echo}; : ${target:=build}; for i in ; do eval...) >>> Ended at 1770902001.86 max_stuck=0.00/depends=11.20/show-prepare-results=16.57/patch=7.34/configure=42.48/build=4.15 Error: job failed with 512 on sparc64-0b at 1770902001