We need to disable this on riscv64 as it results in undefined symbols
with clang especially

libjxl/0.10.2/recipe-sysroot/usr/include/hwy/ops/rvv-inl.h:591:17: error: use
of undeclared identifier '__riscv_vsetvlmax_e8mf8'
  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
      |                 ^

Signed-off-by: Khem Raj <raj.k...@gmail.com>
---
 meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb 
b/meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb
index eced6c7726..8df0e9a2c2 100644
--- a/meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb
+++ b/meta-oe/recipes-multimedia/libjxl/libjxl_0.10.2.bb
@@ -18,7 +18,6 @@ EXTRA_OECMAKE = " \
        -DJPEGXL_ENABLE_PLUGINS=ON \
        -DBUILD_TESTING=OFF \
        -DJPEGXL_WARNINGS_AS_ERRORS=OFF \
-       -DJPEGXL_ENABLE_SIZELESS_VECTORS=ON \
        -DJPEGXL_ENABLE_SJPEG=OFF \
        -DJPEGXL_ENABLE_BENCHMARK=OFF \
        -DJPEGXL_ENABLE_EXAMPLES=OFF \
@@ -31,9 +30,15 @@ EXTRA_OECMAKE = " \
        -DJPEGXL_ENABLE_TOOLS=OFF \
 "
 
-PACKAGECONFIG ?= "mime gdk-pixbuf-loader"
+PACKAGECONFIG ?= "mime gdk-pixbuf-loader sizeless-vectors"
+# libjxl/0.10.2/recipe-sysroot/usr/include/hwy/ops/rvv-inl.h:591:17: error: use
+# of undeclared identifier '__riscv_vsetvlmax_e8mf8'
+#  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
+#      |                 ^
+PACKAGECONFIG:remove:riscv64 = "sizeless-vectors"
 PACKAGECONFIG[gdk-pixbuf-loader] = 
"-DJPEGXL_ENABLE_PLUGIN_GDKPIXBUF=ON,-DJPEGXL_ENABLE_PLUGIN_GDKPIXBUF=OFF,gdk-pixbuf"
 PACKAGECONFIG[gimp] = 
"-DJPEGXL_ENABLE_PLUGIN_GIMP210=ON,-DJPEGXL_ENABLE_PLUGIN_GIMP210=OFF,gimp"
 PACKAGECONFIG[mime] = 
"-DJPEGXL_ENABLE_PLUGIN_MIME=ON,-DJPEGXL_ENABLE_PLUGIN_MIME=OFF"
+PACKAGECONFIG[sizeless-vectors] = 
"-DJPEGXL_ENABLE_SIZELESS_VECTORS=ON,-DJPEGXL_ENABLE_SIZELESS_VECTORS=OFF"
 
 FILES:${PN} += "${libdir}/gdk-pixbuf-2.0 ${datadir}"
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110814): 
https://lists.openembedded.org/g/openembedded-devel/message/110814
Mute This Topic: https://lists.openembedded.org/mt/106608308/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to