Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] vulkan-validation-layers: fix compile failure with DEBUG_BUILD = 1
@ 2025-09-01  7:39 Hongxu Jia
  2025-09-04  9:14 ` [OE-core] " Antonin Godard
  0 siblings, 1 reply; 4+ messages in thread
From: Hongxu Jia @ 2025-09-01  7:39 UTC (permalink / raw)
  To: openembedded-core

When building with GCC 14+ using -Og (DEBUG_BUILD = 1), got
the following errors:

$ echo 'DEBUG_BUILD = "1"' >> conf/local.conf
$ echo 'DISTRO_FEATURES:append = " vulkan opengl"' >> conf/local.conf
$ bitbake vulkan-validation-layers
...
|TOPDIR/tmp/work/core2-32-wrs-linux/vulkan-validation-layers/1.4.309.0/git/layers/./external/
xxhash.h:4822:1: error: inlining failed in call to 'always_inline' 'void XXH3_scrambleAcc_sse2
(void*, const void*)': function not considered for inlining
...

Refer [1], using XXH_NO_INLINE_HINTS when compiling with -Og (DEBUG_BUILD = 1)

[1] https://github.com/Cyan4973/xxHash/issues/943

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 .../vulkan/vulkan-validation-layers_1.4.321.0.bb                | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.321.0.bb b/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.321.0.bb
index fa7873b62d3..466e757a908 100644
--- a/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.321.0.bb
+++ b/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.321.0.bb
@@ -26,6 +26,8 @@ EXTRA_OECMAKE = "\
     -DSPIRV_HEADERS_INSTALL_DIR=${STAGING_EXECPREFIXDIR} \
     "
 
+CXXFLAGS:append = " ${@oe.utils.vartrue('DEBUG_BUILD', '-DXXH_NO_INLINE_HINTS=1', '', d)}"
+
 PACKAGECONFIG[x11] = "-DBUILD_WSI_XLIB_SUPPORT=ON -DBUILD_WSI_XCB_SUPPORT=ON, -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF, libxcb libx11 libxrandr"
 PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland"
 
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH] vulkan-validation-layers: fix compile failure with DEBUG_BUILD = 1
@ 2025-07-16  7:32 Hongxu Jia
  2025-08-04 16:47 ` [OE-core] " Randy MacLeod
  0 siblings, 1 reply; 4+ messages in thread
From: Hongxu Jia @ 2025-07-16  7:32 UTC (permalink / raw)
  To: openembedded-core

When building with GCC 14+ using -Og (DEBUG_BUILD = 1), got
the following errors:

$ echo 'DEBUG_BUILD = "1"' >> conf/local.conf
$ echo 'DISTRO_FEATURES:append = " vulkan"' >> conf/local.conf
$ bitbake vulkan-validation-layers
...
|tmp/work/core2-64-poky-linux/vulkan-validation-layers/1.4.313.0/sources/
vulkan-validation-layers-1.4.313.0/layers/./external/xxhash.h:4822:1: error:
inlining failed in call to 'always_inline' 'void XXH3_scrambleAcc_sse2(void*,
const void*)': function not considered for inlining
...

Refer [1], using XXH_NO_INLINE_HINTS when compiling with -Og (DEBUG_BUILD = 1)

[1] https://github.com/Cyan4973/xxHash/issues/943

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 .../vulkan/vulkan-validation-layers_1.4.313.0.bb                | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.313.0.bb b/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.313.0.bb
index 63a3aa4ae64..c05a1d87007 100644
--- a/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.313.0.bb
+++ b/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.313.0.bb
@@ -26,6 +26,8 @@ EXTRA_OECMAKE = "\
     -DSPIRV_HEADERS_INSTALL_DIR=${STAGING_EXECPREFIXDIR} \
     "
 
+CXXFLAGS:append = " ${@oe.utils.vartrue('DEBUG_BUILD', '-DXXH_NO_INLINE_HINTS=1', '', d)}"
+
 PACKAGECONFIG[x11] = "-DBUILD_WSI_XLIB_SUPPORT=ON -DBUILD_WSI_XCB_SUPPORT=ON, -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF, libxcb libx11 libxrandr"
 PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland"
 
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-09-04  9:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1852AAF23882C10C.14080@lists.openembedded.org>
2025-08-01  4:56 ` [OE-core] [PATCH] vulkan-validation-layers: fix compile failure with DEBUG_BUILD = 1 Hongxu Jia
2025-08-01  5:24   ` Mathieu Dubois-Briand
2025-09-01  7:39 Hongxu Jia
2025-09-04  9:14 ` [OE-core] " Antonin Godard
  -- strict thread matches above, loose matches on Subject: below --
2025-07-16  7:32 Hongxu Jia
2025-08-04 16:47 ` [OE-core] " Randy MacLeod

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox