vulkan-validation-layers: fix compile failure with DEBUG_BUILD = 1
Ping
//Hongxu
Quoted 44 lines · hongxu via lists.openembedded.org
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_HINTSwhen compiling with -Og (DEBUG_BUILD= 1)[1] https://github.com/Cyan4973/xxHash/issues/943
Signed-off-by Hongxu Jia <[email protected]>--- .../vulkan/vulkan-validation-layers_1.4.313.0.bb | 2 ++ 1 file changed, 2 insertions(+)meta/recipes-graphics/vulkan/vulkan-validation-layers_1.4.313.0.bb +2
-1@@ -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" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#220435): https://lists.openembedded.org/g/openembedded-core/message/220435
Mute This Topic: https://lists.openembedded.org/mt/114181365/3617049
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 3 lines · hongxu via lists.openembedded.org
Ping
//Hongxu
Strangely I did not had the original mail. I start to believe my mail provider is doing some nasty things...
It's in my master-next branch now, thanks.
Signature · 3 lines
Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com