Skip to content

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

@nwaniek

Description

@nwaniek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions