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

Unable to natively compile as target-cpu=native on aarch64 ( AWS c6g ) #12

Closed
ribasushi opened this issue Jul 4, 2020 · 2 comments
Closed

Comments

@ribasushi
Copy link

Hi!

According to the history and the library CI aarch64 should be fully supported. Yet:

~$ uname -a
Linux ip-172-31-25-117 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:14:47 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
~$ rustc --version
rustc 1.46.0-nightly (f844ea1e5 2020-07-03)
~$ RUSTFLAGS="-C target-cpu=native -g" make ...

...

   Compiling bitintr v0.3.0
error[E0658]: use of unstable library feature 'stdsimd'
  --> {{redacted}}/.cargo/registry/src/github.com-1ecc6299db9ec823/bitintr-0.3.0/src/lib.rs:28:13
   |
28 |     pub use core::arch::aarch64::*;
   |             ^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #27731 <https://github.com/rust-lang/rust/issues/27731> for more information

error: aborting due to previous error

What am I missing / doing wrong?

@ribasushi
Copy link
Author

The offending code is here: https://github.com/gnzlbg/bitintr/blob/6c49e0139280/src/lib.rs#L12-L29

  • line 13 pulls in stdsimd
  • line 28 bombs with "I don't have that"

Google does not turn up anything even remotely relevant. Worse: the tests for this very crate seem to work on aarch64: https://github.com/gnzlbg/bitintr/blob/6c49e0139280/.travis.yml#L19

Clearly something subtle-yet-dumb...

@ribasushi
Copy link
Author

Apologies for the noise: the culprit was a build system explicitly ignoring the default toolchain for a portion of the compilation. This library kept being ran against stable i stead of nightly.

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

1 participant