Hi tqchen, the error messages are basically a bunch of these:
In file included from /root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/io.h:445,
from /root/Downloads/tvm/include/tvm/runtime/module.h:11,
from /root/Downloads/tvm/include/tvm/runtime/packed_func.h:21,
from /root/Downloads/tvm/include/tvm/runtime/registry.h:30,
from /root/Downloads/tvm/include/tvm/base.h:15,
from /root/Downloads/tvm/include/tvm/api_registry.h:11,
from /root/Downloads/tvm/src/codegen/verilog/vpi_session.cc:6:
/root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/./serializer.h: In instantiation of ‘static void dmlc::serializer::IfThenElse<false, Then, Else, T>::Write(dmlc::Stream*, const T&) [with Then = dmlc::serializer::SaveLoadClassHandler<tvm::vpi::VPICallCode>; Else = dmlc::serializer::UndefinedSerializerFor<tvm::vpi::VPICallCode>; T = tvm::vpi::VPICallCode]’:
/root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/./serializer.h:63:16: recursively required from ‘static void dmlc::serializer::IfThenElse<false, Then, Else, T>::Write(dmlc::Stream*, const T&) [with Then = dmlc::serializer::NativePODHandler<tvm::vpi::VPICallCode>; Else = dmlc::serializer::IfThenElse<false, dmlc::serializer::SaveLoadClassHandler<tvm::vpi::VPICallCode>, dmlc::serializer::UndefinedSerializerFor<tvm::vpi::VPICallCode>, tvm::vpi::VPICallCode>; T = tvm::vpi::VPICallCode]’
/root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/./serializer.h:63:16: required from ‘static void dmlc::serializer::IfThenElse<false, Then, Else, T>::Write(dmlc::Stream*, const T&) [with Then = dmlc::serializer::ArithmeticHandler<tvm::vpi::VPICallCode>; Else = dmlc::serializer::IfThenElse<false, dmlc::serializer::NativePODHandler<tvm::vpi::VPICallCode>, dmlc::serializer::IfThenElse<false, dmlc::serializer::SaveLoadClassHandler<tvm::vpi::VPICallCode>, dmlc::serializer::UndefinedSerializerFor<tvm::vpi::VPICallCode>, tvm::vpi::VPICallCode>, tvm::vpi::VPICallCode>; T = tvm::vpi::VPICallCode]’
/root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/./serializer.h:275:16: required from ‘static void dmlc::serializer::Handler<T>::Write(dmlc::Stream*, const T&) [with T = tvm::vpi::VPICallCode]’
/root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/io.h:451:32: required from ‘void dmlc::Stream::Write(const T&) [with T = tvm::vpi::VPICallCode]’
/root/Downloads/tvm/src/codegen/verilog/vpi_session.cc:29:29: required from here
/root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/./serializer.h:63:16: error: ‘Write’ is not a member of ‘dmlc::serializer::UndefinedSerializerFor<tvm::vpi::VPICallCode>’
Else::Write(strm, data);
~~~~~~~~~~~^~~~~~~~~~~~
/root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/./serializer.h: In instantiation of ‘static bool dmlc::serializer::IfThenElse<false, Then, Else, T>::Read(dmlc::Stream*, T*) [with Then = dmlc::serializer::SaveLoadClassHandler<tvm::vpi::VPIReturnCode>; Else = dmlc::serializer::UndefinedSerializerFor<tvm::vpi::VPIReturnCode>; T = tvm::vpi::VPIReturnCode]’:
/root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/./serializer.h:66:22: recursively required from ‘static bool dmlc::serializer::IfThenElse<false, Then, Else, T>::Read(dmlc::Stream*, T*) [with Then = dmlc::serializer::NativePODHandler<tvm::vpi::VPIReturnCode>; Else = dmlc::serializer::IfThenElse<false, dmlc::serializer::SaveLoadClassHandler<tvm::vpi::VPIReturnCode>, dmlc::serializer::UndefinedSerializerFor<tvm::vpi::VPIReturnCode>, tvm::vpi::VPIReturnCode>; T = tvm::vpi::VPIReturnCode]’
/root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/./serializer.h:66:22: required from ‘static bool dmlc::serializer::IfThenElse<false, Then, Else, T>::Read(dmlc::Stream*, T*) [with Then = dmlc::serializer::ArithmeticHandler<tvm::vpi::VPIReturnCode>; Else = dmlc::serializer::IfThenElse<false, dmlc::serializer::NativePODHandler<tvm::vpi::VPIReturnCode>, dmlc::serializer::IfThenElse<false, dmlc::serializer::SaveLoadClassHandler<tvm::vpi::VPIReturnCode>, dmlc::serializer::UndefinedSerializerFor<tvm::vpi::VPIReturnCode>, tvm::vpi::VPIReturnCode>, tvm::vpi::VPIReturnCode>; T = tvm::vpi::VPIReturnCode]’
/root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/./serializer.h:294:11: required from ‘static bool dmlc::serializer::Handler<T>::Read(dmlc::Stream*, T*) [with T = tvm::vpi::VPIReturnCode]’
/root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/io.h:455:38: required from ‘bool dmlc::Stream::Read(T*) [with T = tvm::vpi::VPIReturnCode]’
/root/Downloads/tvm/src/codegen/verilog/vpi_session.cc:30:22: required from here
/root/Downloads/tvm/3rdparty/dmlc-core/include/dmlc/./serializer.h:66:22: error: ‘Read’ is not a member of ‘dmlc::serializer::UndefinedSerializerFor<tvm::vpi::VPIReturnCode>’
return Else::Read(strm, data);
~~~~~~~~~~^~~~~~~~~~~~