Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of unstable library feature 'stdsimd #630

Closed
salman01zp opened this issue Feb 16, 2024 · 6 comments
Closed

Use of unstable library feature 'stdsimd #630

salman01zp opened this issue Feb 16, 2024 · 6 comments

Comments

@salman01zp
Copy link

Started getting this error in our GitHub CI , might be related to stdarc submodule update

https://github.com/webb-tools/gadget/actions/runs/7918714022/job/21618159674

error[E0658]: use of unstable library feature 'stdsimd'
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-ml-4.1.2/src/backend/vector/ifma/field.rs:26:5
   |
26 |     _mm256_madd52lo_epu64(z.into(), x.into(), y.into()).into()
   |     ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #48556 <https://github.com/rust-lang/rust/issues/48556> for more information
   = help: add `#![feature(stdsimd)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'stdsimd'
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-ml-4.1.2/src/backend/vector/ifma/field.rs:25:9
   |
25 |     use core::arch::x86_64::_mm256_madd52lo_epu64;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #48556 <https://github.com/rust-lang/rust/issues/48556> for more information
   = help: add `#![feature(stdsimd)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'stdsimd'
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-ml-4.1.2/src/backend/vector/ifma/field.rs:34:5
   |
34 |     _mm256_madd52hi_epu64(z.into(), x.into(), y.into()).into()
   |     ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #48556 <https://github.com/rust-lang/rust/issues/48556> for more information
   = help: add `#![feature(stdsimd)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'stdsimd'
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-ml-4.1.2/src/backend/vector/ifma/field.rs:33:9
   |
33 |     use core::arch::x86_64::_mm256_madd52hi_epu64;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #48556 <https://github.com/rust-lang/rust/issues/48556> for more information
   = help: add `#![feature(stdsimd)]` to the crate attributes to enable

error[E0635]: unknown feature `stdarch_x86_avx512`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curve25519-dalek-ml-4.1.2/src/lib.rs:19:13
   |
19 |     feature(stdarch_x86_avx512)
   |             ^^^^^^^^^^^^^^^^^^

    Checking ed448-goldilocks-plus v0.11.1
Some errors have detailed explanations: E0635, E0658.
For more information about an error, try `rustc --explain E0635`.
error: could not compile `curve25519-dalek-ml` (lib) due to 5 previous errors
@tarcieri
Copy link
Contributor

Please provide the nightly release you're using. It's likely it's out-of-date.

@salman01zp
Copy link
Author

nightly-x86_64-unknown-linux-gnu (overridden by '/home/runner/work/gadget/gadget/rust-toolchain.toml')
rustc 1.78.0-nightly (a4472498d 2024-02-15).

Job details:
https://github.com/webb-tools/gadget/actions/runs/7925879315/job/21639772949?pr=65

@rozbb
Copy link
Contributor

rozbb commented Feb 16, 2024

The crate you're using is curve25519-dalek-ml, not curve25519-dalek. It's possible that the maintainer of that crate did not merge the patch that fixes the errors you linked.

@salman01zp
Copy link
Author

Ahh, you are right. Thank you for helping.!!

@salman01zp
Copy link
Author

CC: @mikelodder7

@mikelodder7
Copy link
Contributor

Ah thanks for the heads up. Just merged it and published 4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants