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

asm compilation error on aarch64/s390x/ppc64le #65

Closed
luizirber opened this issue Mar 20, 2021 · 0 comments · Fixed by #66
Closed

asm compilation error on aarch64/s390x/ppc64le #65

luizirber opened this issue Mar 20, 2021 · 0 comments · Fixed by #66

Comments

@luizirber
Copy link
Contributor

Hi!

Today I published two Rust packages mentioned in #61 to crates.io:
https://crates.io/crates/bitmagic
https://crates.io/crates/bitmagic-sys
(let me know if you want to be added as owner, BTW).

I'm using these packages in sourmash-bio/sourmash#1221, and the detail is that we build Python wheels (the binary format for Python packages) for the manylinux-supported platforms: aarch64, s390x and ppc64le. But, when I tried to build the wheels, compilation failed with errors in

asm volatile("cpuid" : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) : "a" (1));
like

impossible constraint in 'asm':
     asm volatile("cpuid" : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) : "a" (1));

I'm adding CI to test in these platforms in https://github.com/luizirber/bitmagic-rs/, and here is a similar error log:
https://github.com/luizirber/bitmagic-rs/pull/2/checks?check_run_id=2153526751#step:4:435

Considering the surrounding code, it is failing due to none of these platforms having SIMD, which makes sense, but... I don't know how to disable these checks in the places I can control externally (cmake defines). Any tips/suggestions on how to achieve that?

Thanks!

P.S: saying "we don't support these platforms" is totally fine too, I kind of started building s390x and ppc64le wheels just because I tested it once and it worked for sourmash at that point. I do know about some ppc64le users, but the benefits we get from bitmagic are way too good and are making me considering dropping them.

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