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

"ld-linux-x86-64.so.2 --help" doesn't work in some distros #196

Open
gitterdude opened this issue Nov 29, 2024 · 1 comment
Open

"ld-linux-x86-64.so.2 --help" doesn't work in some distros #196

gitterdude opened this issue Nov 29, 2024 · 1 comment

Comments

@gitterdude
Copy link

trunk/waftools/cpu_optimization.py in 0.46+ usesld-linux-x86-64.so.2 --help to determine if the CPU can use x86-64-v3 or not.
This gives the error "--help: error while loading shared libraries: --help: cannot open shared object file" on some distros.

A more universal way (for Linux anyway) could be to check if /proc/cpuinfo has "avx2" or not (taken from the x86-64-level tool at https://github.com/HenrikBengtsson/x86-64-level/blob/develop/x86-64-level)

@brummer10
Copy link
Owner

Yep, on the Ratatouille project I'm using the cpu flags to get the supported optimisation level, I was just to lazy to implement it here.
I'll take this issue as a reminder.

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