mirror of
https://git.yoctoproject.org/poky
synced 2026-02-24 10:29:40 +01:00
Rust stable version updated to 1.86.0. https://blog.rust-lang.org/2025/04/03/Rust-1.86.0.html * Add pkgconfig-native and openssl to resolve openssl-sys crate dependency on pkg-config. As per rust document this is a required dependency. Fixes: | error: failed to run custom build command for `openssl-sys v0.9.106` | Could not find openssl via pkg-config: | The pkg-config command could not be found. | | Most likely, you need to install a pkg-config package for your OS. | Try `apt install pkg-config`, or `yum install pkg-config`, | or `pkg install pkg-config`, or `apk add pkgconfig` depending on your distribution https://crates.io/crates/openssl-sys/0.9.108/dependencies https://github.com/rust-lang/rust/blob/master/INSTALL.md#dependencies * Add Ninja as a dependency for building Rust to prevent bootstrap build regression. Fixes: | Building LLD for x86_64-unknown-linux-gnu | | Couldn't find required command: ninja (or ninja-build) | | You should install ninja as described at | <https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages>, | or set `ninja = false` in the `[llvm]` section of `config.toml`. | Alternatively, set `download-ci-llvm = true` in that `[llvm]` section | to download LLVM rather than building it. * Add bash to DEPENDS to resolve missing dependency for subtree-sync.sh Fixes: ERROR: rust-1.86.0-r0 do_package_qa: QA Issue: /usr/lib/rustlib/src/rust/library/portable-simd/subtree-sync.sh contained in package rust requires /bin/bash, but no providers found in RDEPENDS:rust? [file-rdeps] * Add do_install:append() task to remove cargo bin from rust native builds. This resolves the following conflict: Fixes: ERROR: libstd-rs-1.86.0-r0 do_prepare_recipe_sysroot: The file /usr/bin/cargo is installed by both rust-native and cargo-native, aborting * Update Unicode-3.0 license checksums. License-Update: Copyright and license files to distributions are updated.f9c16997dcIt adds copyright and license files (including HTML versions) to distributions, aligns with license compliance tools like reuse, and ensures all required license texts are properly included and formatted. * Disable building of extended Rust tools to reduce build time and filesystem usage. Update config.toml to disable building of extended Rust tools that are not required. This helps minimize unnecessary build time and filesystem usage. * The "remote-test-server" bin is now generated in stage2-tools-bin dir rather than stage1. Update the test suite accordingly. * Fix do_package QA issue by packing missing zsh files and directories: Fixes: do_package: QA Issue: rust: Files/directories were installed but not shipped in any package: /usr/share/zsh /usr/share/zsh/site-functions /usr/share/zsh/site-functions/_cargo Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install * From v1.86.0, a "self-contained" LLD is built as part of rust bootstrap build. This results in additional build time and installations. Disable rust-lld in config.toml to prevent it. References: https://github.com/rust-lang/rust/pull/1350018744b44e6b* Drop Zdual-proc-macros-additional-check.patch patch since it's merged with v1.86.0139d6ba054* LTO config is applied to rustdoc from v1.86.0. Rebase 0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch which disables it to avoid suffixes in binaries causing non-reproducibility. https://github.com/rust-lang/rust/commit/1fe351b * Restrict tests using "//@only <target_arch>" to avoid failures on riscv64, which is now part of default AB testing. Since riscv64 is Tier 2 with no automated testing, some tests may fail. This approach ensures tests continue running on supported architectures while skipping them on riscv64. https://doc.rust-lang.org/rustc/platform-support.html#tier-2-with-host-tools (From OE-Core rev: c064ef18343a956aea397d36d2e7665d6c8afd7d) Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
262 lines
8.3 KiB
Diff
262 lines
8.3 KiB
Diff
Add "[ignore]" tags to the failing unit tests to
|
|
ignore them during rust oe-selftest.
|
|
|
|
Upstream-Status: Inappropriate [OE testing specific]
|
|
|
|
Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
|
|
---
|
|
diff --git a/compiler/rustc_errors/src/markdown/tests/term.rs b/compiler/rustc_errors/src/markdown/tests/term.rs
|
|
--- a/compiler/rustc_errors/src/markdown/tests/term.rs
|
|
+++ b/compiler/rustc_errors/src/markdown/tests/term.rs
|
|
@@ -61,6 +61,7 @@ fn test_wrapping_write() {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_output() {
|
|
// Capture `--bless` when run via ./x
|
|
let bless = std::env::var_os("RUSTC_BLESS").is_some_and(|v| v != "0");
|
|
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
|
|
--- a/compiler/rustc_interface/src/tests.rs
|
|
+++ b/compiler/rustc_interface/src/tests.rs
|
|
@@ -137,6 +137,7 @@ fn assert_non_crate_hash_different(x: &Options, y: &Options) {
|
|
|
|
// When the user supplies --test we should implicitly supply --cfg test
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_switch_implies_cfg_test() {
|
|
sess_and_cfg(&["--test"], |_sess, cfg| {
|
|
assert!(cfg.contains(&(sym::test, None)));
|
|
@@ -145,6 +146,7 @@ fn test_switch_implies_cfg_test() {
|
|
|
|
// When the user supplies --test and --cfg test, don't implicitly add another --cfg test
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_switch_implies_cfg_test_unless_cfg_test() {
|
|
sess_and_cfg(&["--test", "--cfg=test"], |_sess, cfg| {
|
|
let mut test_items = cfg.iter().filter(|&&(name, _)| name == sym::test);
|
|
@@ -154,6 +156,7 @@ fn test_switch_implies_cfg_test_unless_cfg_test() {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_can_print_warnings() {
|
|
sess_and_cfg(&["-Awarnings"], |sess, _cfg| {
|
|
assert!(!sess.dcx().can_emit_warnings());
|
|
diff --git a/library/std/tests/sync/rwlock.rs b/library/std/tests/sync/rwlock.rs
|
|
index 1a9d3d3f12f..0a9cfc48806 100644
|
|
--- a/library/std/tests/sync/rwlock.rs
|
|
+++ b/library/std/tests/sync/rwlock.rs
|
|
@@ -47,6 +47,7 @@ fn frob() {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_rw_arc_poison_wr() {
|
|
let arc = Arc::new(RwLock::new(1));
|
|
let arc2 = arc.clone();
|
|
@@ -72,6 +73,7 @@ fn test_rw_arc_poison_mapped_w_r() {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_rw_arc_poison_ww() {
|
|
let arc = Arc::new(RwLock::new(1));
|
|
assert!(!arc.is_poisoned());
|
|
@@ -100,6 +102,7 @@ fn test_rw_arc_poison_mapped_w_w() {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_rw_arc_no_poison_rr() {
|
|
let arc = Arc::new(RwLock::new(1));
|
|
let arc2 = arc.clone();
|
|
@@ -127,6 +130,7 @@ fn test_rw_arc_no_poison_mapped_r_r() {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_rw_arc_no_poison_rw() {
|
|
let arc = Arc::new(RwLock::new(1));
|
|
let arc2 = arc.clone();
|
|
@@ -192,6 +196,7 @@ fn test_rw_arc() {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_rw_arc_access_in_unwind() {
|
|
let arc = Arc::new(RwLock::new(1));
|
|
let arc2 = arc.clone();
|
|
@@ -275,6 +280,7 @@ fn drop(&mut self) {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_into_inner_poison() {
|
|
let m = new_poisoned_rwlock(NonCopy(10));
|
|
|
|
@@ -299,6 +305,7 @@ fn test_get_mut() {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_get_mut_poison() {
|
|
let mut m = new_poisoned_rwlock(NonCopy(10));
|
|
|
|
diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs
|
|
--- a/library/test/src/tests.rs
|
|
+++ b/library/test/src/tests.rs
|
|
@@ -424,6 +424,7 @@
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_time_options_threshold() {
|
|
let unit = TimeThreshold::new(Duration::from_millis(50), Duration::from_millis(100));
|
|
let integration = TimeThreshold::new(Duration::from_millis(500), Duration::from_millis(1000));
|
|
diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs
|
|
--- a/library/std/tests/sync/mutex.rs
|
|
+++ b/library/std/tests/sync/mutex.rs
|
|
@@ -193,6 +193,7 @@
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_mutex_arc_poison_mapped() {
|
|
let arc = Arc::new(Mutex::new(1));
|
|
assert!(!arc.is_poisoned());
|
|
diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs
|
|
--- a/library/std/tests/sync/mutex.rs
|
|
+++ b/library/std/tests/sync/mutex.rs
|
|
@@ -272,6 +272,7 @@
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn panic_while_mapping_unlocked_poison() {
|
|
let lock = Mutex::new(());
|
|
|
|
diff --git a/library/std/src/sync/rwlock/tests.rs b/library/std/tests/sync/rwlock.rs
|
|
--- a/library/std/tests/sync/rwlock.rs
|
|
+++ b/library/std/tests/sync/rwlock.rs
|
|
@@ -59,6 +59,7 @@ fn test_rw_arc_poison_wr() {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_rw_arc_poison_mapped_w_r() {
|
|
let arc = Arc::new(RwLock::new(1));
|
|
let arc2 = arc.clone();
|
|
@@ -86,6 +87,7 @@ fn test_rw_arc_poison_ww() {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn test_rw_arc_poison_mapped_w_w() {
|
|
let arc = Arc::new(RwLock::new(1));
|
|
let arc2 = arc.clone();
|
|
@@ -431,6 +433,7 @@ fn panic_while_mapping_read_unlocked_no_poison() {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn panic_while_mapping_write_unlocked_poison() {
|
|
let lock = RwLock::new(());
|
|
|
|
diff --git a/library/coretests/benches/num/int_log/mod.rs b/library/coretests/benches/num/int_log/mod.rs
|
|
index 3807cd5d76c..018c5c04456 100644
|
|
--- a/library/coretests/benches/num/int_log/mod.rs
|
|
+++ b/library/coretests/benches/num/int_log/mod.rs
|
|
@@ -98,6 +98,7 @@ fn $random_small(bench: &mut Bencher) {
|
|
}
|
|
|
|
#[bench]
|
|
+ #[ignore]
|
|
fn $geometric(bench: &mut Bencher) {
|
|
let bases: [$t; 16] = [2, 3, 4, 5, 7, 8, 9, 15, 16, 17, 31, 32, 33, 63, 64, 65];
|
|
let base_and_numbers: Vec<($t, Vec<$t>)> = bases
|
|
diff --git a/compiler/rustc_data_structures/src/tagged_ptr/tests.rs b/compiler/rustc_data_structures/src/tagged_ptr/tests.rs
|
|
index 160af8a65d..686f4607bb 100644
|
|
--- a/compiler/rustc_data_structures/src/tagged_ptr/tests.rs
|
|
+++ b/compiler/rustc_data_structures/src/tagged_ptr/tests.rs
|
|
@@ -5,6 +5,7 @@ use crate::stable_hasher::{HashStable, StableHasher};
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn smoke() {
|
|
let value = 12u32;
|
|
let reference = &value;
|
|
diff --git a/library/std/tests/thread_local/tests.rs b/library/std/tests/thread_local/tests.rs
|
|
index 9d4f52a092..d425e5f7b7 100644
|
|
--- a/library/std/tests/thread_local/tests.rs
|
|
+++ b/library/std/tests/thread_local/tests.rs
|
|
@@ -346,6 +346,7 @@ fn join_orders_after_tls_destructors() {
|
|
|
|
// Test that thread::current is still available in TLS destructors.
|
|
#[test]
|
|
+#[ignore]
|
|
fn thread_current_in_dtor() {
|
|
// Go through one round of TLS destruction first.
|
|
struct Defer;
|
|
diff --git a/library/alloc/tests/sort/tests.rs b/library/alloc/tests/sort/tests.rs
|
|
index 14e6013f96..b670f27ab4 100644
|
|
--- a/library/alloc/tests/sort/tests.rs
|
|
+++ b/library/alloc/tests/sort/tests.rs
|
|
@@ -915,12 +915,14 @@ gen_sort_test_fns_with_default_patterns_3_ty!(
|
|
macro_rules! instantiate_sort_test_inner {
|
|
($sort_impl:ty, miri_yes, $test_fn_name:ident) => {
|
|
#[test]
|
|
+ #[ignore]
|
|
fn $test_fn_name() {
|
|
$crate::sort::tests::$test_fn_name::<$sort_impl>();
|
|
}
|
|
};
|
|
($sort_impl:ty, miri_no, $test_fn_name:ident) => {
|
|
#[test]
|
|
+ #[ignore]
|
|
#[cfg_attr(miri, ignore)]
|
|
fn $test_fn_name() {
|
|
$crate::sort::tests::$test_fn_name::<$sort_impl>();
|
|
diff --git a/compiler/rustc_data_structures/src/vec_cache/tests.rs b/compiler/rustc_data_structures/src/vec_cache/tests.rs
|
|
index a05f274136..0e69b4cb98 100644
|
|
--- a/compiler/rustc_data_structures/src/vec_cache/tests.rs
|
|
+++ b/compiler/rustc_data_structures/src/vec_cache/tests.rs
|
|
@@ -17,6 +17,7 @@ fn vec_cache_insert_and_check() {
|
|
}
|
|
|
|
#[test]
|
|
+#[ignore]
|
|
fn sparse_inserts() {
|
|
let cache: VecCache<u32, u8, u32> = VecCache::default();
|
|
let end = if cfg!(target_pointer_width = "64") && cfg!(target_os = "linux") {
|
|
diff --git a/tests/assembly/dwarf-mixed-versions-lto.rs b/tests/assembly/dwarf-mixed-versions-lto.rs
|
|
index 5b8e5ff4f4a..e558fbd7bd7 100644
|
|
--- a/tests/assembly/dwarf-mixed-versions-lto.rs
|
|
+++ b/tests/assembly/dwarf-mixed-versions-lto.rs
|
|
@@ -1,6 +1,11 @@
|
|
// This test ensures that if LTO occurs between crates with different DWARF versions, we
|
|
// will choose the highest DWARF version for the final binary. This matches Clang's behavior.
|
|
|
|
+//@ only-x86
|
|
+//@ only-x86_64
|
|
+//@ only-arm
|
|
+//@ only-aarch64
|
|
+
|
|
//@ only-linux
|
|
//@ aux-build:dwarf-mixed-versions-lto-aux.rs
|
|
//@ compile-flags: -C lto -g -Zdwarf-version=5
|
|
diff --git a/tests/codegen/dont-shuffle-bswaps.rs b/tests/codegen/dont-shuffle-bswaps.rs
|
|
index 0e712bc3a4e..93965d990d0 100644
|
|
--- a/tests/codegen/dont-shuffle-bswaps.rs
|
|
+++ b/tests/codegen/dont-shuffle-bswaps.rs
|
|
@@ -1,3 +1,8 @@
|
|
+//@ only-x86
|
|
+//@ only-x86_64
|
|
+//@ only-arm
|
|
+//@ only-aarch64
|
|
+
|
|
//@ revisions: OPT2 OPT3
|
|
//@[OPT2] compile-flags: -Copt-level=2
|
|
//@[OPT3] compile-flags: -C opt-level=3
|