huonw/simd

build fail with illegal ABI: platform-intrinsic

Closed this issue · 2 comments

git clone https://github.com/huonw/simd
cd simd
cargo build

yields:

src/lib.rs:169:8: 169:28 error: illegal ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found `platform-intrinsic`
src/lib.rs:169 extern "platform-intrinsic" {
                      ^~~~~~~~~~~~~~~~~~~~
src/x86/sse2.rs:9:8: 9:28 error: illegal ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found `platform-intrinsic`
src/x86/sse2.rs:9 extern "platform-intrinsic" {
                         ^~~~~~~~~~~~~~~~~~~~
src/x86/sse2.rs:18:8: 18:28 error: illegal ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found `platform-intrinsic`
src/x86/sse2.rs:18 extern "platform-intrinsic" {
                          ^~~~~~~~~~~~~~~~~~~~
src/x86/sse3.rs:4:8: 4:28 error: illegal ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found `platform-intrinsic`
src/x86/sse3.rs:4 extern "platform-intrinsic" {
                         ^~~~~~~~~~~~~~~~~~~~
src/x86/ssse3.rs:10:8: 10:28 error: illegal ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found `platform-intrinsic`
src/x86/ssse3.rs:10 extern "platform-intrinsic" {
                           ^~~~~~~~~~~~~~~~~~~~
src/x86/sse4_1.rs:5:8: 5:28 error: illegal ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found `platform-intrinsic`
src/x86/sse4_1.rs:5 extern "platform-intrinsic" {
                           ^~~~~~~~~~~~~~~~~~~~
src/x86/sse4_2.rs:4:8: 4:28 error: illegal ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found `platform-intrinsic`
src/x86/sse4_2.rs:4 extern "platform-intrinsic" {
                           ^~~~~~~~~~~~~~~~~~~~
src/x86/avx.rs:12:8: 12:28 error: illegal ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found `platform-intrinsic`
src/x86/avx.rs:12 extern "platform-intrinsic" {
                         ^~~~~~~~~~~~~~~~~~~~
src/x86/avx2.rs:4:8: 4:28 error: illegal ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found `platform-intrinsic`
src/x86/avx2.rs:4 extern "platform-intrinsic" {
                         ^~~~~~~~~~~~~~~~~~~~
src/arm/neon.rs:37:8: 37:28 error: illegal ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found `platform-intrinsic`
src/arm/neon.rs:37 extern "platform-intrinsic" {
                          ^~~~~~~~~~~~~~~~~~~~
src/aarch64/neon.rs:38:8: 38:28 error: illegal ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found `platform-intrinsic`
src/aarch64/neon.rs:38 extern "platform-intrinsic" {
                              ^~~~~~~~~~~~~~~~~~~~
error: aborting due to 11 previous errors
Could not compile `simd`.

my system

  • Ubuntu 14.04
  • x86_64
  • rustc 1.2.0
  • cargo 0.4.0-nightly

Thank you!

huonw commented

This crate only works with a nightly compiler, meaning 1.2.0 isn't appropriate and this behaviour is expected. You may be interested in https://github.com/brson/multirust to help juggle Rust versions.

Thanks for filing!

thank you for the very quick response!