* it started to fail only after the upgrade to 1.70.0

Signed-off-by: Martin Jansa <[email protected]>
---
 meta/recipes-devtools/rust/libstd-rs_1.70.0.bb | 5 +++++
 meta/recipes-devtools/rust/rust_1.70.0.bb      | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/meta/recipes-devtools/rust/libstd-rs_1.70.0.bb 
b/meta/recipes-devtools/rust/libstd-rs_1.70.0.bb
index f4e5abc0cc..f23db79733 100644
--- a/meta/recipes-devtools/rust/libstd-rs_1.70.0.bb
+++ b/meta/recipes-devtools/rust/libstd-rs_1.70.0.bb
@@ -45,3 +45,8 @@ do_install () {
 }
 
 BBCLASSEXTEND = "nativesdk"
+
+# Since 1.70.0 upgrade this fails to build with gold:
+# http://errors.yoctoproject.org/Errors/Details/708194/
+# ld: error: version script assignment of  to symbol 
__rust_alloc_error_handler_should_panic failed: symbol not defined
+LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' 
-fuse-ld=bfd', '', d)}"
diff --git a/meta/recipes-devtools/rust/rust_1.70.0.bb 
b/meta/recipes-devtools/rust/rust_1.70.0.bb
index 83f9bec68a..8669291d08 100644
--- a/meta/recipes-devtools/rust/rust_1.70.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.70.0.bb
@@ -350,3 +350,8 @@ RUSTLIB_DEP:class-nativesdk = ""
 INSANE_SKIP:${PN} = "staticdev"
 
 BBCLASSEXTEND = "native nativesdk"
+
+# Since 1.70.0 upgrade this fails to build with gold:
+# http://errors.yoctoproject.org/Errors/Details/708196/
+# ld: error: version script assignment of  to symbol 
__rust_alloc_error_handler_should_panic failed: symbol not defined
+LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' 
-fuse-ld=bfd', '', d)}"
-- 
2.41.0

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

Reply via email to