| Summary: | media-libs/vulkan-loader-1.1.77.0 - fails to build | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Georgy Yakovlev <gyakovlev> |
| Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | alexander, bfg, iivanich, klaus818, thomas.bettler, yamadharma |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | https://github.com/KhronosGroup/Vulkan-Loader/issues/43 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
build-abi_x86_32.x86.log
build-abi_x86_64.amd64.log |
||
|
Description
Georgy Yakovlev
2018-06-24 03:33:27 UTC
Created attachment 536992 [details]
build-abi_x86_64.amd64.log
actually it's not only x86_32
64bin only build fails as well.
I think it has something to do with: https://github.com/KhronosGroup/Vulkan-Loader/commit/6113978aa3b48a7e9f1d4289f1ab13aefae9f070 "loader: Add support for get display properties2" It looks as something is not up to date. /var/tmp/portage/media-libs/vulkan-loader-1.1.77.0/work/Vulkan-Loader-c71d5027a9d7fe4b170c0ff69bad67efd1d530cf/loader/wsi.c: In function ‘vkGetPhysicalDeviceDisplayProperties2KHR’: /var/tmp/portage/media-libs/vulkan-loader-1.1.77.0/work/Vulkan-Loader-c71d5027a9d7fe4b170c0ff69bad67efd1d530cf/loader/wsi.c:1611:18: error: ‘VkLayerInstanceDispatchTable’ {aka ‘const struct VkLayerInstanceDispatchTable_’} has no member named ‘GetPhysicalDeviceDisplayProperties2KHR’; did you mean ‘GetPhysicalDeviceDisplayPropertiesKHR’? return disp->GetPhysicalDeviceDisplayProperties2KHR(unwrapped_phys_dev, pPropertyCount, pProperties); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ GetPhysicalDeviceDisplayPropertiesKHR /var/tmp/portage/media-libs/vulkan-loader-1.1.77.0/work/Vulkan-Loader-c71d5027a9d7fe4b170c0ff69bad67efd1d530cf/loader/wsi.c: In function ‘vkGetPhysicalDeviceDisplayPlaneProperties2KHR’: /var/tmp/portage/media-libs/vulkan-loader-1.1.77.0/work/Vulkan-Loader-c71d5027a9d7fe4b170c0ff69bad67efd1d530cf/loader/wsi.c:1660:18: error: ‘VkLayerInstanceDispatchTable’ {aka ‘const struct VkLayerInstanceDispatchTable_’} has no member named ‘GetPhysicalDeviceDisplayPlaneProperties2KHR’; did you mean ‘GetPhysicalDeviceDisplayPlanePropertiesKHR’? return disp->GetPhysicalDeviceDisplayPlaneProperties2KHR(unwrapped_phys_dev, pPropertyCount, pProperties); Thanks for the report. I had this issue but I thought I broke my vulkan install somehow. Can you send me the output of: ls /usr/include/vulkan Thanks ls /usr/include/vulkan vk_layer_dispatch_table.h vulkan_intel.h (In reply to klaus818 from comment #4) > ls /usr/include/vulkan > vk_layer_dispatch_table.h vulkan_intel.h Thanks. A couple of questions. 1) Did you uninstall vulkan-headers after the vulkan-loader install failed? 2) What happens if you rename vk_layer_dispatch_table.h to vk_layer_dispatch_table.h.bak and then try emerging vulkan-loader-1.1.77.0? Thanks, Sarnex It doesn't change anything, if I uninstall vulkan-headers, because it is installed before the next build of vulkan-loader.
emerge -uDNva world
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild N ] dev-util/vulkan-headers-1.1.77.0::gentoo 0 KiB
[ebuild U ] media-libs/vulkan-loader-1.1.77.0::gentoo [1.1.70.0-r1::gentoo] USE="X wayland -layers (-demos%)" ABI_X86="(64) -32 (-x32)" 0 KiB
[blocks b ] <=media-libs/vulkan-loader-1.1.70.0-r999 ("<=media-libs/vulkan-loader-1.1.70.0-r999" is blocking dev-util/vulkan-headers-1.1.77.0)
Total: 2 packages (1 upgrade, 1 new), Size of downloads: 0 KiB
Conflict: 1 block
After I renamed vk_layer_dispatch_table.h, I was able to build vulkan-loader-1.1.77.0.
Now I have: ls -l /usr/include/vulkan/ insgesamt 2312 -rw-r--r-- 1 root root 5373 13. Jun 23:31 vk_icd.h -rw-r--r-- 1 root root 25295 24. Jun 15:32 vk_layer_dispatch_table.h -rw-r--r-- 1 root root 24298 1. Jun 23:54 vk_layer_dispatch_table.h.bak -rw-r--r-- 1 root root 6998 13. Jun 23:31 vk_layer.h -rw-r--r-- 1 root root 3279 13. Jun 23:31 vk_platform.h -rw-r--r-- 1 root root 1913 13. Jun 23:31 vk_sdk_platform.h -rw-r--r-- 1 root root 4729 13. Jun 23:31 vulkan_android.h -rw-r--r-- 1 root root 370247 13. Jun 23:31 vulkan_core.h -rw-r--r-- 1 root root 1590 13. Jun 23:31 vulkan.h -rw-r--r-- 1 root root 1851880 13. Jun 23:31 vulkan.hpp -rw-r--r-- 1 root root 2588 16. Jun 07:23 vulkan_intel.h -rw-r--r-- 1 root root 1754 13. Jun 23:31 vulkan_ios.h -rw-r--r-- 1 root root 1784 13. Jun 23:31 vulkan_macos.h -rw-r--r-- 1 root root 2241 13. Jun 23:31 vulkan_mir.h -rw-r--r-- 1 root root 1729 13. Jun 23:31 vulkan_vi.h -rw-r--r-- 1 root root 2307 13. Jun 23:31 vulkan_wayland.h -rw-r--r-- 1 root root 11236 13. Jun 23:31 vulkan_win32.h -rw-r--r-- 1 root root 2325 13. Jun 23:31 vulkan_xcb.h -rw-r--r-- 1 root root 2305 13. Jun 23:31 vulkan_xlib.h -rw-r--r-- 1 root root 1845 13. Jun 23:31 vulkan_xlib_xrandr.h (In reply to klaus818 from comment #6) > It doesn't change anything, if I uninstall vulkan-headers, because it is > installed before the next build of vulkan-loader. > > emerge -uDNva world > > These are the packages that would be merged, in order: > > Calculating dependencies ... done! > [ebuild N ] dev-util/vulkan-headers-1.1.77.0::gentoo 0 KiB > [ebuild U ] media-libs/vulkan-loader-1.1.77.0::gentoo > [1.1.70.0-r1::gentoo] USE="X wayland -layers (-demos%)" ABI_X86="(64) -32 > (-x32)" 0 KiB > [blocks b ] <=media-libs/vulkan-loader-1.1.70.0-r999 > ("<=media-libs/vulkan-loader-1.1.70.0-r999" is blocking > dev-util/vulkan-headers-1.1.77.0) > > Total: 2 packages (1 upgrade, 1 new), Size of downloads: 0 KiB > Conflict: 1 block > > After I renamed vk_layer_dispatch_table.h, I was able to build > vulkan-loader-1.1.77.0. Confirmed. Renaming vk_layer_dispatch_table.h corrected my build also. Thanks. I know the problem but I need to think about the solution. The workaround is to manually rename/remove /usr/include/vulkan/vk_layer_dispatch_table.h. Sarnex there is an upstream bug: https://github.com/KhronosGroup/Vulkan-Loader/issues/42 using the live ebuilds of mesa,vulkan-headers and vulkan-loader did not help. Yeah, the problem is the build system will use the already-installed header, but as it has changed in the version we are building, it errors out. I am reporting this upstream. Sarnex The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=131a721a341f10793685db777fa14f58a10de026 commit 131a721a341f10793685db777fa14f58a10de026 Author: Nick Sarnie <sarnex@gentoo.org> AuthorDate: 2018-06-24 14:40:30 +0000 Commit: Nick Sarnie <sarnex@gentoo.org> CommitDate: 2018-06-24 14:41:45 +0000 profiles/package.mask: Mask media-libs/vulkan-loader-1.1.77.0 Bug: https://bugs.gentoo.org/658900 Signed-off-by: Nick Sarnie <sarnex@gentoo.org> profiles/package.mask | 5 +++++ 1 file changed, 5 insertions(+) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f3d37f64f6bd0476404d702a92b035bfd75cff5 commit 9f3d37f64f6bd0476404d702a92b035bfd75cff5 Author: Nick Sarnie <sarnex@gentoo.org> AuthorDate: 2018-07-07 17:24:25 +0000 Commit: Nick Sarnie <sarnex@gentoo.org> CommitDate: 2018-07-07 17:51:58 +0000 media-libs/vulkan-loader: Backport upstream patch Also update dep in 9999 Fixes: https://bugs.gentoo.org/658900 Package-Manager: Portage-2.3.41, Repoman-2.3.9 ...1.77.0-loader-Rework-include-dependencies.patch | 54 ++++++++++++++++++++++ .../vulkan-loader/vulkan-loader-1.1.77.0.ebuild | 4 +- media-libs/vulkan-loader/vulkan-loader-9999.ebuild | 2 +- 3 files changed, 58 insertions(+), 2 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a56846aa6198c91ec9bd380d18e4da93646120df commit a56846aa6198c91ec9bd380d18e4da93646120df Author: Nick Sarnie <sarnex@gentoo.org> AuthorDate: 2018-07-07 17:50:47 +0000 Commit: Nick Sarnie <sarnex@gentoo.org> CommitDate: 2018-07-07 17:52:13 +0000 media-libs/vulkan-layers: Backport patch to fix build on 1.1.77.0 Same issue as media-libs/vulkan-loader-1.1.77.0 Bug: https://bugs.gentoo.org/658900 Package-Manager: Portage-2.3.41, Repoman-2.3.9 ...1.77.0-layers-Rework-include-dependencies.patch | 68 ++++++++++++++++++++++ .../vulkan-layers/vulkan-layers-1.1.77.0.ebuild | 3 +- media-libs/vulkan-layers/vulkan-layers-9999.ebuild | 2 +- 3 files changed, 71 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b94c25afec87bf003dc506f34a81697764320b8d commit b94c25afec87bf003dc506f34a81697764320b8d Author: Nick Sarnie <sarnex@gentoo.org> AuthorDate: 2018-07-07 17:22:28 +0000 Commit: Nick Sarnie <sarnex@gentoo.org> CommitDate: 2018-07-07 17:22:28 +0000 dev-util/vulkan-headers: Revbump 1.1.77.0 for patch Backport patch to fix upstream bug Bug: https://bugs.gentoo.org/658900 Package-Manager: Portage-2.3.41, Repoman-2.3.9 ...aders-1.1.77.0-r1-Remove-loader-layer-dep.patch | 38 ++++++++++++++++++++++ .../vulkan-headers-1.1.77.0-r1.ebuild | 27 +++++++++++++++ 2 files changed, 65 insertions(+) This should be fixed. Please try again. Thanks, Sarnex |