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

SIGILL on older x86_64 hardware #2017

Open
orlitzky opened this issue Oct 31, 2024 · 1 comment
Open

SIGILL on older x86_64 hardware #2017

orlitzky opened this issue Oct 31, 2024 · 1 comment
Assignees
Labels
Build enhancement New feature or request

Comments

@orlitzky
Copy link

I have an older x86_64 (Core 2 Duo) laptop that lacks the popcnt instruction. The check in CMakeLists.txt erroneously adds -mpopcnt to its compiler flags, and that eventually causes Illegal Instruction (SIGILL) crashes.

IIRC popcnt can be detected at runtime, and certainly at build time with a compile/run test. But it may be simpler these days to just trust that most people have -march=native in their CXXFLAGS when compiling locally.

@galabovaa
Copy link
Contributor

Thank you, this is a bit that's been needing revision but it got left further back on the to do list

@jajhall jajhall added enhancement New feature or request Build labels Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants