Open
Description
This crate comes with a aarch64-skyline-switch.json
file, I feel like there's some sort of target mismatch when I blindly run cargo miri test
on it. So on the one hand I'm not actually expecting tests to run or pass, but also we probably shouldn't ICE in std::rt
?
https://crates.io/crates/nnsdk/0.3.0
thread 'rustc' panicked at 'failed to find required Rust item: ["libc", "_SC_PAGESIZE"]', src/tools/miri/src/helpers.rs:156:32
note: the place in the program where the ICE was triggered
--> /home/ben/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/os.rs:593:14
|
593 | unsafe { libc::sysconf(libc::_SC_PAGESIZE) as usize }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: inside `std::sys::unix::os::page_size` at /home/ben/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/os.rs:593:14: 593:47
= note: inside `std::sys::unix::thread::guard::init` at /home/ben/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/thread.rs:782:25: 782:40
= note: inside `std::rt::init` at /home/ben/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:99:26: 99:52
= note: inside closure at /home/ben/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:147:42: 147:67
= note: inside `std::panicking::r#try::do_call::<[closure@std::rt::lang_start_internal::{closure#1}], ()>` at /home/ben/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:500:40: 500:43
= note: inside `std::panicking::r#try::<(), [closure@std::rt::lang_start_internal::{closure#1}]>` at /home/ben/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:464:19: 464:81
= note: inside `std::panic::catch_unwind::<[closure@std::rt::lang_start_internal::{closure#1}], ()>` at /home/ben/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panic.rs:142:14: 142:33
= note: inside `std::rt::lang_start_internal` at /home/ben/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:147:5: 147:70
= note: inside `std::rt::lang_start::<()>` at /home/ben/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:165:17: 170:6