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

Compilation failure on latest nightly #203

Closed
theotherphil opened this issue Jan 22, 2019 · 2 comments
Closed

Compilation failure on latest nightly #203

theotherphil opened this issue Jan 22, 2019 · 2 comments

Comments

@theotherphil
Copy link

theotherphil commented Jan 22, 2019

Edit: I can build the crate directly, but compilation fails when I add this as a dependency of my crate.
Edit 2: Adding cfg-if = "0.1.6" to my crate's Cargo.toml fixes the build, but I'm not sure why I need to explicitly add the indirect dependency.

I'm using version 0.3.1, and the following rustc:

$ rustup default nightly
info: using existing install for 'nightly-x86_64-apple-darwin'
info: default toolchain set to 'nightly-x86_64-apple-darwin'

nightly-x86_64-apple-darwin unchanged - rustc 1.33.0-nightly (c76f3c374 2019-01-18)

This gives the following errors and then many many more:

$ cargo build
Blocking waiting for file lock on the registry index
Updating crates.io index
Downloaded packed_simd v0.3.1
Compiling packed_simd v0.3.1
error[E0432]: unresolved imports crate::codegen::pointer_sized_int::isize_, crate::codegen::pointer_sized_int::usize_
--> /Users/philip/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.1/src/codegen/vSize.rs:3:41
|
3 | use crate::codegen::pointer_sized_int::{isize_, usize_};
| ^^^^^^ ^^^^^^ no usize_ in codegen::pointer_sized_int
| |
| no isize_ in codegen::pointer_sized_int

error[E0432]: unresolved imports crate::codegen::pointer_sized_int::isize_, crate::codegen::pointer_sized_int::usize_
--> /Users/philip/.cargo/registry/src/github.com-1ecc6299db9ec823/packed_simd-0.3.1/src/vSize.rs:3:41
|
3 | use crate::codegen::pointer_sized_int::{isize_, usize_};
| ^^^^^^ ^^^^^^ no usize_ in codegen::pointer_sized_int
| |
| no isize_ in codegen::pointer_sized_int

@theotherphil theotherphil changed the title Fails to compile on latest nightly Compilation failure on latest nightly Jan 22, 2019
@gnzlbg
Copy link
Contributor

gnzlbg commented Jan 23, 2019

@theotherphil we are in the process of refactoring core::arch and std::detect in Rust upstream (rust-lang/rust#57808). Once that lands (hopefully today-tomorrow), new versions of stdsimd can be released, and packed_simd can be updated. Sorry for the downfall in the meantime.

@gnzlbg
Copy link
Contributor

gnzlbg commented Jan 31, 2019

I've released version 0.3.2 of packed_simd. Everything should work now. Please re-open this issue if that doesn't solve the problem for you.

@gnzlbg gnzlbg closed this as completed Jan 31, 2019
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

No branches or pull requests

2 participants