[GH-ISSUE #3413] [APP BUG]: [Linux] shadPS4 builds are failing #1050

Closed
opened 2026-02-27 21:09:39 +03:00 by kerem · 6 comments
Owner

Originally created by @Shoegzer on GitHub (Aug 12, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3413

Checklist

  • I have searched for a similar issue in this repository and did not find one.
  • I am using an official build obtained from releases or updated one of those builds using its in-app updater.

Describe the Bug

Builds are now failing in linux, particularly during the linking phase. From the log:

/usr/bin/ld: warning: CMakeFiles/shadps4.dir/src/core/libraries/fiber/fiber_context.s.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
/usr/bin/ld: /lib/x86_64-linux-gnu/libSPIRV-Tools

Build log: build.log

Reproduction Steps

$ cmake -S . -B build/ -DENABLE_QT_GUI=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
$ cd build
$ cmake --build . --parallel$(nproc)

Expected Behavior

shadPS4 builds properly

Specify OS Version

Linux Mint 22.1

CPU

Intel i9-14900HX

GPU

Nvidia GTX 4060 / driver 550.163

Amount of RAM in GB

64 GB

Originally created by @Shoegzer on GitHub (Aug 12, 2025). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3413 ### Checklist - [x] I have searched for a similar issue in this repository and did not find one. - [x] I am using an official build obtained from [releases](https://github.com/shadps4-emu/shadPS4/releases) or updated one of those builds using its in-app updater. ### Describe the Bug Builds are now failing in linux, particularly during the linking phase. From the log: ``` /usr/bin/ld: warning: CMakeFiles/shadps4.dir/src/core/libraries/fiber/fiber_context.s.o: missing .note.GNU-stack section implies executable stack /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker /usr/bin/ld: /lib/x86_64-linux-gnu/libSPIRV-Tools ``` Build log: [build.log](https://github.com/user-attachments/files/21725657/build.log) ### Reproduction Steps ``` $ cmake -S . -B build/ -DENABLE_QT_GUI=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ $ cd build $ cmake --build . --parallel$(nproc) ``` ### Expected Behavior shadPS4 builds properly ### Specify OS Version Linux Mint 22.1 ### CPU Intel i9-14900HX ### GPU Nvidia GTX 4060 / driver 550.163 ### Amount of RAM in GB 64 GB
kerem closed this issue 2026-02-27 21:09:39 +03:00
Author
Owner

@Shoegzer commented on GitHub (Aug 12, 2025):

Additional information:

  • Clang version: 18.1.3
  • CMake version: 3.28.3
  • Bad build: 1b621e4b1d
  • Last known good build: fb5ac912cd

Will bisect if necessary

<!-- gh-comment-id:3180332911 --> @Shoegzer commented on GitHub (Aug 12, 2025): Additional information: * Clang version: 18.1.3 * CMake version: 3.28.3 * Bad build: 1b621e4b1d6b473d3fdc9f02e96912e483a399d6 * Last known good build: fb5ac912cdd4cdf52e91b998c41c2cedd4879e9c Will bisect if necessary
Author
Owner

@kalaposfos13 commented on GitHub (Aug 12, 2025):

It looks like /lib/x86_64-linux-gnu/libSPIRV-Tools-opt.a and /usr/lib/x86_64-linux-gnu/libglslang.a are too out of date for shadPS4, or at least the linking is failing due to that

<!-- gh-comment-id:3180385624 --> @kalaposfos13 commented on GitHub (Aug 12, 2025): It looks like `/lib/x86_64-linux-gnu/libSPIRV-Tools-opt.a` and `/usr/lib/x86_64-linux-gnu/libglslang.a` are too out of date for shadPS4, or at least the linking is failing due to that
Author
Owner

@Shoegzer commented on GitHub (Aug 12, 2025):

Thanks. I assume these are part of vulkan-sdk, though this test system is at 1.3.290 so meets the minimum 1.3 requirement for it. It doesn't appear an update to this minimum has been posted, at least not that I could find, are you aware of one?

<!-- gh-comment-id:3180476815 --> @Shoegzer commented on GitHub (Aug 12, 2025): Thanks. I assume these are part of `vulkan-sdk`, though this test system is at `1.3.290` so meets the minimum 1.3 requirement for it. It doesn't appear an update to this minimum has been posted, at least not that I could find, are you aware of one?
Author
Owner

@Shoegzer commented on GitHub (Aug 13, 2025):

Update: actually this appears to be related to glslang-tools. Here is the system version:

$ apt list glslang-tools
Listing... Done
glslang-tools/noble-updates,now 15.1.0-2~ubuntu0.24.04.1 amd64 [installed]
glslang-tools/noble-updates 15.1.0-2~ubuntu0.24.04.1 i386

However this is also in externals/glslang, so I assume the issue must be related to the external itself?

<!-- gh-comment-id:3185910491 --> @Shoegzer commented on GitHub (Aug 13, 2025): Update: actually this appears to be related to `glslang-tools`. Here is the system version: ``` $ apt list glslang-tools Listing... Done glslang-tools/noble-updates,now 15.1.0-2~ubuntu0.24.04.1 amd64 [installed] glslang-tools/noble-updates 15.1.0-2~ubuntu0.24.04.1 i386 ``` However this is also in `externals/glslang`, so I assume the issue must be related to the external itself?
Author
Owner

@squidbus commented on GitHub (Aug 30, 2025):

Thanks. I assume these are part of vulkan-sdk, though this test system is at 1.3.290 so meets the minimum 1.3 requirement for it. It doesn't appear an update to this minimum has been posted, at least not that I could find, are you aware of one?

Just to be clear, the minimum Vulkan driver version is 1.3 but that does not mean we compile against all versions of the 1.3 SDK. Various tool changes and extension additions happen throughout the life of a Vulkan version.

In this case I’m pretty sure this is a mismatch with some changes that were made to glslang/SPIRV tools in newer versions, this has come up before and there is a flag you can set to use version of glslang we submodule in the repo: https://github.com/shadps4-emu/shadPS4/issues/2800

<!-- gh-comment-id:3238913569 --> @squidbus commented on GitHub (Aug 30, 2025): > Thanks. I assume these are part of `vulkan-sdk`, though this test system is at `1.3.290` so meets the minimum 1.3 requirement for it. It doesn't appear an update to this minimum has been posted, at least not that I could find, are you aware of one? Just to be clear, the minimum Vulkan driver version is 1.3 but that does not mean we compile against all versions of the 1.3 SDK. Various tool changes and extension additions happen throughout the life of a Vulkan version. In this case I’m pretty sure this is a mismatch with some changes that were made to glslang/SPIRV tools in newer versions, this has come up before and there is a flag you can set to use version of glslang we submodule in the repo: https://github.com/shadps4-emu/shadPS4/issues/2800
Author
Owner

@Shoegzer commented on GitHub (Sep 4, 2025):

Thanks, I see now. Of course the build docs could specify the minor rev requirement, though I imagine that could quickly become too onerous.

In any event, you were right. After updating to vulkan-sdk 1.4.321.1 it builds just fine now, so I'll close this.

<!-- gh-comment-id:3251207107 --> @Shoegzer commented on GitHub (Sep 4, 2025): Thanks, I see now. Of course the build docs could specify the minor rev requirement, though I imagine that could quickly become too onerous. In any event, you were right. After updating to vulkan-sdk `1.4.321.1` it builds just fine now, so I'll close this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#1050
No description provided.