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

"undefined symbol __atomic_compare_exchange" when compiled with clang. requires to be linked against "atomic" #75

Open
nwaniek opened this issue Jan 25, 2024 · 0 comments

Comments

@nwaniek
Copy link

nwaniek commented Jan 25, 2024

Installing giotto-ph from source and compiling with clang (version 16.0.6) yields "ImportError: /stash/gtda/giotto-ph/gph/modules/gph_ripser_coeff.cpython-311-x86_64-linux-gnu.so: undefined symbol: __atomic_compare_exchange" when trying to import gph_ripser.

The solution for clang is to add the atomic library in the linked libraries, e.g. like this: https://gist.github.com/nwaniek/eeff24b4048e34948104059550df6520

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

1 participant