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

error: could not compile packed_simd_2 (lib) due to 6 previous errors #116137

Closed
AlyHamdyIbrahim opened this issue Sep 25, 2023 · 12 comments
Closed

Comments

@AlyHamdyIbrahim
Copy link

AlyHamdyIbrahim commented Sep 25, 2023

I am using microsoft/Spartan and when building the following errors occur:

Compiling packed_simd_2 v0.3.8
error: unrecognized platform-specific intrinsic function: simd_shuffle2
--> /home/aly/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd_2-0.3.8/src/codegen/llvm.rs:10:5
|
10 | pub fn simd_shuffle2<T, U>(x: T, y: T, idx: [u32; 2]) -> U;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: unrecognized platform-specific intrinsic function: simd_shuffle4
--> /home/aly/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd_2-0.3.8/src/codegen/llvm.rs:11:5
|
11 | pub fn simd_shuffle4<T, U>(x: T, y: T, idx: [u32; 4]) -> U;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: unrecognized platform-specific intrinsic function: simd_shuffle8
--> /home/aly/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd_2-0.3.8/src/codegen/llvm.rs:12:5
|
12 | pub fn simd_shuffle8<T, U>(x: T, y: T, idx: [u32; 8]) -> U;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: unrecognized platform-specific intrinsic function: simd_shuffle16
--> /home/aly/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd_2-0.3.8/src/codegen/llvm.rs:13:5
|
13 | pub fn simd_shuffle16<T, U>(x: T, y: T, idx: [u32; 16]) -> U;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: unrecognized platform-specific intrinsic function: simd_shuffle32
--> /home/aly/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd_2-0.3.8/src/codegen/llvm.rs:14:5
|
14 | pub fn simd_shuffle32<T, U>(x: T, y: T, idx: [u32; 32]) -> U;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: unrecognized platform-specific intrinsic function: simd_shuffle64
--> /home/aly/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd_2-0.3.8/src/codegen/llvm.rs:15:5
|
15 | pub fn simd_shuffle64<T, U>(x: T, y: T, idx: [u32; 64]) -> U;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: could not compile packed_simd_2 (lib) due to 6 previous errors

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Sep 25, 2023
@Noratrieb
Copy link
Member

are you on the latest nightly?

@AlyHamdyIbrahim
Copy link
Author

are you on the latest nightly?

yes, I am on rustc 1.74.0-nightly (37390d6 2023-09-24)

@Noratrieb
Copy link
Member

are you on the latest packed_simd version? you probably need to update

@AlyHamdyIbrahim
Copy link
Author

are you on the latest packed_simd version? you probably need to update

yes, I am on packed_simd_2 0.3.8

@Noratrieb
Copy link
Member

you need to use https://crates.io/crates/packed_simd

@saethlin saethlin removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Sep 25, 2023
@Forpee
Copy link

Forpee commented Dec 3, 2023

I am getting same issue

@Noratrieb
Copy link
Member

you need to use https://crates.io/crates/packed_simd

also remember to update the crate

@mati865
Copy link
Contributor

mati865 commented Dec 3, 2023

Shouldn't this issue be closed?
OP used outdated crate depending on unstable features so there is no action to perform on the compiler's side.

@Noratrieb
Copy link
Member

right, yes

@vitonol
Copy link

vitonol commented Dec 28, 2023

I am also getting this error when trying to install surge-synthesizer dependency

@Noratrieb
Copy link
Member

you need to use https://crates.io/crates/packed_simd

see this

@Noratrieb Noratrieb closed this as not planned Won't fix, can't repro, duplicate, stale Dec 28, 2023
@Noratrieb
Copy link
Member

Or no, you should probably just use std::simd instead.

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

7 participants