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

Will fail to compile with cryptic error if __AVX2__ is defined but __BMI2__ is not #14

Open
pkit opened this issue Oct 3, 2022 · 0 comments · May be fixed by #15
Open

Will fail to compile with cryptic error if __AVX2__ is defined but __BMI2__ is not #14

pkit opened this issue Oct 3, 2022 · 0 comments · May be fixed by #15

Comments

@pkit
Copy link

pkit commented Oct 3, 2022

If compiled with clang -mavx2
The error is:

error: always_inline function '_pdep_u64' requires target feature 'bmi2', but would be inlined into function 'Deposit' that is compiled without support for 'bmi2'

Full list of the relevant flags:

/usr/bin/clang++ --target=x86_64-linux-gnu -mssse3 -msse4.1 -msse4.2 -mpclmul -mpopcnt -mavx2 -O2 -g -DNDEBUG -O3 -g -gdwarf-4
pkit added a commit to pkit/morton-nd that referenced this issue Oct 3, 2022
@pkit pkit linked a pull request Oct 3, 2022 that will close this issue
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