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

feature rdseed fails to build on x86 #43

Open
jonassmedegaard opened this issue Feb 5, 2023 · 2 comments
Open

feature rdseed fails to build on x86 #43

jonassmedegaard opened this issue Feb 5, 2023 · 2 comments

Comments

@jonassmedegaard
Copy link

Building feature rdseed or --all-features fails on 32-bit x86:

error[E0432]: unresolved import `core::arch::x86::_rdseed64_step`
  --> src/entropy.rs:58:6
   |
58 |     use core::arch::x86::_rdseed64_step as rdseed;
   |         ^^^^^^^^^^^^^^^^^--------------^^^^^^^^^^
   |         |                |
   |         |                help: a similar name exists in the module: `_rdseed16_step`
   |         no `_rdseed64_step` in `core_arch::arch::x86`
@jklott
Copy link
Contributor

jklott commented Feb 5, 2023

Does this happen even after

$ rustup target install i686-unknown-linux-gnu

$ cargo build --target=i686-unknown-linux-gnu

also of course make sure you have

$ sudo apt install gcc-multilib

@jonassmedegaard
Copy link
Author

It happens on official Debian builds, which uses neither rustup nor gcc-multilib.

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