calebzulawski / fourier

Fast Fourier transforms (FFTs) in Rust
Apache License 2.0
238 stars 20 forks source link

Failed to `cargo build` because of multiversion version mismatch #15

Closed bluenote10 closed 4 years ago

bluenote10 commented 4 years ago

Not sure if that is something with my setup (did a rustup yesterday), but when I clone this repo and do cargo build, I'm getting:

    Updating crates.io index
    Updating git repository `http://github.com/calebzulawski/multiversion`
error: failed to select a version for the requirement `multiversion = "^0.3"`
  candidate versions found which didn't match: 0.5.0
  location searched: Git repository http://github.com/calebzulawski/multiversion
required by package `fourier-algorithms v0.1.0 (/tmp/fourier/fourier-algorithms)`

The dependency is specified as:

multiversion = { git = "http://github.com/calebzulawski/multiversion", version = "0.3", default-features = false }

I've seen that multiversion has just been updated. Is it possible that cargo fails to handle the git tags somehow? If I remove the version specification it works fine.

calebzulawski commented 4 years ago

Thanks for the report. Cargo definitely doesn't use the version field to determine tags, so it's using master which as you noted has been updated. I don't remember why I switched to pulling from git, but the current work for the next release is in the feature/safe-simd branch, which is on multiversion 0.5.0.

I'll leave this issue open until I either merge that branch to master or otherwise fix it.

abryrath commented 4 years ago

When I checkout the feature/safe-simd branch, I still cannot compile/run tests.

Compiling fourier-algorithms v0.1.0 (/Users/abryrath/Code/rust/fourier/fourier-algorithms) error[E0432]: unresolved importsgeneric_simd::vector::Handle,generic_simd::vector::SizedHandle` --> fourier-algorithms/src/autosort/butterfly.rs:2:44 2 use generic_simd::vector::{width, Complex, Handle, SizedHandle, Vector}; ^^^^^^ ^^^^^^^^^^^ no SizedHandle in vector
no Handle in vector
error[E0432]: unresolved imports generic_simd::vector::Handle, generic_simd::vector::SizedHandle --> fourier-algorithms/src/autosort/mod.rs:14:44 14 use generic_simd::vector::{width, Complex, Handle, SizedHandle, Vector}; ^^^^^^ ^^^^^^^^^^^ no SizedHandle in vector
no Handle in vector
warning: unused import: Vector --> fourier-algorithms/src/autosort/mod.rs:14:65 14 use generic_simd::vector::{width, Complex, Handle, SizedHandle, Vector}; ^^^^^^

= note: #[warn(unused_imports)] on by default

error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try rustc --explain E0432. error: could not compile fourier-algorithms.

To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error[E0432]: unresolved imports generic_simd::vector::Handle, generic_simd::vector::SizedHandle --> fourier-algorithms/src/autosort/butterfly.rs:2:44 2 use generic_simd::vector::{width, Complex, Handle, SizedHandle, Vector}; ^^^^^^ ^^^^^^^^^^^ no SizedHandle in vector
no Handle in vector
error[E0432]: unresolved imports generic_simd::vector::Handle, generic_simd::vector::SizedHandle --> fourier-algorithms/src/autosort/mod.rs:14:44 14 use generic_simd::vector::{width, Complex, Handle, SizedHandle, Vector}; ^^^^^^ ^^^^^^^^^^^ no SizedHandle in vector
no Handle in vector
warning: unused import: Vector --> fourier-algorithms/src/autosort/mod.rs:14:65 14 use generic_simd::vector::{width, Complex, Handle, SizedHandle, Vector}; ^^^^^^

= note: #[warn(unused_imports)] on by default

error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try rustc --explain E0432. error: build failed`

calebzulawski commented 4 years ago

Sorry, I've made significant changes to my SIMD crate and wasn't pinned to a particular git hash. Squaring this away is my top priority with Fourier right now.

calebzulawski commented 4 years ago

Master should build now, as of 5c996842f1da263e12c0d19c510b858af2f4ac15.

The feature/safe-simd branch should also build, but it may fail intermittently as I work on it.