Zhiwei35 opened a new issue, #11284:
URL: https://github.com/apache/tvm/issues/11284

   hi, I am new to tvm. I was **building tvm with llvm 6.0 or 7.0 targeting 
intel CPU and no error occurred in "make" cmd**, my OS is **centos7**, but 
**when I typed “import tvm”, error occurred**:
   ```
   Python 3.7.13 
   [GCC 7.5.0] :: Anaconda, Inc. on linux
   Type "help", "copyright", "credits" or "license" for more information.
   import tvm
   Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
   File "/home/zxxx/tvm/python/tvm/__init__.py", line 26, in <module>
   from ._ffi.base import TVMError, __version__, _RUNTIME_ONLY
   File "/home/xxx/tvm/python/tvm/_ffi/__init__.py", line 28, in <module>
       from .base import register_error
   File "/home/xxx/tvm/python/tvm/_ffi/base.py", line 71, in <module>
      _LIB, _LIB_NAME = _load_lib()
   File "/home/xxx/tvm/python/tvm/_ffi/base.py", line 57, in _load_lib
       lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_GLOBAL)
   File "/home/xxx/miniconda3/envs/xxx/lib/python3.7/ctypes/__init__.py", line 
364, in __init__
       self._handle = _dlopen(self._name, mode)
   OSError: /home/xxx/tvm/build/libtvm.so: undefined symbol: 
_ZNKSt3__114error_category10equivalentERKNS_10error_codeEi
   ```
   BTW, when **I build tvm without llvm, the import is well**. Did i use wrong 
llvm pre-built binary?I used * [SuSE Linux Enterprise Server 11SP3 
x86_64](https://releases.llvm.org/6.0.1/clang+llvm-6.0.1-x86_64-linux-sles11.3.tar.xz)
 
[(.sig)](https://releases.llvm.org/6.0.1/clang+llvm-6.0.1-x86_64-linux-sles11.3.tar.xz.sig)
   
   Anybody can help me? Thanks for your time!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to