Skip to contentSkip to conversation

librav1e: make nasm dependency x86-specific

PATCH In review Ross Burton 4 participants 7 messages Jul 6

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 librav1e: make nasm dependency x86-specific

nasm is an x86 assembler, so only depend on it (and work around the build paths errors) on x86-64 (the assembler fastpaths are explicitly 64-bit only).

---
 .../recipes-multimedia/rav1e/librav1e_p20250902.bb           | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta-multimedia/recipes-multimedia/rav1e/librav1e_p20250902.bb +3 -2
index 836cd4448f..80ac5d9268 100644
@@ -7,9 +7,10 @@ inherit cargo_c pkgconfig cargo-update-recipe-crates
 
 require ${PN}-crates.inc
 
-DEPENDS += "nasm-native"
+DEPENDS:append:x86_64 = " nasm-native"
 
 SRC_URI += "git://github.com/xiph/rav1e.git;protocol=https;nobranch=1;tag=${PV}"
 SRCREV = "a2f01b3e233f531c28a20b4c29fb5c9e5d29fa6d"
 
-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+# TODO we need to pass -fdebug-prefix-map to the nasm calls
+INHIBIT_PACKAGE_DEBUG_SPLIT:x86-64 = "1"
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 uutils-coreutils: delete .cargo/config.toml

This file hardcodes a specific compiler for aarch64-linux builds, which is not the compiler that we provide. As it's otherwise useless, we can just delete the file.

---
 .../recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb   | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb +4 -0
