Skip to content

undefined symbol: _ZNK4sycl3_V16detail12buffer_plain13handleReleaseEv #1190

Closed
@fcharras

Description

@fcharras

Trying to build dpctl==0.14.3dev1 after activating latest 2023.1.0 oneapi basekit release (using official online installer https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7deeaac4-f605-4bcf-a81b-ea7531577c61 )

It builds successfully but then I can't import dpctl.tensor module:

  File "/root/sklearn-numba-dpex/benchmark/./kmeans.py", line 260, in <module>
    from sklearn_numba_dpex.kmeans.engine import KMeansEngine
  File "/root/sklearn-numba-dpex/sklearn_numba_dpex/kmeans/engine.py", line 7, in <module>
    import dpctl.tensor as dpt
  File "/opt/venv/lib/python3.9/site-packages/dpctl/tensor/__init__.py", line 24, in <module>
    from dpctl.tensor._copy_utils import asnumpy, astype, copy, from_numpy, to_numpy
  File "/opt/venv/lib/python3.9/site-packages/dpctl/tensor/_copy_utils.py", line 24, in <module>
    import dpctl.tensor._tensor_impl as ti
ImportError: /opt/venv/lib/python3.9/site-packages/dpctl/tensor/_tensor_impl.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZNK4sycl3_V16detail12buffer_plain13handleReleaseEv

Using ld on said file shows a lot of undefined symbols:

ld: warning: cannot find entry symbol _start; not setting start address
ld: _tensor_impl.cpython-39-x86_64-linux-gnu.so: undefined reference to `_Py_Dealloc'
ld: _tensor_impl.cpython-39-x86_64-linux-gnu.so: undefined reference to `PyUnicode_AsUTF8String'
ld: _tensor_impl.cpython-39-x86_64-linux-gnu.so: undefined reference to `PyEval_GetBuiltins'
ld: _tensor_impl.cpython-39-x86_64-linux-gnu.so: undefined reference to `PyExc_ValueError'
ld: _tensor_impl.cpython-39-x86_64-linux-gnu.so: undefined reference to `PyModule_Create2'
ld: _tensor_impl.cpython-39-x86_64-linux-gnu.so: undefined reference to `PyByteArray_Type'
ld: _tensor_impl.cpython-39-x86_64-linux-gnu.so: undefined reference to `PyCapsule_GetName'
ld: _tensor_impl.cpython-39-x86_64-linux-gnu.so: undefined reference to `_Py_FalseStruct'
ld: _tensor_impl.cpython-39-x86_64-linux-gnu.so: undefined reference to `PyImport_ImportModule'
ld: _tensor_impl.cpython-39-x86_64-linux-gnu.so: undefined reference to `PyExc_OverflowError'
ld: _tensor_impl.cpython-39-x86_64-linux-gnu.so: undefined reference to `PyComplex_AsCComplex'
...
... (more undefined symbols) ...
...

is there a recent change in the build recipe that could explain this issue ?

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