Skip to content

Fails to compile on aarch64-unknown-linux-gnu #405

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
dlrobertson opened this issue Mar 31, 2018 · 2 comments
Closed

Fails to compile on aarch64-unknown-linux-gnu #405

dlrobertson opened this issue Mar 31, 2018 · 2 comments

Comments

@dlrobertson
Copy link
Contributor

Currently this fails to compile on my RPi3 due to missing intrinsics.

Errors
error[E0432]: unresolved import `intrinsics::bitreverse`
  --> crates/coresimd/src/../../../coresimd/aarch64/v8.rs:29:9
   |
29 |     use intrinsics::bitreverse;
   |         ^^^^^^^^^^^^^^^^^^^^^^ no `bitreverse` in `intrinsics`

error[E0432]: unresolved import `intrinsics::bitreverse`
  --> crates/coresimd/src/../../../coresimd/arm/v7.rs:50:9
   |
50 |     use intrinsics::bitreverse;
   |         ^^^^^^^^^^^^^^^^^^^^^^ no `bitreverse` in `intrinsics`

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_add_unordered`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:35:5
   |
35 |     pub fn simd_reduce_add_unordered<T, U>(x: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_mul_unordered`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:36:5
   |
36 |     pub fn simd_reduce_mul_unordered<T, U>(x: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_add_ordered`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:37:5
   |
37 |     pub fn simd_reduce_add_ordered<T, U>(x: T, acc: U) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_mul_ordered`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:38:5
   |
38 |     pub fn simd_reduce_mul_ordered<T, U>(x: T, acc: U) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_min`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:39:5
   |
39 |     pub fn simd_reduce_min<T, U>(x: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_max`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:40:5
   |
40 |     pub fn simd_reduce_max<T, U>(x: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_min_nanless`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:41:5
   |
41 |     pub fn simd_reduce_min_nanless<T, U>(x: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_max_nanless`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:42:5
   |
42 |     pub fn simd_reduce_max_nanless<T, U>(x: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_and`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:43:5
   |
43 |     pub fn simd_reduce_and<T, U>(x: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_or`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:44:5
   |
44 |     pub fn simd_reduce_or<T, U>(x: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_xor`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:45:5
   |
45 |     pub fn simd_reduce_xor<T, U>(x: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_all`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:46:5
   |
46 |     pub fn simd_reduce_all<T>(x: T) -> bool;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0441]: unrecognized platform-specific intrinsic function: `simd_reduce_any`
  --> crates/coresimd/src/../../../coresimd/simd_llvm.rs:47:5
   |
47 |     pub fn simd_reduce_any<T>(x: T) -> bool;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 15 previous errors
@gnzlbg
Copy link
Contributor

gnzlbg commented Mar 31, 2018

Is this with the current nightly? Could you post which compiler version are you using?

@dlrobertson
Copy link
Contributor Author

Ah, good catch my nightly version was old due to another issue (see rust-lang/rustup#1383 (comment)). When using cargo +nightly-2018-03-26 build it compiles fine.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants