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

[bug] build fails after 'cargo update' #1845

Closed
JoeCap08055 opened this issue Jan 19, 2024 · 3 comments
Closed

[bug] build fails after 'cargo update' #1845

JoeCap08055 opened this issue Jan 19, 2024 · 3 comments

Comments

@JoeCap08055
Copy link
Collaborator

Recently, doing a cargo update results in the inability to build. The following error results:

error[E0658]: use of unstable library feature 'stdsimd'
   --> /Users/joecaputo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.7/src/operations.rs:124:24
    |
124 |     let res = unsafe { vaesmcq_u8(vaeseq_u8(transmute!(value), transmute!(0u128))) };
    |                        ^^^^^^^^^^
    |
    = note: see issue #48556 <https://github.com/rust-lang/rust/issues/48556> for more information

error[E0658]: use of unstable library feature 'stdsimd'
   --> /Users/joecaputo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.7/src/operations.rs:124:35
    |
124 |     let res = unsafe { vaesmcq_u8(vaeseq_u8(transmute!(value), transmute!(0u128))) };
    |                                   ^^^^^^^^^
    |
    = note: see issue #48556 <https://github.com/rust-lang/rust/issues/48556> for more information

error[E0658]: use of unstable library feature 'stdsimd'
   --> /Users/joecaputo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.7/src/operations.rs:154:24
    |
154 |     let res = unsafe { vaesimcq_u8(vaesdq_u8(transmute!(value), transmute!(0u128))) };
    |                        ^^^^^^^^^^^
    |
    = note: see issue #48556 <https://github.com/rust-lang/rust/issues/48556> for more information

error[E0658]: use of unstable library feature 'stdsimd'
   --> /Users/joecaputo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.7/src/operations.rs:154:36
    |
154 |     let res = unsafe { vaesimcq_u8(vaesdq_u8(transmute!(value), transmute!(0u128))) };
    |                                    ^^^^^^^^^
    |
    = note: see issue #48556 <https://github.com/rust-lang/rust/issues/48556> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `ahash` (lib) due to 4 previous errors

The error seems to be due to the upgrade of package ahash (a transitive dependency in both polkadot-sdk and one or two other packages) from version 0.8.6 -> 0.8.7.
Interestingly, the git repo for ahash show 0.8.5 as the latest release tag or branch; but crates.io has both 0.8.6 and 0.8.7; not sure how they got there.

@p5150j p5150j added discussion Topic for Discussion at a Community Call tech-debt labels Jan 24, 2024
@wilwade
Copy link
Collaborator

wilwade commented Feb 14, 2024

@JoeCap08055 Did this get resolved?

@wilwade wilwade removed the discussion Topic for Discussion at a Community Call label Feb 14, 2024
@JoeCap08055
Copy link
Collaborator Author

@JoeCap08055 Did this get resolved?

Not fixed yet, but

error: package `clap_lex v0.7.0` cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version is 1.70.0
Either upgrade to rustc 1.74 or newer, or use
cargo update -p clap_lex@0.7.0 --precise ver
where `ver` is the latest version of `clap_lex` supporting rustc 1.70.0
make: *** [build] Error 101

I can put up a PR to fix this new issue, but then the original issue still remains.

@JoeCap08055
Copy link
Collaborator Author

JoeCap08055 commented Feb 20, 2024

Fixed by:
tkaitchuck/aHash#207, tkaitchuck/aHash#208

Apparently was only broken for MacOS/ARM builds.

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

No branches or pull requests

3 participants