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

fix build failure caused by stdsimd feature #724

Closed
wants to merge 3 commits into from

Conversation

wangkirin
Copy link

I try to build a crater service in our CI pipeline, and when I try to compile crater, error occurs:

error[E0635]: unknown feature `stdsimd`
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.6/src/lib.rs:99:42
   |
99 | #![cfg_attr(feature = "stdsimd", feature(stdsimd))]
   |                                          ^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `ahash` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

my rust verion is

rustc 1.78.0-nightly (3cbb93223 2024-03-13)
``` ,

I think this failure is caused by  the remove of `stdsimd` feature and the `ahash` package has already updated to fix it : https://github.com/tkaitchuck/aHash/pull/183

I run `cargo update -p ahash` to slove this and seems `crc32c`  has the similar problem

error[E0635]: unknown feature stdsimd
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crc32c-0.6.4/src/lib.rs:23:30
|
23 | #![cfg_attr(nightly, feature(stdsimd))]
| ^^^^^^^

For more information about this error, try rustc --explain E0635.
error: could not compile crc32c (lib) due to 1 previous error

after I run `cargo update -p crc32c`, the complie process is OK

this PR update the Cargo.lock to fix this issue

Signed-off-by: Wang Qilin <qilin.wang@huawei.com>
@wangkirin
Copy link
Author

just found there is a PR already in the list
so I closed this PR first

@wangkirin wangkirin closed this Mar 19, 2024
Signed-off-by: Wang Qilin <qilin.wang@huawei.com>
@wangkirin wangkirin closed this Mar 20, 2024
@wangkirin wangkirin deleted the fix_complie_failure branch March 25, 2024 07:49
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

Successfully merging this pull request may close these issues.

None yet

1 participant