kamathhrishi commented on issue #4940: Build issues URL: https://github.com/apache/incubator-tvm/issues/4940#issuecomment-591081176 Further ```[ 87%] Building CXX object CMakeFiles/tvm.dir/src/runtime/rpc/rpc_device_api.cc.o [ 87%] Building CXX object CMakeFiles/tvm.dir/src/runtime/rpc/rpc_event_impl.cc.o [ 87%] Building CXX object CMakeFiles/tvm.dir/src/runtime/rpc/rpc_module.cc.o [ 88%] Building CXX object CMakeFiles/tvm.dir/src/runtime/rpc/rpc_server_env.cc.o [ 88%] Building CXX object CMakeFiles/tvm.dir/src/runtime/rpc/rpc_session.cc.o [ 88%] Building CXX object CMakeFiles/tvm.dir/src/runtime/rpc/rpc_socket_impl.cc.o [ 89%] Building CXX object CMakeFiles/tvm.dir/src/runtime/graph/graph_runtime.cc.o [ 89%] Building CXX object CMakeFiles/tvm.dir/src/runtime/sgx/untrusted/sgx_module.cc.o /home/hrishikesh/tvm/src/runtime/sgx/untrusted/sgx_module.cc:123:14: error: ‘tvm::runtime::PackedFunc tvm::runtime::SGXModuleNode::GetFunction(const string&, const std::shared_ptr<tvm::runtime::ModuleNode>&)’ marked ‘final’, but is not virtual PackedFunc GetFunction( ^~~~~~~~~~~ /home/hrishikesh/tvm/src/runtime/sgx/untrusted/sgx_module.cc: In lambda function: /home/hrishikesh/tvm/src/runtime/sgx/untrusted/sgx_module.cc:250:29: error: no matching function for call to ‘tvm::runtime::Module::Module(std::shared_ptr<tvm::runtime::SGXModuleNode>&)’ *rv = runtime::Module(node); ^ In file included from /home/hrishikesh/tvm/include/tvm/runtime/packed_func.h:32:0, from /home/hrishikesh/tvm/include/tvm/runtime/device_api.h:28, from /home/hrishikesh/tvm/src/runtime/sgx/untrusted/sgx_module.cc:27: /home/hrishikesh/tvm/include/tvm/runtime/module.h:53:12: note: candidate: tvm::runtime::Module::Module(tvm::runtime::ObjectPtr<tvm::runtime::Object>) explicit Module(ObjectPtr<Object> n) ^~~~~~ /home/hrishikesh/tvm/include/tvm/runtime/module.h:53:12: note: no known conversion for argument 1 from ‘std::shared_ptr<tvm::runtime::SGXModuleNode>’ to ‘tvm::runtime::ObjectPtr<tvm::runtime::Object>’ /home/hrishikesh/tvm/include/tvm/runtime/module.h:51:3: note: candidate: tvm::runtime::Module::Module() Module() {} ^~~~~~ /home/hrishikesh/tvm/include/tvm/runtime/module.h:51:3: note: candidate expects 0 arguments, 1 provided /home/hrishikesh/tvm/include/tvm/runtime/module.h:49:7: note: candidate: tvm::runtime::Module::Module(const tvm::runtime::Module&) class Module : public ObjectRef { ^~~~~~ /home/hrishikesh/tvm/include/tvm/runtime/module.h:49:7: note: no known conversion for argument 1 from ‘std::shared_ptr<tvm::runtime::SGXModuleNode>’ to ‘const tvm::runtime::Module&’ /home/hrishikesh/tvm/include/tvm/runtime/module.h:49:7: note: candidate: tvm::runtime::Module::Module(tvm::runtime::Module&&) /home/hrishikesh/tvm/include/tvm/runtime/module.h:49:7: note: no known conversion for argument 1 from ‘std::shared_ptr<tvm::runtime::SGXModuleNode>’ to ‘tvm::runtime::Module&&’ In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33:0, from /usr/include/c++/7/bits/allocator.h:46, from /usr/include/c++/7/string:41, from /home/hrishikesh/tvm/3rdparty/dmlc-core/include/dmlc/logging.h:12, from /home/hrishikesh/tvm/src/runtime/sgx/untrusted/sgx_module.cc:24: /usr/include/c++/7/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = tvm::runtime::SGXModuleNode; _Args = {}; _Tp = tvm::runtime::SGXModuleNode]’: /usr/include/c++/7/bits/alloc_traits.h:475:4: required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = tvm::runtime::SGXModuleNode; _Args = {}; _Tp = tvm::runtime::SGXModuleNode; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<tvm::runtime::SGXModuleNode>]’ /usr/include/c++/7/bits/shared_ptr_base.h:526:39: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {}; _Tp = tvm::runtime::SGXModuleNode; _Alloc = std::allocator<tvm::runtime::SGXModuleNode>; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’ /usr/include/c++/7/bits/shared_ptr_base.h:637:4: required from ‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = tvm::runtime::SGXModuleNode; _Alloc = std::allocator<tvm::runtime::SGXModuleNode>; _Args = {}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’ /usr/include/c++/7/bits/shared_ptr_base.h:1295:35: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<tvm::runtime::SGXModuleNode>; _Args = {}; _Tp = tvm::runtime::SGXModuleNode; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’ /usr/include/c++/7/bits/shared_ptr.h:344:64: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<tvm::runtime::SGXModuleNode>; _Args = {}; _Tp = tvm::runtime::SGXModuleNode]’ /usr/include/c++/7/bits/shared_ptr.h:690:14: required from ‘std::shared_ptr<_Tp> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = tvm::runtime::SGXModuleNode; _Alloc = std::allocator<tvm::runtime::SGXModuleNode>; _Args = {}]’ /usr/include/c++/7/bits/shared_ptr.h:706:39: required from ‘std::shared_ptr<_Tp> std::make_shared(_Args&& ...) [with _Tp = tvm::runtime::SGXModuleNode; _Args = {}]’ /home/hrishikesh/tvm/src/runtime/sgx/untrusted/sgx_module.cc:248:73: required from here /usr/include/c++/7/ext/new_allocator.h:136:4: error: invalid new-expression of abstract class type ‘tvm::runtime::SGXModuleNode’ { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hrishikesh/tvm/src/runtime/sgx/untrusted/sgx_module.cc:78:7: note: because the following virtual functions are pure within ‘tvm::runtime::SGXModuleNode’: class SGXModuleNode : public ModuleNode { ^~~~~~~~~~~~~ In file included from /home/hrishikesh/tvm/include/tvm/runtime/packed_func.h:32:0, from /home/hrishikesh/tvm/include/tvm/runtime/device_api.h:28, from /home/hrishikesh/tvm/src/runtime/sgx/untrusted/sgx_module.cc:27: /home/hrishikesh/tvm/include/tvm/runtime/module.h:140:22: note: virtual tvm::runtime::PackedFunc tvm::runtime::ModuleNode::GetFunction(const string&, const tvm::runtime::ObjectPtr<tvm::runtime::Object>&) virtual PackedFunc GetFunction( ^~~~~~~~~~~ CMakeFiles/tvm.dir/build.make:6422: recipe for target 'CMakeFiles/tvm.dir/src/runtime/sgx/untrusted/sgx_module.cc.o' failed make[2]: *** [CMakeFiles/tvm.dir/src/runtime/sgx/untrusted/sgx_module.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:210: recipe for target 'CMakeFiles/tvm.dir/all' failed make[1]: *** [CMakeFiles/tvm.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 ```
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services