Skip to contentSkip to conversation

libjxl: Fix build error with arm and musl

PATCH In review [email protected] 2 participants 3 messages Jan 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libjxl: Fix build error with arm and musl

From: Ankur Tyagi <[email protected]>

Build fails for qemuarm with musl with following error:
/build/tmp/work/cortexa15t2hf-neon-poky-linux-musleabi/libjxl/0.11.1/sources/libjxl-0.11.1/lib/jxl/convolve_separable5.cc | error: out of range pc-relative fixup value

---
 meta-oe/recipes-multimedia/libjxl/libjxl_0.11.1.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-multimedia/libjxl/libjxl_0.11.1.bb +3 -0
index 7b0a6db9fb..ad5b5d169b 100644
@@ -46,5 +46,8 @@ PACKAGECONFIG[sizeless-vectors] = "-DJPEGXL_ENABLE_SIZELESS_VECTORS=ON,-DJPEGXL_
 # lcms/src/cmsps2.c
 # error: out of range pc-relative fixup value
 CFLAGS:append:toolchain-clang:arm = " -fno-integrated-as"
+# lib/jxl/convolve_separable5.cc
+# error: out of range pc-relative fixup value
+CXXFLAGS:append:toolchain-clang:arm = " -fno-integrated-as"
 
 FILES:${PN} += "${libdir}/gdk-pixbuf-2.0 ${datadir}"
#1 lore raw
Quoted 24 lines · Ankur Tyagi via lists.openembedded.org

From: Ankur Tyagi <[email protected]>

Build fails for qemuarm with musl with following error:

/build/tmp/work/cortexa15t2hf-neon-poky-linux-musleabi/libjxl/0.11.1/sources/libjxl-0.11.1/lib/jxl/convolve_separable5.cc | error: out of range pc-relative fixup value

---
 meta-oe/recipes-multimedia/libjxl/libjxl_0.11.1.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-multimedia/libjxl/libjxl_0.11.1.bb +0 -0
index 7b0a6db9fb..ad5b5d169b 100644
@@ -46,5 +46,8 @@ PACKAGECONFIG[sizeless-vectors] =

"-DJPEGXL_ENABLE_SIZELESS_VECTORS=ON,-DJPEGXL_

 # lcms/src/cmsps2.c
 # error: out of range pc-relative fixup value
 CFLAGS:append:toolchain-clang:arm = " -fno-integrated-as"

meta-oe/recipes-multimedia/libjxl/libjxl_0.11.1.bb PACKAGECONFIG[sizeless-vectors] = "-DJPEGXL_ENABLE_SIZELESS_VECTORS=ON,-DJPEGXL_ · line 51

Quoted 3 lines
meta-oe/recipes-multimedia/libjxl/libjxl_0.11.1.bb +3 -0
+# lib/jxl/convolve_separable5.cc
+# error: out of range pc-relative fixup value
+CXXFLAGS:append:toolchain-clang:arm = " -fno-integrated-as"

in meta-clang we have following in nonclangable.conf

SELECTED_OPTIMIZATION:remove:pn-libjxl:arm:toolchain-clang = "-O2" SELECTED_OPTIMIZATION:append:pn-libjxl:arm:toolchain-clang = " -Og"

I wonder if this should be removed now

Quoted 13 lines

FILES:${PN} += "${libdir}/gdk-pixbuf-2.0 ${datadir}"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#123229):
https://lists.openembedded.org/g/openembedded-devel/message/123229
Mute This Topic: https://lists.openembedded.org/mt/117138971/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 31 lines · Khem Raj
Quoted 17 lines · Ankur Tyagi via lists.openembedded.org

From: Ankur Tyagi <[email protected]>

Build fails for qemuarm with musl with following error:
/build/tmp/work/cortexa15t2hf-neon-poky-linux-musleabi/libjxl/0.11.1/sources/libjxl-0.11.1/lib/jxl/convolve_separable5.cc | error: out of range pc-relative fixup value

---
 meta-oe/recipes-multimedia/libjxl/libjxl_0.11.1.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-multimedia/libjxl/libjxl_0.11.1.bb +0 -0
index 7b0a6db9fb..ad5b5d169b 100644

meta-oe/recipes-multimedia/libjxl/libjxl_0.11.1.bb PACKAGECONFIG[sizeless-vectors] = "-DJPEGXL_ENABLE_SIZELESS_VECTORS=ON,-DJPEGXL_ · line 52

Quoted 7 lines
meta-oe/recipes-multimedia/libjxl/libjxl_0.11.1.bb +3 -0
@@ -46,5 +46,8 @@ PACKAGECONFIG[sizeless-vectors] = "-DJPEGXL_ENABLE_SIZELESS_VECTORS=ON,-DJPEGXL_
 # lcms/src/cmsps2.c
 # error: out of range pc-relative fixup value
 CFLAGS:append:toolchain-clang:arm = " -fno-integrated-as"
+# lib/jxl/convolve_separable5.cc
+# error: out of range pc-relative fixup value
+CXXFLAGS:append:toolchain-clang:arm = " -fno-integrated-as"
 

in meta-clang we have following in nonclangable.conf

Quoted 4 lines

SELECTED_OPTIMIZATION:remove:pn-libjxl:arm:toolchain-clang = "-O2" SELECTED_OPTIMIZATION:append:pn-libjxl:arm:toolchain-clang = " -Og"

I wonder if this should be removed now

ok, I will look into it.

Quoted 12 lines
Quoted 12 lines
meta-oe/recipes-multimedia/libjxl/libjxl_0.11.1.bb +0 -1
 FILES:${PN} += "${libdir}/gdk-pixbuf-2.0 ${datadir}"
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#123229): https://lists.openembedded.org/g/openembedded-devel/message/123229
Mute This Topic: https://lists.openembedded.org/mt/117138971/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-