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 in compilation - simd v0.1.0 #12

Open
szagi3891 opened this issue Oct 11, 2015 · 4 comments
Open

Error in compilation - simd v0.1.0 #12

szagi3891 opened this issue Oct 11, 2015 · 4 comments

Comments

@szagi3891
Copy link

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
Copy link
Owner

huonw commented Oct 12, 2015

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
Copy link
Author

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
Copy link
Owner

huonw commented Oct 14, 2015

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
Copy link
Author

My platform : 32-bit x86 (debian 8).

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

2 participants