Skip to content

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

@yurivict

Description

@yurivict

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

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