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

generic-simd feature fails to build on nightly #91

Closed
ytmimi opened this issue Apr 8, 2024 · 0 comments · Fixed by #92
Closed

generic-simd feature fails to build on nightly #91

ytmimi opened this issue Apr 8, 2024 · 0 comments · Fixed by #92

Comments

@ytmimi
Copy link
Contributor

ytmimi commented Apr 8, 2024

The crate fails to build when using the generic-simd feature.

running cargo +nightly-2024-04-08 build -F generic-simd produces compilation errors:

Error Output
error[E0557]: feature has been removed
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/lib.rs:218:5
    |
218 |     platform_intrinsics,
    |     ^^^^^^^^^^^^^^^^^^^ feature has been removed
    |
    = note: SIMD intrinsics use the regular intrinsics ABI now

error[E0703]: invalid ABI: found `platform-intrinsic`
 --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:8:8
  |
8 | extern "platform-intrinsic" {
  |        ^^^^^^^^^^^^^^^^^^^^ invalid ABI
  |
  = note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.

error[E0703]: invalid ABI: found `platform-intrinsic`
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:72:8
   |
72 | extern "platform-intrinsic" {
   |        ^^^^^^^^^^^^^^^^^^^^ invalid ABI
   |
   = note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions.

error[E0635]: unknown feature `stdsimd`
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/lib.rs:219:5
    |
219 |     stdsimd,
    |     ^^^^^^^

error[E0044]: foreign items may not have type parameters
 --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:9:5
  |
9 |     fn simd_shuffle<T, I, U>(x: T, y: T, idx: I) -> U;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
  |
  = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:73:5
   |
73 |     pub(crate) fn simd_eq<T, U>(x: T, y: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:74:5
   |
74 |     pub(crate) fn simd_ne<T, U>(x: T, y: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:75:5
   |
75 |     pub(crate) fn simd_lt<T, U>(x: T, y: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:76:5
   |
76 |     pub(crate) fn simd_le<T, U>(x: T, y: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:77:5
   |
77 |     pub(crate) fn simd_gt<T, U>(x: T, y: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:78:5
   |
78 |     pub(crate) fn simd_ge<T, U>(x: T, y: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:80:5
   |
80 |     pub(crate) fn simd_insert<T, U>(x: T, idx: u32, val: U) -> T;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:81:5
   |
81 |     pub(crate) fn simd_extract<T, U>(x: T, idx: u32) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:83:5
   |
83 |     pub(crate) fn simd_cast<T, U>(x: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:85:5
   |
85 |     pub(crate) fn simd_add<T>(x: T, y: T) -> T;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:86:5
   |
86 |     pub(crate) fn simd_sub<T>(x: T, y: T) -> T;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:87:5
   |
87 |     pub(crate) fn simd_mul<T>(x: T, y: T) -> T;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:88:5
   |
88 |     pub(crate) fn simd_div<T>(x: T, y: T) -> T;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:89:5
   |
89 |     pub(crate) fn simd_rem<T>(x: T, y: T) -> T;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:90:5
   |
90 |     pub(crate) fn simd_shl<T>(x: T, y: T) -> T;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:91:5
   |
91 |     pub(crate) fn simd_shr<T>(x: T, y: T) -> T;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:92:5
   |
92 |     pub(crate) fn simd_and<T>(x: T, y: T) -> T;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:93:5
   |
93 |     pub(crate) fn simd_or<T>(x: T, y: T) -> T;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:94:5
   |
94 |     pub(crate) fn simd_xor<T>(x: T, y: T) -> T;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:96:5
   |
96 |     pub(crate) fn simd_reduce_add_unordered<T, U>(x: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:97:5
   |
97 |     pub(crate) fn simd_reduce_mul_unordered<T, U>(x: T) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:98:5
   |
98 |     pub(crate) fn simd_reduce_add_ordered<T, U>(x: T, acc: U) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
  --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:99:5
   |
99 |     pub(crate) fn simd_reduce_mul_ordered<T, U>(x: T, acc: U) -> U;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
   |
   = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:100:5
    |
100 |     pub(crate) fn simd_reduce_min<T, U>(x: T) -> U;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:101:5
    |
101 |     pub(crate) fn simd_reduce_max<T, U>(x: T) -> U;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:102:5
    |
102 |     pub(crate) fn simd_reduce_min_nanless<T, U>(x: T) -> U;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:103:5
    |
103 |     pub(crate) fn simd_reduce_max_nanless<T, U>(x: T) -> U;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:104:5
    |
104 |     pub(crate) fn simd_reduce_and<T, U>(x: T) -> U;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:105:5
    |
105 |     pub(crate) fn simd_reduce_or<T, U>(x: T) -> U;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:106:5
    |
106 |     pub(crate) fn simd_reduce_xor<T, U>(x: T) -> U;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:107:5
    |
107 |     pub(crate) fn simd_reduce_all<T>(x: T) -> bool;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:108:5
    |
108 |     pub(crate) fn simd_reduce_any<T>(x: T) -> bool;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:110:5
    |
110 |     pub(crate) fn simd_select<M, T>(m: M, a: T, b: T) -> T;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:112:5
    |
112 |     pub(crate) fn simd_fmin<T>(a: T, b: T) -> T;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:113:5
    |
113 |     pub(crate) fn simd_fmax<T>(a: T, b: T) -> T;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:115:5
    |
115 |     pub(crate) fn simd_fsqrt<T>(a: T) -> T;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:116:5
    |
116 |     pub(crate) fn simd_fma<T>(a: T, b: T, c: T) -> T;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:118:5
    |
118 |     pub(crate) fn simd_gather<T, P, M>(value: T, pointers: P, mask: M) -> T;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:119:5
    |
119 |     pub(crate) fn simd_scatter<T, P, M>(value: T, pointers: P, mask: M);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`

error[E0044]: foreign items may not have type parameters
   --> /Users/ytmimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd-0.3.9/src/codegen/llvm.rs:121:5
    |
121 |     pub(crate) fn simd_bitmask<T, U>(value: T) -> U;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type parameters
    |
    = help: replace the type parameters with concrete types like `u32`


Here's the version of cargo that I'm using: cargo +nightly-2024-04-08 -Vv

cargo 1.79.0-nightly (28e7b2bc0 2024-04-05)
release: 1.79.0-nightly
commit-hash: 28e7b2bc0a812f90126be30f48a00a4ada990eaa
commit-date: 2024-04-05
host: aarch64-apple-darwin
libgit2: 1.7.2 (sys:0.18.3 vendored)
libcurl: 7.79.1 (sys:0.4.72+curl-8.6.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 3.2.1 30 Jan 2024
os: Mac OS 12.6.0 [64-bit]

I believe this is related to rust-lang/packed_simd#360

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

Successfully merging a pull request may close this issue.

1 participant