[GH-ISSUE #2106] [APP BUG]: Weird build error in src/video_core/renderer_vulkan/vk_platform.cpp:402:28 #729

Closed
opened 2026-02-27 21:07:49 +03:00 by kerem · 3 comments
Owner

Originally created by @v-fox on GitHub (Jan 9, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/2106

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

Tried to make a package build of latest git snapshot (20250108.65f9bbbf) and got this:

[  314s] /home/abuild/rpmbuild/BUILD/shadPS4-20250108.65f9bbbf/src/video_core/renderer_vulkan/vk_platform.cpp:402:28: error: cannot initialize a member subobject of type 'vk::PFN_DebugUtilsMessengerCallbackEXT' (aka 'unsigned int (*)(vk::DebugUtilsMessageSeverityFlagBitsEXT, Flags<DebugUtilsMessageTypeFlagBitsEXT>, const vk::DebugUtilsMessengerCallbackDataEXT *, void *)') with an lvalue of type 'VkBool32 (VkDebugUtilsMessageSeverityFlagBitsEXT, VkDebugUtilsMessageTypeFlagsEXT, const VkDebugUtilsMessengerCallbackDataEXT *, void *)' (aka 'unsigned int (VkDebugUtilsMessageSeverityFlagBitsEXT, unsigned int, const VkDebugUtilsMessengerCallbackDataEXT *, void *)'): type mismatch at 1st parameter ('vk::DebugUtilsMessageSeverityFlagBitsEXT' vs 'VkDebugUtilsMessageSeverityFlagBitsEXT')
[  314s]   402 |         .pfnUserCallback = DebugUtilsCallback,
[  314s]       |                            ^~~~~~~~~~~~~~~~~~
[  314s] 1 error generated.

System is a rolling release with latest userspace, including vulkan-headers and vulkan-validationlayers of 1.4.304
According to commit history, this seems to relate to pretty old code introduced in github.com/shadps4-emu/shadPS4@c01b6f8397
Have no clue what it actually complains about.

Reproduction Steps

Seems like making a normal build against fresh userspace would cause it, not sure why it's not broken for everyone.

Expected Behavior

Complete the build.

Specify OS Version

openSUSE Tumbleweed

Originally created by @v-fox on GitHub (Jan 9, 2025). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/2106 ### 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 Tried to make a [package build](https://build.opensuse.org/package/show/home:X0F:branches:Emulators/shadPS4) of latest git snapshot (20250108.65f9bbbf) and got this: ``` [ 314s] /home/abuild/rpmbuild/BUILD/shadPS4-20250108.65f9bbbf/src/video_core/renderer_vulkan/vk_platform.cpp:402:28: error: cannot initialize a member subobject of type 'vk::PFN_DebugUtilsMessengerCallbackEXT' (aka 'unsigned int (*)(vk::DebugUtilsMessageSeverityFlagBitsEXT, Flags<DebugUtilsMessageTypeFlagBitsEXT>, const vk::DebugUtilsMessengerCallbackDataEXT *, void *)') with an lvalue of type 'VkBool32 (VkDebugUtilsMessageSeverityFlagBitsEXT, VkDebugUtilsMessageTypeFlagsEXT, const VkDebugUtilsMessengerCallbackDataEXT *, void *)' (aka 'unsigned int (VkDebugUtilsMessageSeverityFlagBitsEXT, unsigned int, const VkDebugUtilsMessengerCallbackDataEXT *, void *)'): type mismatch at 1st parameter ('vk::DebugUtilsMessageSeverityFlagBitsEXT' vs 'VkDebugUtilsMessageSeverityFlagBitsEXT') [ 314s] 402 | .pfnUserCallback = DebugUtilsCallback, [ 314s] | ^~~~~~~~~~~~~~~~~~ [ 314s] 1 error generated. ``` System is a rolling release with latest userspace, including vulkan-headers and vulkan-validationlayers of 1.4.304 According to commit history, this seems to relate to pretty old code introduced in https://github.com/shadps4-emu/shadPS4/commit/c01b6f839781be08a2e675c172cac6d172a4d1d1 Have no clue what it actually complains about. ### Reproduction Steps Seems like making a normal build against fresh userspace would cause it, not sure why it's not broken for everyone. ### Expected Behavior Complete the build. ### Specify OS Version openSUSE Tumbleweed
kerem closed this issue 2026-02-27 21:07:50 +03:00
Author
Owner

@Hermiten commented on GitHub (Jan 11, 2025):

Maybe because you use a specific Linux system, with different package not the good version. Idk, can you check if you have everything up to date ?

<!-- gh-comment-id:2585306104 --> @Hermiten commented on GitHub (Jan 11, 2025): Maybe because you use a specific Linux system, with different package not the good version. Idk, can you check if you have everything up to date ?
Author
Owner

@v-fox commented on GitHub (Jan 11, 2025):

Maybe because you use a specific Linux system, with different package not the good version. Idk, can you check if you have everything up to date ?

Tumbleweed is a rolling release, so everything should have latest stable release (sometimes unstable) unless maintainer for some package have gone missing. If you look at the link above and click on "x86_64 -> [failed]", it will show the build log, starting with list of all packages used with their versions.

<!-- gh-comment-id:2585323928 --> @v-fox commented on GitHub (Jan 11, 2025): > Maybe because you use a specific Linux system, with different package not the good version. Idk, can you check if you have everything up to date ? Tumbleweed is a rolling release, so everything should have latest stable release (sometimes unstable) unless maintainer for some package have gone missing. If you look at the link above and click on "[x86_64 -> [failed]](https://build.opensuse.org/package/live_build_log/home:X0F:branches:Emulators/shadPS4/openSUSE_Tumbleweed/x86_64)", it will show [the build log](https://build.opensuse.org/build/home:X0F:branches:Emulators/openSUSE_Tumbleweed/x86_64/shadPS4/_log), starting with list of all packages used with their versions.
Author
Owner

@v-fox commented on GitHub (Jan 21, 2025):

As I've suspected, it was related to vulkan-headers and caused by my version being "too new", not too old: https://github.com/shadps4-emu/shadPS4/pull/2190

<!-- gh-comment-id:2604405828 --> @v-fox commented on GitHub (Jan 21, 2025): As I've suspected, it was related to vulkan-headers and caused by my version being "too new", not too old: https://github.com/shadps4-emu/shadPS4/pull/2190
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#729
No description provided.