rust-lang / packed_simd

Portable Packed SIMD Vectors for Rust standard library
https://rust-lang.github.io/packed_simd/packed_simd_2/
Apache License 2.0
597 stars 74 forks source link

crates.io build fail on Rust Nightly #304

Closed k-stanislawek closed 4 years ago

k-stanislawek commented 4 years ago

Latest version published to crates.io (0.3.3) fails build on today's & yesterday's (2020-10-04 & 03) nightly. It can be checked by building a sample project that has dependency on it. Or like this:

ks-w540: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.3 $ cargo build --verbose
       Fresh cfg-if v0.1.10
   Compiling packed_simd v0.3.3 (/home/ks/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.3)
     Running `rustc --crate-name packed_simd --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' -C metadata=3722ef6eaaab1956 -C extra-filename=-3722ef6eaaab1956 --out-dir /home/ks/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.3/target/debug/deps -C incremental=/home/ks/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.3/target/debug/incremental -L dependency=/home/ks/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.3/target/debug/deps --extern cfg_if=/home/ks/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.3/target/debug/deps/libcfg_if-b00c34326580381c.rmeta`
error[E0432]: unresolved import `crate::arch::x86_64::_mm_movemask_pi8`
  --> src/codegen/reductions/mask/x86/sse.rs:47:21
   |
47 |                 use crate::arch::x86_64::_mm_movemask_pi8;
   |                     ^^^^^^^^^^^^^^^^^^^^^----------------
   |                     |                    |
   |                     |                    help: a similar name exists in the module: `_mm_movemask_epi8`
   |                     no `_mm_movemask_pi8` in `arch::x86_64`
   | 
  ::: src/codegen/reductions/mask.rs:41:1
   |
41 | impl_mask_reductions!(m8x8);
   | ---------------------------- in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0432]: unresolved import `crate::arch::x86_64::_mm_movemask_pi8`
  --> src/codegen/reductions/mask/x86/sse.rs:62:21
   |
62 |                 use crate::arch::x86_64::_mm_movemask_pi8;
   |                     ^^^^^^^^^^^^^^^^^^^^^----------------
   |                     |                    |
   |                     |                    help: a similar name exists in the module: `_mm_movemask_epi8`
   |                     no `_mm_movemask_pi8` in `arch::x86_64`
   | 
  ::: src/codegen/reductions/mask.rs:41:1
   |
41 | impl_mask_reductions!(m8x8);
   | ---------------------------- in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0432]: unresolved import `crate::arch::x86_64::_mm_movemask_pi8`
  --> src/codegen/reductions/mask/x86/sse.rs:47:21
   |
47 |                 use crate::arch::x86_64::_mm_movemask_pi8;
   |                     ^^^^^^^^^^^^^^^^^^^^^----------------
   |                     |                    |
   |                     |                    help: a similar name exists in the module: `_mm_movemask_epi8`
   |                     no `_mm_movemask_pi8` in `arch::x86_64`
   | 
  ::: src/codegen/reductions/mask.rs:47:1
   |
47 | impl_mask_reductions!(m16x4);
   | ----------------------------- in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0432]: unresolved import `crate::arch::x86_64::_mm_movemask_pi8`
  --> src/codegen/reductions/mask/x86/sse.rs:62:21
   |
62 |                 use crate::arch::x86_64::_mm_movemask_pi8;
   |                     ^^^^^^^^^^^^^^^^^^^^^----------------
   |                     |                    |
   |                     |                    help: a similar name exists in the module: `_mm_movemask_epi8`
   |                     no `_mm_movemask_pi8` in `arch::x86_64`
   | 
  ::: src/codegen/reductions/mask.rs:47:1
   |
47 | impl_mask_reductions!(m16x4);
   | ----------------------------- in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0432]: unresolved import `crate::arch::x86_64::_mm_movemask_pi8`
  --> src/codegen/reductions/mask/x86/sse.rs:47:21
   |
47 |                 use crate::arch::x86_64::_mm_movemask_pi8;
   |                     ^^^^^^^^^^^^^^^^^^^^^----------------
   |                     |                    |
   |                     |                    help: a similar name exists in the module: `_mm_movemask_epi8`
   |                     no `_mm_movemask_pi8` in `arch::x86_64`
   | 
  ::: src/codegen/reductions/mask.rs:52:1
   |
52 | impl_mask_reductions!(m32x2);
   | ----------------------------- in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0432]: unresolved import `crate::arch::x86_64::_mm_movemask_pi8`
  --> src/codegen/reductions/mask/x86/sse.rs:62:21
   |
62 |                 use crate::arch::x86_64::_mm_movemask_pi8;
   |                     ^^^^^^^^^^^^^^^^^^^^^----------------
   |                     |                    |
   |                     |                    help: a similar name exists in the module: `_mm_movemask_epi8`
   |                     no `_mm_movemask_pi8` in `arch::x86_64`
   | 
  ::: src/codegen/reductions/mask.rs:52:1
   |
52 | impl_mask_reductions!(m32x2);
   | ----------------------------- in this macro invocation
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 6 previous errors

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

Caused by:
  process didn't exit successfully: `rustc --crate-name packed_simd --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' -C metadata=3722ef6eaaab1956 -C extra-filename=-3722ef6eaaab1956 --out-dir /home/ks/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.3/target/debug/deps -C incremental=/home/ks/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.3/target/debug/incremental -L dependency=/home/ks/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.3/target/debug/deps --extern cfg_if=/home/ks/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.3/target/debug/deps/libcfg_if-b00c34326580381c.rmeta` (exit code: 1)
ks-w540: ~/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.3 $ rustc --version
rustc 1.49.0-nightly (25c8c53dd 2020-10-03)
Lokathor commented 4 years ago

We cannot publish another version to the packed_simd crate itself. We lack the crates.io permissions. The original maintainer is out of contact.

If you adjust your dependency entry like this it should pick up the crate we published under an alternative name, which should build.

packed_simd = { version = "0.3.4", package = "packed_simd_2" }
k-stanislawek commented 4 years ago

Thanks! I've solved my problem: It was a transitive dependency Parquet, but its latest version was already fixed.

k-stanislawek commented 4 years ago

I'd suggest adding a note to the readme.md.

Lokathor commented 4 years ago

yep, just been quite busy lately. opened https://github.com/rust-lang/packed_simd/pull/305