tvm
tvm copied to clipboard
[Bug] Build breaks with the latest dmlc revision
In file included from /wrkdirs/usr/ports/misc/tvm/work/tvm-0.16.0/src/meta_schedule/database/database.cc:20:
In file included from /wrkdirs/usr/ports/misc/tvm/work/tvm-0.16.0/src/meta_schedule/database/../utils.h:52:
/wrkdirs/usr/ports/misc/tvm/work/tvm-0.16.0/src/meta_schedule/database/../../support/base64.h:232:8: error: virtual function 'Write' has a different return type ('void') than the function it overrides (which has return type 'size_t' (aka 'unsigned long'))
void Write(const void* ptr, size_t size) final {
~~~~ ^
/usr/local/include/dmlc/io.h:45:18: note: overridden virtual function is here
virtual size_t Write(const void* ptr, size_t size) = 0;
~~~~~~ ^
2 errors generated.
you can change "void" to "size_t" and "return size" in changed function.
virtual void write(const void* ptr,size_t size)
{ ....}
size_t write(const void * ptr,size_t size)
{
....
return size;
}
I find these files needed fix:
- src/runtime/file_utils.h
- src/support/base64.h
- src/runtime/rpc/rpc_point.cc(rpc_socket_impl.cc)
- src/support/pipe.h