TVM import errors on Redhat Enterprise Linux 7

HI all !

I’m trying to install tvm on Red Hat Enterprise Linux Server release 7.4 (Maipo) but I’m unsuccessful untill now.

Step 1: gcc [Success]

gcc --version

gcc (GCC) 10.2.0

Step 2: llvm [Success]

~/tools/llvm-6.0.0.src/build/bin/llvm-config  --version

6.0.0

Step 3: Build TVM: [Success]

[ 99%] Building CXX object CMakeFiles/tvm_topi.dir/topi/src/vision.cc.o

[100%] Linking CXX shared library libtvm_topi.so

[100%] Built target tvm_topi

Step 4: Test in Python [Fail]

>>> import tvm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/sr6/xx/tvm/python/tvm/__init__.py", line 25, in <module>
    from ._ffi.base import TVMError, __version__
  File "/home/sr6/xx/tvm/python/tvm/_ffi/__init__.py", line 28, in <module>
    from .base import register_error
  File "/home/sr6/xx/tvm/python/tvm/_ffi/base.py", line 62, in <module>
    _LIB, _LIB_NAME = _load_lib()
  File "/home/sr6/xx/tvm/_ffi/base.py", line 50, in _load_lib
    lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_GLOBAL)
  File "/Python-3.6.6/lib/python3.6/ctypes/__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/sr6/xx/tvm/build/libtvm.so: undefined symbol: _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev

nm …/build/libtvm.so | grep _ZNSt7__cxx1119b

   U _ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode
   U _ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev
   U _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev
   U _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev

Can you tell me that what is going on?

Does TVM have some issues to work on Redhat OS? @tqchen @merrymercy

[Sloved] Building TVM with gcc-7.5.0 and llvm-4.0.1 on RHEL7.4 works well.

Thank you all~