Skip to content

Instantly share code, notes, and snippets.

@aniljava
Created November 29, 2017 05:54
Show Gist options
  • Save aniljava/ab8404ff38828b7cf1ea7d2c5462f3ad to your computer and use it in GitHub Desktop.
Save aniljava/ab8404ff38828b7cf1ea7d2c5462f3ad to your computer and use it in GitHub Desktop.
Could not find `avx` in `x86`
# ./compile
   ...
   Compiling bytecount v0.2.0
   Compiling ripgrep v0.7.1 (file:///xxxx/ripgrep)
error[E0432]: unresolved import `simd::x86::avx`
  --> /xxxx/.cargo/registry/src/github.com-1ecc6299db9ec823/bytecount-0.2.0/src/lib.rs:15:16
   |
15 | use simd::x86::avx::{LowHigh128, u8x32};
   |                ^^^ Could not find `avx` in `x86`

error: aborting due to previous error

error: Could not compile `bytecount`.
warning: build failed, waiting for other jobs to finish...
error: build failed

edit ./compile file to remove avx-accel on processers without AVX support.

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