summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/files
diff options
context:
space:
mode:
authorPeter Tatrai <peter.tatrai.ext@siemens.com>2025-08-11 10:43:33 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-08-14 10:31:10 +0100
commit65e4a4739e7ba2b816224f26825df3ad386ac299 (patch)
tree89d42be1f90d623a3c7f4a1c877eca54c4a0b6e6 /meta/recipes-devtools/rust/files
parent222d084261ccd585a0798ea92cd6ca0ca97dde8f (diff)
downloadpoky-65e4a4739e7ba2b816224f26825df3ad386ac299.tar.gz
rust: disable executable-no-mangle-strip test on PowerPC due to linker issue
The executable-no-mangle-strip test fails on PowerPC target with an undefined reference error when linking. The linker attempts to resolve this undefined symbol at link time, causing the test to fail with: undefined reference to `THIS_SYMBOL_SHOULD_BE_UNDEFINED' The test is designed to verify garbage collection behavior of #[no_mangle] functions and used(compiler)] statics. This appears to be a PowerPC-specific linker behavior issue. Temporarily disable this test on PowerPC until the underlying issue is resolved upstream. Related upstream issue: https://github.com/rust-lang/rust/issues/144777 Fixes oe-selftest failure: - tests/ui/linking/executable-no-mangle-strip.rs on powerpc-poky-linux-gnu (From OE-Core rev: 58ccb78de7e87f2f17d8ee47be545de49b8e2450) Signed-off-by: Peter Tatrai <peter.tatrai.ext@siemens.com> Tested-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust/files')
-rw-r--r--meta/recipes-devtools/rust/files/rust-oe-selftest.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
index 547807f94c..61f366d18d 100644
--- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
+++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
@@ -4,6 +4,8 @@ ignore them during rust oe-selftest.
4Upstream-Status: Inappropriate [OE testing specific] 4Upstream-Status: Inappropriate [OE testing specific]
5 5
6Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> 6Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
7# added executable-no-mangle-strip.rs ignore
8Signed-off-by: Peter Tatrai <Peter.Tatrai@siemens.com>
7--- 9---
8diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_errors/src/markdown/tests/term.rs 10diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_errors/src/markdown/tests/term.rs
9--- a/compiler/rustc_errors/src/markdown/tests/term.rs 11--- a/compiler/rustc_errors/src/markdown/tests/term.rs
@@ -306,3 +308,16 @@ index 42921442e03..af0edc2ee92 100644
306 //@ revisions: OPT0 OPT0_S390X 308 //@ revisions: OPT0 OPT0_S390X
307 //@ [OPT0] ignore-s390x 309 //@ [OPT0] ignore-s390x
308 //@ [OPT0_S390X] only-s390x 310 //@ [OPT0_S390X] only-s390x
311
312diff --git a/tests/ui/linking/executable-no-mangle-strip.rs b/tests/ui/linking/executable-no-mangle-strip.rs
313index cc283dc53..73cbab9c0 100644
314--- a/tests/ui/linking/executable-no-mangle-strip.rs
315+++ b/tests/ui/linking/executable-no-mangle-strip.rs
316@@ -1,5 +1,7 @@
317 //@ run-pass
318 //@ ignore-windows-gnu: only statics marked with used can be GC-ed on windows-gnu
319+//@ ignore-powerpc: this test is not working on powerpc
320+// bug report: https://github.com/rust-lang/rust/issues/144777
321
322 // Regression test for <https://github.com/rust-lang/rust/issues/139744>.
323 // Functions in the binary marked with no_mangle should be GC-ed if they