Compile failed when building kafka-protocol
iamazy opened this issue · 1 comments
iamazy commented
I want to bump kafka-protocol to 0.10 in kafkas , but compiled failed on MacOS M1.
error message as follows:
Compiling flate2 v1.0.28
Compiling snap v1.1.1
Compiling url v2.5.0
error[E0658]: use of unstable library feature 'stdsimd'
--> /Users/xxx/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/crc32c-0.6.5/src/hw_aarch64.rs:50:33
|
50 | .fold(crc, |crc, &next| simd::__crc32cb(crc, next))
| ^^^^^^^^^^^^^^^
|
= 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'
--> /Users/xxx/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/crc32c-0.6.5/src/hw_aarch64.rs:62:5
|
62 | simd::__crc32cd(crc, next)
| ^^^^^^^^^^^^^^^
|
= 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_arm_crc32`
--> /Users/xxx/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/crc32c-0.6.5/src/lib.rs:23:60
|
23 | #![cfg_attr(all(target_arch = "aarch64", nightly), feature(stdarch_arm_crc32))]
| ^^^^^^^^^^^^^^^^^
Some errors have detailed explanations: E0635, E0658.
For more information about an error, try `rustc --explain E0635`.
error: could not compile `crc32c` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
How to fix this error?
Thanks!
iamazy commented
The problem is solved by switching toolchain to stable