index d294736395..2c7d3a3200 100644
@@ -65,6 +65,10 @@ python __anonymous() {
 
 BBCLASSEXTEND = "native nativesdk"
 
+do_configure:prepend() {
+    rm -f ${S}/.cargo/config.toml
+}
+
 do_compile:prepend() {
     export LIBSTDBUF_DIR="${libdir}/coreutils"
 }
Signature · 1 line
2.43.0
#2 lore raw

Re: [oe] [PATCH 2/2] uutils-coreutils: delete .cargo/config.toml

Hi Ross,

what is the use-case of the patch? config.toml file is ignored in out-of-tree builds ( https://github.com/rust-lang/cargo/issues/2930 ), so AFAIU removing it shouldn't make any difference for a bitbake build. Is it for devtool builds?

Étienne

Quoted 43 lines · Ross Burton via lists.openembedded.org

This file hardcodes a specific compiler for aarch64-linux builds, which is not the compiler that we provide. As it's otherwise useless, we can just delete the file.

---
 .../recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb   | 4 ++++
 1 file changed, 4 insertions(+)
(quoted diff) +0 -0

uutils-coreutils_0.9.0.bb b/meta-oe/recipes-core/uutils-coreutils/ uutils-coreutils_0.9.0.bb
index d294736395..2c7d3a3200 100644

meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb +4 -1
@@ -65,6 +65,10 @@ python __anonymous() {
 
 BBCLASSEXTEND = "native nativesdk"
 
+do_configure:prepend() {
+    rm -f ${S}/.cargo/config.toml
+}
+
 do_compile:prepend() {
     export LIBSTDBUF_DIR="${libdir}/coreutils"
 }
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#128027):
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Ddevel_message_128027&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=SOdQBYUxH7BLXzTcxj9ZvaK6NGp2-7IVaqDjBLLiqzTSJVfVV9rx4ihsNf7nh8E0&s=O9-vKBRH9FlzsZfYlxmATl9wU4N_eiIW6nyWGWtYbVY&e=
Mute This Topic:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_mt_120136596_7048771&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=SOdQBYUxH7BLXzTcxj9ZvaK6NGp2-7IVaqDjBLLiqzTSJVfVV9rx4ihsNf7nh8E0&s=2yFkpP2kDn3joVADoPeFPZ0Zi9frtMNUKCeXShwvgr8&e=
Group Owner: [email protected] Unsubscribe:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Ddevel_unsub&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=SOdQBYUxH7BLXzTcxj9ZvaK6NGp2-7IVaqDjBLLiqzTSJVfVV9rx4ihsNf7nh8E0&s=IkfzKX-TOIl7nmyig50STkBSa2ay6flcERE0_reNnh0&e=
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Re: [oe] [PATCH 2/2] uutils-coreutils: delete .cargo/config.toml

Hi,

The file is not ignored. It gets used and overrides linker set by cargo.bbclass/rust. uutils-coreutils builds are currently broken on arm64 build hosts and this patch fixed them.

Cheers,

-Mikko

Quoted 56 lines · Etienne Cordonnier via lists.openembedded.org

Hi Ross,

what is the use-case of the patch? config.toml file is ignored in out-of-tree builds ( https://github.com/rust-lang/cargo/issues/2930 ), so AFAIU removing it shouldn't make any difference for a bitbake build. Is it for devtool builds?

Étienne

Quoted 27 lines · Ross Burton via lists.openembedded.org

This file hardcodes a specific compiler for aarch64-linux builds, which is not the compiler that we provide. As it's otherwise useless, we can just delete the file.

---
 .../recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb   | 4 ++++
 1 file changed, 4 insertions(+)
(quoted diff) +0 -0

uutils-coreutils_0.9.0.bb b/meta-oe/recipes-core/uutils-coreutils/ uutils-coreutils_0.9.0.bb
index d294736395..2c7d3a3200 100644

meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb +4 -1
@@ -65,6 +65,10 @@ python __anonymous() {
 
 BBCLASSEXTEND = "native nativesdk"
 
+do_configure:prepend() {
+    rm -f ${S}/.cargo/config.toml
+}
+
 do_compile:prepend() {
     export LIBSTDBUF_DIR="${libdir}/coreutils"
 }
--
Quoted 6 lines

2.43.0

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

#4 lore raw

Re: [oe] [PATCH 2/2] uutils-coreutils: delete .cargo/config.toml

OK, thanks. I'll need to investigate whether something changed. In the past I had to send fixes specifically because this file was ignored in yocto builds ( see https://github.com/uutils/coreutils/pull/8360 ).

Quoted 78 lines · Mikko Rapeli

Hi,

The file is not ignored. It gets used and overrides linker set by cargo.bbclass/rust.
uutils-coreutils builds are currently broken on arm64 build hosts and this patch fixed them.

Cheers,

-Mikko

Quoted 4 lines · Etienne Cordonnier via lists.openembedded.org

Hi Ross,

what is the use-case of the patch? config.toml file is ignored in out-of-tree builds ( https://github.com/rust-lang/cargo/issues/2930 ),

so

Quoted 1 line

AFAIU removing it shouldn't make any difference for a bitbake build. Is

it

Quoted 15 lines

for devtool builds?

Étienne

Quoted 7 lines · Ross Burton via lists.openembedded.org

This file hardcodes a specific compiler for aarch64-linux builds, which is not the compiler that we provide. As it's otherwise useless, we can just delete the file.

---
 .../recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb   | 4

++++

Quoted 23 lines
Quoted 23 lines
 1 file changed, 4 insertions(+)
(quoted diff) +0 -0

uutils-coreutils_0.9.0.bb b/meta-oe/recipes-core/uutils-coreutils/ uutils-coreutils_0.9.0.bb
index d294736395..2c7d3a3200 100644

meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.9.0.bb +4 -1
@@ -65,6 +65,10 @@ python __anonymous() {
 
 BBCLASSEXTEND = "native nativesdk"
 
+do_configure:prepend() {
+    rm -f ${S}/.cargo/config.toml
+}
+
 do_compile:prepend() {
     export LIBSTDBUF_DIR="${libdir}/coreutils"
 }
--

2.43.0

Quoted 8 lines
Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#128031):

https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Ddevel_message_128031&d=DwIDaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=uLBAxAVxvPA0OdjZ6ENLmT8jfeji5R00bAuSC7pG1WThhqcr5s4ImgHl2V2Ksvon&s=GqPIL0bx8OcFWM9cn_D5VM-RjX-XWtIMAIOBYhIQDKY&e=

Quoted 1 line

Mute This Topic:

https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_mt_120136596_7159507&d=DwIDaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=uLBAxAVxvPA0OdjZ6ENLmT8jfeji5R00bAuSC7pG1WThhqcr5s4ImgHl2V2Ksvon&s=i2fZUu8gqjbAx4GrXThyR-Ef6r7RD9Zi78eiCpHFsXM&e=

Quoted 2 lines

Group Owner: [email protected] Unsubscribe:

https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Ddevel_unsub&d=DwIDaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=uLBAxAVxvPA0OdjZ6ENLmT8jfeji5R00bAuSC7pG1WThhqcr5s4ImgHl2V2Ksvon&s=N5X_J-Kw5XXiqJL6mqgIKED8BMXuK0S7uIHndfvs03k&e=
[[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw
In reply to Ross Burton

Does adding fdebug-prefix-map to ASFLAGS help on x86

Quoted 46 lines · Ross Burton via lists.openembedded.org

nasm is an x86 assembler, so only depend on it (and work around the build paths errors) on x86-64 (the assembler fastpaths are explicitly 64-bit only).

---
 .../recipes-multimedia/rav1e/librav1e_p20250902.bb           | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

librav1e_p20250902.bb b/meta-multimedia/recipes-multimedia/rav1e/ librav1e_p20250902.bb
index 836cd4448f..80ac5d9268 100644

meta-multimedia/recipes-multimedia/rav1e/librav1e_p20250902.bb +1 -1
@@ -7,9 +7,10 @@ inherit cargo_c pkgconfig cargo-update-recipe-crates
 
 require ${PN}-crates.inc
 
-DEPENDS += "nasm-native"
+DEPENDS:append:x86_64 = " nasm-native"
 
 SRC_URI += "git://
 github.com/xiph/rav1e.git;protocol=https;nobranch=1;tag=${PV}

<http://github.com/xiph/rav1e.git;protocol=https;nobranch=1;tag=$%7BPV%7D>
"
SRCREV = "a2f01b3e233f531c28a20b4c29fb5c9e5d29fa6d"

meta-multimedia/recipes-multimedia/rav1e/librav1e_p20250902.bb +2 -2
-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+# TODO we need to pass -fdebug-prefix-map to the nasm calls
+INHIBIT_PACKAGE_DEBUG_SPLIT:x86-64 = "1"
--

2.43.0

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

#6 lore raw
Quoted 2 lines · Khem Raj

Does adding fdebug-prefix-map to ASFLAGS help on x86

It would, if the nasm invocation wasn’t buried into rust crates with no way to add flags from the recipe.

Ross