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

Compile error due to missing instrinsic - fixed by update to bitintr 0.3.0 in Cargo.toml #24

Open
apps4uco opened this issue Aug 6, 2021 · 2 comments · May be fixed by #25
Open

Compile error due to missing instrinsic - fixed by update to bitintr 0.3.0 in Cargo.toml #24

apps4uco opened this issue Aug 6, 2021 · 2 comments · May be fixed by #25

Comments

@apps4uco
Copy link

apps4uco commented Aug 6, 2021

Problem:
error: unrecognized platform-specific intrinsic function: x86_bmi_bextr_32
src/x86/intrinsics/bmi/bextr.rs:11:9
|
11 | fn x86_bmi_bextr_32(x: u32, y: u32) -> u32;

Solution: update Cargo.toml to

[dependencies]
bitintr = "0.3"

unbrice added a commit to unbrice/bitwise that referenced this issue Oct 1, 2021
Fix gnzlbg#24 by upgrading bitintr to version 0.3 as @apps4uco  suggested.
@unbrice unbrice linked a pull request Oct 1, 2021 that will close this issue
@apps4uco
Copy link
Author

Hi there, by the way this also affects builds on Apple Mac Silicon M1 processor. Any chance it can be fixed on crates.io?

@apps4uco
Copy link
Author

apps4uco commented Dec 8, 2023

Hi, just a note for anyone encountering this. The workaround is to change your Cargo.toml adding the following, until the pull request is merged.

[dependencies]
bitwise = "0.2.0"

[patch.crates-io]
bitwise={git="https://github.com/unbrice/bitwise.git"}

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

Successfully merging a pull request may close this issue.

1 participant