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

Python binding fails at runtime with undefined symbol when built with clang #79

Open
yurivict opened this issue May 31, 2022 · 0 comments

Comments

@yurivict
Copy link

The README example fails:

$ python3.8 ex.py
Traceback (most recent call last):
  File "ex.py", line 1, in <module>
    import jet
  File "/usr/local/lib/python3.8/site-packages/jet/__init__.py", line 6, in <module>
    from .bindings import (
ImportError: /usr/local/lib/python3.8/site-packages/jet/bindings.cpython-38.so: Undefined symbol "_ZN2tf11FlowBuilder6reduceINSt3__111__wrap_iterIPN3Jet6TensorINS2_7complexIfEEEEEESA_S8_ZNS4_19TaskBasedContractorIS8_E16AddReductionTaskEvEUlRKS8_SE_E_EENS_4TaskET_T0_RT1_T2_"

TaskFlow and pubind11 are cloned.

The problem only exists in clang build, and doesn't exist in gcc build.

Version: 0.2.2-2-g99c55ce
clang-13
FreeBSD 13.1

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