PCSX2 / pcsx2

PCSX2 - The Playstation 2 Emulator
https://pcsx2.net
GNU General Public License v3.0
11.84k stars 1.63k forks source link

[BUG]: Linux builds failing #12018

Closed Shoegzer closed 1 hour ago

Shoegzer commented 2 hours ago

Describe the Bug

Linux builds are failing with Vulkan-related errors such as:

/home/testing/Desktop/pcsx2/pcsx2/pcsx2/GS/Renderers/Vulkan/VKShaderCache.cpp: At global scope:
/home/testing/Desktop/pcsx2/pcsx2/pcsx2/GS/Renderers/Vulkan/VKShaderCache.cpp:111:11: error: ‘::shaderc_compilation_status_to_string’ has not been declared; did you mean ‘shaderc_compilation_status_success’?
  111 |         X(shaderc_compilation_status_to_string) \
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reproduction Steps

Ensure all dependencies are up to date, and follow the linux build procedure specified here.

Expected Behavior

Working binary is produced.

PCSX2 Revision

a507964f3390e2a6c1e446cc9fda84f3b94ee931

Operating System

Linux (64bit) - Specify distro below

If Linux - Specify Distro

Linux Mint 22 (Ubuntu 24.04 base) / kernel 6.8

Logs & Dumps

build.log

Note: Last known working build was produced with commit 185b85f86aa0d4a38b6c032fd317627120ecf589. I can bisect if necessary.

F0bes commented 1 hour ago

We currently depend on a patched shaderc. You can look at how we do so by our Linux GitHub actions scripts.

Shoegzer commented 1 hour ago

Ah okay, thanks. I think you're referring to this? If so, this patch is executed with build-dependencies-qt.sh, which I'm already doing as part of the build process. What am I missing?

F0bes commented 1 hour ago

If I were to guess you either didn't set CMAKE_PREFIX_PATH to your dependencies directory, or you're running into an issue #11292 is supposed to address where the system include directory is selected first.