It worked!
Search Criteria
Package Details: pcsx2-avx-git 2.3.1.r59.g73549038-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/pcsx2-avx-git.git (read-only, click to copy) |
---|---|
Package Base: | pcsx2-avx-git |
Description: | Sony PlayStation 2 emulator |
Upstream URL: | https://github.com/PCSX2/pcsx2 |
Licenses: | GPL-3.0-or-later |
Conflicts: | pcsx2 |
Provides: | pcsx2 |
Submitter: | xiota |
Maintainer: | xiota |
Last Packager: | xiota |
Votes: | 2 |
Popularity: | 0.026262 |
First Submitted: | 2023-12-13 14:14 (UTC) |
Last Updated: | 2024-11-10 23:49 (UTC) |
Dependencies (31)
- alsa-lib
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-cudaAUR, ffmpeg-fullAUR, ffmpeg-decklinkAUR, ffmpeg-amd-fullAUR, ffmpeg-ffplayoutAUR, ffmpeg-full-gitAUR, ffmpeg-gitAUR, ffmpeg-headlessAUR, ffmpeg-amd-full-gitAUR, ffmpeg-obsAUR, ffmpeg-libfdk_aacAUR)
- glslang (glslang-gitAUR)
- libaio (libaio-gitAUR)
- libglvnd (libglvnd-gitAUR)
- libpcap (libpcap-gitAUR)
- libpng (libpng-gitAUR, libpng-apngAUR)
- libxrandr (libxrandr-gitAUR)
- qt6-base (qt6-base-gitAUR, qt6-base-headlessAUR)
- qt6-svg
- sdl2 (sdl2-gitAUR, sdl2-compat-gitAUR)
- soundtouch (soundtouch-gitAUR)
- spirv-tools (spirv-tools-gitAUR)
- wayland (wayland-gitAUR, wayland-asan-gitAUR, wayland-chromiumAUR)
- xcb-util-cursor (xcb-util-cursor-gitAUR)
- clang (llvm-rocm-gitAUR, llvm-gitAUR, clang-minimal-gitAUR, clang17-binAUR) (make)
- cmake (cmake-gitAUR) (make)
- extra-cmake-modules (extra-cmake-modules-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- libpipewire (libpipewire-gitAUR, libpipewire-full-gitAUR) (make)
- libpulse (pulseaudio-dummyAUR, libpulse-gitAUR) (make)
- lld (llvm-rocm-gitAUR, llvm-gitAUR) (make)
- llvm (llvm-rocm-gitAUR, llvm-gitAUR, llvm-minimal-gitAUR) (make)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR) (make)
- p7zipAUR (p7zip-natspecAUR, p7zip-full-binAUR, 7-zip-fullAUR, 7zip) (make)
- patchelf (patchelf-gitAUR) (make)
- patchutils (make)
- qt6-tools (make)
- qt6-wayland (make)
- spirv-headers (spirv-headers-gitAUR) (make)
- qt6-wayland (optional) – Wayland support
Required by (4)
- better-libretro-pcsx2-launcher-git (requires pcsx2)
- libretro-pcsx2-launcher (requires pcsx2)
- libretro-pcsx2-launcher-git (requires pcsx2)
- pcsx2-plugin-usbqemu-wheel (requires pcsx2)
Sources (3)
lumenor2 commented on 2024-03-22 04:41 (UTC)
lumenor2 commented on 2024-03-22 04:34 (UTC)
Let me try doing it in a fresh chroot as per the wiki
lumenor2 commented on 2024-03-22 04:31 (UTC)
@xiota i get the following when running makepkg -si in a freshly cloned repository:
[553/819] Building CXX object pcsx2/CMakeFiles/PCSX2.dir/GS/GSCapture.cpp.o
FAILED: pcsx2/CMakeFiles/PCSX2.dir/GS/GSCapture.cpp.o
/usr/bin/clang++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DENABLE_OPENGL -DENABLE_VULKAN -DSOUNDTOUCH_FLOAT_SAMPLES -DST_NO_EXCEPTION_HANDLING -DWAYLAND_API -DX11_API -DXBYAK_NO_EXCEPTION -DZYCORE_STATIC_DEFINE -DZYDIS_STATIC_DEFINE -D_M_X86=1 -D__POSIX__ -I/home/al/rep/pcsx2-avx-git/src/pcsx2/pcsx2 -I/home/al/rep/pcsx2-avx-git/src/build/pcsx2 -I/home/al/rep/pcsx2-avx-git/src/build/common/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/xbyak -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/glad/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/vulkan-headers/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/glslang/glslang -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/glslang/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/jpgd -I/home/al/rep/pcsx2-avx-git/src/pcsx2/common/../3rdparty/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/common/.. -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/fmt/fmt/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/rapidyaml/rapidyaml/ext/c4core/src/c4/ext/fast_float/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/imgui/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/rapidyaml/rapidyaml/src -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/rapidyaml/rapidyaml/ext/c4core/src -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/libchdr/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/libzip/lib -I/home/al/rep/pcsx2-avx-git/src/build/3rdparty/libzip -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/cpuinfo/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/zydis/dependencies/zycore/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/zydis/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/cubeb/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/rcheevos/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/discord-rpc/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/rapidjson/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/soundtouch/soundtouch -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/demangler/include -I/home/al/rep/pcsx2-avx-git/src/pcsx2/3rdparty/simpleini/include -isystem /usr/include/SDL2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -march=x86-64-v3 -mtune=generic -O3 -DFMT_EXCEPTIONS=0 -O3 -DNDEBUG -std=gnu++20 -pipe -fvisibility=hidden -pthread -fno-rtti -fno-exceptions -g1 -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-missing-field-initializers -ffp-contract=fast -fno-strict-aliasing -Wstrict-aliasing -Wno-parentheses -Wno-missing-braces -Wno-unknown-pragmas -Winvalid-pch -Xclang -include-pch -Xclang /home/al/rep/pcsx2-avx-git/src/build/pcsx2/CMakeFiles/PCSX2.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /home/al/rep/pcsx2-avx-git/src/build/pcsx2/CMakeFiles/PCSX2.dir/cmake_pch.hxx -MD -MT pcsx2/CMakeFiles/PCSX2.dir/GS/GSCapture.cpp.o -MF pcsx2/CMakeFiles/PCSX2.dir/GS/GSCapture.cpp.o.d -o pcsx2/CMakeFiles/PCSX2.dir/GS/GSCapture.cpp.o -c /home/al/rep/pcsx2-avx-git/src/pcsx2/pcsx2/GS/GSCapture.cpp
/home/al/rep/pcsx2-avx-git/src/pcsx2/pcsx2/GS/GSCapture.cpp:651:26: error: no member named 'channels' in 'AVCodecContext'
651 | s_audio_codec_context->channels = AUDIO_CHANNELS;
| ~ ^
/home/al/rep/pcsx2-avx-git/src/pcsx2/pcsx2/GS/GSCapture.cpp:693:26: error: no member named 'channel_layout' in 'AVCodecContext'
693 | s_audio_codec_context->channel_layout = AV_CH_LAYOUT_STEREO;
| ~ ^
/home/al/rep/pcsx2-avx-git/src/pcsx2/pcsx2/GS/GSCapture.cpp:741:28: error: no member named 'channels' in 'AVFrame'
741 | s_converted_audio_frame->channels = AUDIO_CHANNELS;
| ~ ^
/home/al/rep/pcsx2-avx-git/src/pcsx2/pcsx2/GS/GSCapture.cpp:742:28: error: no member named 'channel_layout' in 'AVFrame'
742 | s_converted_audio_frame->channel_layout = s_audio_codec_context->channel_layout;
| ~ ^
/home/al/rep/pcsx2-avx-git/src/pcsx2/pcsx2/GS/GSCapture.cpp:742:68: error: no member named 'channel_layout' in 'AVCodecContext'
742 | s_converted_audio_frame->channel_layout = s_audio_codec_context->channel_layout;
| ~ ^
5 errors generated.
[566/819] Building CXX object pcsx2/CMakeFiles/PCSX2.dir/GS/GSState.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
xiota commented on 2024-03-21 02:54 (UTC)
@lumenor2 I don't have that error. Have you tried building in a clean chroot?
lumenor2 commented on 2024-03-21 01:34 (UTC) (edited on 2024-03-21 01:34 (UTC) by lumenor2)
Getting the following when compiling with makepkg -fsi or paru:
FAILED: pcsx2/CMakeFiles/PCSX2.dir/GS/GSCapture.cpp.o
/usr/bin/clang++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DENABLE_OPENGL -DENABLE_VULKAN -DSOUNDTOUCH_FLOAT_SAMPLES -DST_NO_EXCEPTION_HANDLING -DWAYLAND_API -DX11_API -DXBYAK_NO_EXCEPTION -DZYCORE_STATIC_DEFINE -DZYDIS_STATIC_DEFINE -D_M_X86=1 -D__POSIX__ -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/pcsx2 -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/build/pcsx2 -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/build/common/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/xbyak -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/glad/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/vulkan-headers/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/glslang/glslang -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/glslang/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/jpgd -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/common/../3rdparty/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/common/.. -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/fmt/fmt/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/rapidyaml/rapidyaml/ext/c4core/src/c4/ext/fast_float/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/imgui/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/rapidyaml/rapidyaml/src -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/rapidyaml/rapidyaml/ext/c4core/src -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/libchdr/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/libzip/lib -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/build/3rdparty/libzip -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/cpuinfo/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/zydis/dependencies/zycore/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/zydis/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/cubeb/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/rcheevos/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/discord-rpc/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/rapidjson/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/soundtouch/soundtouch -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/demangler/include -I/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/3rdparty/simpleini/include -isystem /usr/include/SDL2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -march=x86-64-v3 -mtune=generic -O3 -DFMT_EXCEPTIONS=0 -O3 -DNDEBUG -std=gnu++20 -pipe -fvisibility=hidden -pthread -fno-rtti -fno-exceptions -g1 -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-missing-field-initializers -ffp-contract=fast -fno-strict-aliasing -Wstrict-aliasing -Wno-parentheses -Wno-missing-braces -Wno-unknown-pragmas -Winvalid-pch -Xclang -include-pch -Xclang /home/al/.cache/paru/clone/pcsx2-avx-git/src/build/pcsx2/CMakeFiles/PCSX2.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /home/al/.cache/paru/clone/pcsx2-avx-git/src/build/pcsx2/CMakeFiles/PCSX2.dir/cmake_pch.hxx -MD -MT pcsx2/CMakeFiles/PCSX2.dir/GS/GSCapture.cpp.o -MF pcsx2/CMakeFiles/PCSX2.dir/GS/GSCapture.cpp.o.d -o pcsx2/CMakeFiles/PCSX2.dir/GS/GSCapture.cpp.o -c /home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/pcsx2/GS/GSCapture.cpp
/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/pcsx2/GS/GSCapture.cpp:651:26: error: no member named 'channels' in 'AVCodecContext'
651 | s_audio_codec_context->channels = AUDIO_CHANNELS;
| ~ ^
/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/pcsx2/GS/GSCapture.cpp:693:26: error: no member named 'channel_layout' in 'AVCodecContext'
693 | s_audio_codec_context->channel_layout = AV_CH_LAYOUT_STEREO;
| ~ ^
/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/pcsx2/GS/GSCapture.cpp:741:28: error: no member named 'channels' in 'AVFrame'
741 | s_converted_audio_frame->channels = AUDIO_CHANNELS;
| ~ ^
/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/pcsx2/GS/GSCapture.cpp:742:28: error: no member named 'channel_layout' in 'AVFrame'
742 | s_converted_audio_frame->channel_layout = s_audio_codec_context->channel_layout;
| ~ ^
/home/al/.cache/paru/clone/pcsx2-avx-git/src/pcsx2/pcsx2/GS/GSCapture.cpp:742:68: error: no member named 'channel_layout' in 'AVCodecContext'
742 | s_converted_audio_frame->channel_layout = s_audio_codec_context->channel_layout;
| ~ ^
5 errors generated.
[138/377] Building CXX object pcsx2/CMakeFiles/PCSX2.dir/GS/Renderers/HW/GSTextureCache.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
xiota commented on 2024-03-03 22:52 (UTC)
@LarryDave Upstream moved it from git submodule into the repo. It should still work.
LarryDave commented on 2024-03-03 17:12 (UTC)
I see retroachievements was removed. Why? I use it a lot myself but I still compiled it. Can't tell if it still works or not.
xiota commented on 2024-02-18 22:22 (UTC) (edited on 2024-02-18 22:23 (UTC) by xiota)
@LarryDave You used commas instead of space to separate the new option. The commas make the addition part of the existing option, instead of being a separate option.
march=native
produces binaries that may not work when moved to another computer (illegal instruction error). If you have only one computer, or all your computers use the exact same processor (including generation), it doesn't matter.
Pinned Comments
xiota commented on 2024-01-24 03:02 (UTC) (edited on 2024-02-13 12:57 (UTC) by xiota)
Those interested in profile-guided optimization may try a time-consuming process.
_build_instrumented=true
pcsx2-instrumented-avx-git
LLVM_PROFILE_FILE="default_%9m.profraw" pcsx2-qt
llvm-profdata merge -output=pcsx2-avx-git.profdata *.profraw
pcsx2-avx-git.profdata
in same folder with PKGBUILD.pcsx2-avx-git
xiota commented on 2023-12-13 14:29 (UTC) (edited on 2024-01-24 02:57 (UTC) by xiota)
This package targets x86-64-v3 instructions. Performance benefit over standard builds is minimal because of dynamic dispatch.
Binaries available at aur.chaotic.cx
Avoid flagging and commenting at the same time for the same issue.