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 error[E0635]: unknown feature stdsimd #195

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

glenfletcher
Copy link

I received the following error when trying to build on Linux 6.6.10-1-MANJARO #1 SMP PREEMPT_DYNAMIC Fri Jan 5 17:38:36 UTC 2024 x86_64 GNU/Linux:

error[E0635]: unknown feature `stdsimd`
  --> /home/glen/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.3/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...
error: Recipe `build` failed on line 4 with exit code 101

After searching for this error, I found the following:
aHash issues: tkaitchuck/aHash#195 and tkaitchuck/aHash#200
rust-lang issues: https://users.rust-lang.org/t/error-e0635-unknown-feature-stdsimd/106445

Based on these, I used cargo tree -i ahash@0.7.6 to get the following:

ahash v0.7.6
├── hashbrown v0.11.2
│   └── lasso v0.5.1
│       └── grass v0.11.2
│           [build-dependencies]
│           └── celeste v0.8.1 (/home/glen/code/celeste)
├── sqlx-core v0.6.3
│   └── sqlx-macros v0.6.3 (proc-macro)
│       └── sqlx v0.6.3
│           ├── sea-orm v0.10.7
│           │   ├── celeste v0.8.1 (/home/glen/code/celeste)
│           │   └── sea-orm-migration v0.10.7
│           │       └── celeste v0.8.1 (/home/glen/code/celeste)
│           └── sea-query-binder v0.2.2
│               └── sea-orm v0.10.7 (*)
└── sqlx-core v0.6.3
    └── sqlx v0.6.3 (*)

Based on this, I updated the version of the grass and sea-orm dependencies and deleted Cargo.lock so it could be regenerated; this fixed the build error on my system.

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

2 participants