Summary: | media-libs/vulkan-layers-1.2.179 reports that it is in debug mode | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ashpil <ashpil> |
Component: | Current packages | Assignee: | Nick Sarnie <sarnex> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam, sarnex |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://archives.gentoo.org/gentoo-dev/message/bc32af2490406f68f3e5cfd34c503e02 | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=822249 https://bugs.gentoo.org/show_bug.cgi?id=884791 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
ashpil@pm.me
2021-06-19 02:35:10 UTC
The warning is thrown when the target application is compiled in debug, not layers. You can fix this by defining NDEBUG when compiling. Well, no. When running the same application with validation layer binaries provided by LunarG, this warning does not appear. See here in their source, a file that is compiled when the `vulkan-layers` package is installed in Gentoo: https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/22e2b2784b04eed6f503e4f127e1d6a62d154397/scripts/layer_chassis_generator.py#L816 Furthermore, compiling the target application in release mode does not remove the warning. Sorry, you're right. The ebuild was doing the wrong thing to set NDEBUG. While you can fix this by compiling the target application with NDEBUG, obviously the ebuild should set it too The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d52e6e589ebd7b0f5abc4b700c95a99b67a32776 commit d52e6e589ebd7b0f5abc4b700c95a99b67a32776 Author: Nick Sarnie <sarnex@gentoo.org> AuthorDate: 2021-08-07 15:01:48 +0000 Commit: Nick Sarnie <sarnex@gentoo.org> CommitDate: 2021-08-07 15:03:58 +0000 media-libs/vulkan-layers: Make sure NDEBUG is set Closes: https://bugs.gentoo.org/796662 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Nick Sarnie <sarnex@gentoo.org> .../vulkan-layers/vulkan-layers-1.2.182-r1.ebuild | 60 ++++++++++++++++++++++ .../vulkan-layers/vulkan-layers-1.2.182.ebuildu | 57 ++++++++++++++++++++ media-libs/vulkan-layers/vulkan-layers-9999.ebuild | 13 +++-- 3 files changed, 126 insertions(+), 4 deletions(-) Might be worth investigating whether the same issue occurs with `vulkan-tools` and `vulkan-loader`, but they just lack an avenue to report it. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=296a7e3ebc72720e8bf385b2a2508b099245df44 commit 296a7e3ebc72720e8bf385b2a2508b099245df44 Author: Nick Sarnie <sarnex@gentoo.org> AuthorDate: 2021-08-07 19:35:35 +0000 Commit: Nick Sarnie <sarnex@gentoo.org> CommitDate: 2021-08-07 19:36:26 +0000 dev-util/vulkan-tools: Make sure NDEBUG is set Bug: https://bugs.gentoo.org/796662 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Nick Sarnie <sarnex@gentoo.org> .../vulkan-tools/vulkan-tools-1.2.182-r1.ebuild | 86 ++++++++++++++++++++++ dev-util/vulkan-tools/vulkan-tools-9999.ebuild | 15 ++-- 2 files changed, 96 insertions(+), 5 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f417aa0799113b639784eb3e7409e66da76e582f commit f417aa0799113b639784eb3e7409e66da76e582f Author: Nick Sarnie <sarnex@gentoo.org> AuthorDate: 2021-08-07 19:32:31 +0000 Commit: Nick Sarnie <sarnex@gentoo.org> CommitDate: 2021-08-07 19:36:22 +0000 media-libs/vulkan-loader: Make sure NDEBUG is set Bug: https://bugs.gentoo.org/796662 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Nick Sarnie <sarnex@gentoo.org> .../vulkan-loader/vulkan-loader-1.2.182-r1.ebuild | 70 ++++++++++++++++++++++ media-libs/vulkan-loader/vulkan-loader-9999.ebuild | 15 +++-- 2 files changed, 80 insertions(+), 5 deletions(-) The chosen fix to this was suboptimal. |