Skip to content

Build fails with stdarch_x86_has_cpuid featuer error #1526

@nikic

Description

@nikic

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions