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

problem compiling Keysas library unstable #53

Closed
Thibautdbr opened this issue Feb 6, 2024 · 3 comments
Closed

problem compiling Keysas library unstable #53

Thibautdbr opened this issue Feb 6, 2024 · 3 comments
Assignees

Comments

@Thibautdbr
Copy link

Good morning,
I have already managed to install keysas on debian 12 in the past, I wanted to try again but when compiling Keysas just after cloning the gitlab repository I was given this error:

error[E0658]: use of unstable library feature 'stdarch_x86_avx512'
--> /root/.cargo/git/checkouts/curve25519-dalek-f168a129bf9b4917/1087aed/curve25519-dalek/src/backend/vector/ifma/field.rs:26:5
|
26 | _mm256_madd52lo_epu64(z.into(), x.into(), y.into()).into()
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #111137 rust-lang/rust#111137 for more information
= help: add #![feature(stdarch_x86_avx512)] to the crate attributes to enable
= note: this compiler was built on 2024-02-05; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'stdarch_x86_avx512'
--> /root/.cargo/git/checkouts/curve25519-dalek-f168a129bf9b4917/1087aed/curve25519-dalek/src/backend/vector/ifma/field.rs:25:9
|
25 | use core::arch::x86_64::_mm256_madd52lo_epu64;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #111137 rust-lang/rust#111137 for more information
= help: add #![feature(stdarch_x86_avx512)] to the crate attributes to enable
= note: this compiler was built on 2024-02-05; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'stdarch_x86_avx512'
--> /root/.cargo/git/checkouts/curve25519-dalek-f168a129bf9b4917/1087aed/curve25519-dalek/src/backend/vector/ifma/field.rs:34:5
|
34 | _mm256_madd52hi_epu64(z.into(), x.into(), y.into()).into()
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #111137 rust-lang/rust#111137 for more information
= help: add #![feature(stdarch_x86_avx512)] to the crate attributes to enable
= note: this compiler was built on 2024-02-05; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'stdarch_x86_avx512'
--> /root/.cargo/git/checkouts/curve25519-dalek-f168a129bf9b4917/1087aed/curve25519-dalek/src/backend/vector/ifma/field.rs:33:9
|
33 | use core::arch::x86_64::_mm256_madd52hi_epu64;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #111137 rust-lang/rust#111137 for more information
= help: add #![feature(stdarch_x86_avx512)] to the crate attributes to enable
= note: this compiler was built on 2024-02-05; consider upgrading it if it is out of date

error[E0635]: unknown feature stdsimd
--> /root/.cargo/git/checkouts/curve25519-dalek-f168a129bf9b4917/1087aed/curve25519-dalek/src/lib.rs:13:70
|
13 | #![cfg_attr(all(curve25519_dalek_backend = "simd", nightly), feature(stdsimd))]
| ^^^^^^^

Some errors have detailed explanations: E0635, E0658.
For more information about an error, try rustc --explain E0635.
error: could not compile curve25519-dalek (lib) due to 5 previous errors

so I wanted to add #![feature(stdarch_x86_avx512)] at the beginning of the .rs files but nothing works, I still have the same error. Could you help me resolve this issue please.

@r3dlight
Copy link
Owner

r3dlight commented Feb 7, 2024

Hi,

First, you should clone the Develop branch as the master branch is getting outdated.
Then, try this :
rustup update && cargo update
and finally
make build

Keep me in touch

@r3dlight r3dlight self-assigned this Feb 7, 2024
@Thibautdbr
Copy link
Author

good evening, there was a problem with the new version curve25519-dalek updated on February 5, 2004, so I installed the old version of nightly and it worked
rustup install nightly-2024-02-03
rustup default nightly-2024-02-03
. See you later to find a stable solution for the new version of curve25519-dalek.
Thank you for your help

@r3dlight
Copy link
Owner

r3dlight commented Feb 9, 2024

Hi,

Curve25519-dalek has been patched to address this issue.
No needs to install an older version of the compiler, a simple "cargo update" should be sufficient.
Cheers

@r3dlight r3dlight closed this as completed Feb 9, 2024
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

2 participants