Error in compilation - simd v0.1.0
szagi3891 opened this issue · 4 comments
szagi3891 commented
I tried to run this library and i got an error compilation :
Compiling simd v0.1.0 (https://github.com/huonw/simd#be424212)
Running `rustc /home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/lib.rs --crate-name simd --crate-type lib -g -C metadata=8818301eefd37519 -C extra-filename=-8818301eefd37519 --out-dir /home/grzegorz/Pulpit/rust_server/coio-test/target/debug/deps --emit=dep-info,link -L dependency=/home/grzegorz/Pulpit/rust_server/coio-test/target/debug/deps -L dependency=/home/grzegorz/Pulpit/rust_server/coio-test/target/debug/deps -Awarnings`
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/lib.rs:169:8: 169:28 error: invalid ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found platform-intrinsic
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/lib.rs:169 extern "platform-intrinsic" {
^~~~~~~~~~~~~~~~~~~~
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/sse2.rs:9:8: 9:28 error: invalid ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found platform-intrinsic
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/sse2.rs:9 extern "platform-intrinsic" {
^~~~~~~~~~~~~~~~~~~~
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/sse2.rs:18:8: 18:28 error: invalid ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found platform-intrinsic
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/sse2.rs:18 extern "platform-intrinsic" {
^~~~~~~~~~~~~~~~~~~~
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/sse3.rs:4:8: 4:28 error: invalid ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found platform-intrinsic
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/sse3.rs:4 extern "platform-intrinsic" {
^~~~~~~~~~~~~~~~~~~~
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/ssse3.rs:10:8: 10:28 error: invalid ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found platform-intrinsic
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/ssse3.rs:10 extern "platform-intrinsic" {
^~~~~~~~~~~~~~~~~~~~
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/sse4_1.rs:5:8: 5:28 error: invalid ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found platform-intrinsic
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/sse4_1.rs:5 extern "platform-intrinsic" {
^~~~~~~~~~~~~~~~~~~~
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/sse4_2.rs:4:8: 4:28 error: invalid ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found platform-intrinsic
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/sse4_2.rs:4 extern "platform-intrinsic" {
^~~~~~~~~~~~~~~~~~~~
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/avx.rs:12:8: 12:28 error: invalid ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found platform-intrinsic
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/avx.rs:12 extern "platform-intrinsic" {
^~~~~~~~~~~~~~~~~~~~
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/avx2.rs:4:8: 4:28 error: invalid ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found platform-intrinsic
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/x86/avx2.rs:4 extern "platform-intrinsic" {
^~~~~~~~~~~~~~~~~~~~
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/arm/neon.rs:37:8: 37:28 error: invalid ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found platform-intrinsic
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/arm/neon.rs:37 extern "platform-intrinsic" {
^~~~~~~~~~~~~~~~~~~~
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/aarch64/neon.rs:38:8: 38:28 error: invalid ABI: expected one of [cdecl, stdcall, fastcall, aapcs, win64, Rust, C, system, rust-intrinsic, rust-call], found platform-intrinsic
/home/grzegorz/.cargo/git/checkouts/simd-2a4f7a7525648cf1/master/src/aarch64/neon.rs:38 extern "platform-intrinsic" {
^~~~~~~~~~~~~~~~~~~~
error: aborting due to 11 previous errors
please help :)
huonw commented
It looks like you're using an old compiler version, what does rustc --version
say?
This crate needs a relatively recent nightly (in last month or so).
szagi3891 commented
This error appeared in version 1.3
I updated rustc to version :
rustc 1.5.0-nightly (9d3e79ad3 2015-10-10)
I getting an error :
src/common.rs:16:5: 16:22 error: unresolved import `x86::sse2::common`. Could not find `sse2` in `x86` [E0432]
src/common.rs:16 use x86::sse2::common;
^~~~~~~~~~~~~~~~~
src/common.rs:16:5: 16:22 help: run `rustc --explain E0432` to see a detailed explanation
error: aborting due to previous error
Could not compile `simd`.
To learn more, run the command again with --verbose.
grzegorz@grzegorz:~/Pulpit/rust_server/simd$ cargo build --verbose
Compiling simd v0.1.0 (file:///home/grzegorz/Pulpit/rust_server/simd)
Running `rustc src/lib.rs --crate-name simd --crate-type lib -g --out-dir /home/grzegorz/Pulpit/rust_server/simd/target/debug --emit=dep-info,link -L dependency=/home/grzegorz/Pulpit/rust_server/simd/target/debug -L dependency=/home/grzegorz/Pulpit/rust_server/simd/target/debug/deps`
src/common.rs:16:5: 16:22 error: unresolved import `x86::sse2::common`. Could not find `sse2` in `x86` [E0432]
src/common.rs:16 use x86::sse2::common;
^~~~~~~~~~~~~~~~~
src/common.rs:16:5: 16:22 help: run `rustc --explain E0432` to see a detailed explanation
error: aborting due to previous error
Could not compile `simd`.
Caused by:
Process didn't exit successfully: `rustc src/lib.rs --crate-name simd --crate-type lib -g --out-dir /home/grzegorz/Pulpit/rust_server/simd/target/debug --emit=dep-info,link -L dependency=/home/grzegorz/Pulpit/rust_server/simd/target/debug -L dependency=/home/grzegorz/Pulpit/rust_server/simd/target/debug/deps` (exit code: 101)
huonw commented
What platform are you on? It looks like it might be a 32-bit x86 one, in which case SSE2 isn't automatically supported and there's (unfortunately) no easy way to enable it. One way I know of and use is to have a shell script like
#!/bin/bassh
rustc -C target-feature=+sse2 "$@"
and then invoke cargo like RUSTC=path/to/that/script cargo build
.
(BTW, if you put ``` on the line before and after your error messages they will be formatted much better on github.)
szagi3891 commented
My platform : 32-bit x86 (debian 8).