Closed
Description
Trying to run cargo +nightly test
in the root directory, I get:
Compiling std_detect v0.1.5 (/home/npopov/repos/stdarch/crates/std_detect)
Compiling serde_json v1.0.113
Compiling csv v1.3.0
Compiling serde-xml-rs v0.6.0
Compiling env_logger v0.8.4
Compiling env_logger v0.10.2
error[E0658]: use of unstable library feature 'stdarch_x86_has_cpuid'
--> crates/std_detect/src/detect/os/x86.rs:33:9
|
33 | if !has_cpuid() {
| ^^^^^^^^^
|
= note: see issue #60123 <https://github.com/rust-lang/rust/issues/60123> for more information
= help: add `#![feature(stdarch_x86_has_cpuid)]` to the crate attributes to enable
= note: this compiler was built on 2024-02-13; consider upgrading it if it is out of date
error[E0635]: unknown feature `stdsimd`
--> crates/std_detect/src/lib.rs:26:56
|
26 | #![cfg_attr(not(feature = "rustc-dep-of-std"), feature(stdsimd))]
| ^^^^^^^
Some errors have detailed explanations: E0635, E0658.
For more information about an error, try `rustc --explain E0635`.
error: could not compile `std_detect` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `std_detect` (lib test) due to 2 previous errors
I'm not sure whether something in nightly broke this crate or whether this crate requires a special incantation to build?
Activity
Amanieu commentedon Feb 14, 2024
Should be fixed by #1523.
Amanieu commentedon Feb 14, 2024
Though it seems we are now hitting a new error on i586-unknown-linux-gnu:
Was there an LLVM update recently?
nikic commentedon Feb 14, 2024
Yes, rust-lang/rust#120055 landed yesterday. I put up rust-lang/rust#121088 to fix this issue.
nikic commentedon Feb 14, 2024
This makes x86_64 pass tests, but on i586 we have ~4000 test failures of the kind:
nikic commentedon Feb 15, 2024
Nevermind that last comment, apparently that's normal without
-C relocation-model=static
.