[Android RPC] Stability Issues

Hi @FrozenGene In order to use mater branch tvm runtime(with Asymmetric padding (#4511)), so I try to build latest cpp_rpc (master branch) , but failed

main.cc:34:10: fatal error: '../../src/common/util.h' file not found
#include "../../src/common/util.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
rpc_env.cc:39:10: fatal error: '../../src/common/util.h' file not found
#include "../../src/common/util.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from rpc_server.cc:39:
./rpc_tracker_client.h:35:10: fatal error: '../../src/common/socket.h' file not found
#include "../../src/common/socket.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Makefile:49: recipe for target 'tvm_rpc' failed
make: *** [tvm_rpc] Error 1

after cp tvm 0.6.0 src/common to master and build

rpc_env.cc:167:28: error: use of undeclared identifier 'support'
    auto executed_status = support::Execute(cmd, &err_msg);
                           ^
rpc_env.cc:198:7: error: use of undeclared identifier 'support'
  if (support::EndsWith(file, ".so")) {
      ^
rpc_env.cc:204:9: error: use of undeclared identifier 'support'
    if (support::EndsWith(file, ".o")) {
        ^
rpc_env.cc:208:16: error: use of undeclared identifier 'support'
    } else if (support::EndsWith(file, ".tar")) {
               ^
rpc_env.cc:213:29: error: use of undeclared identifier 'support'
      int executed_status = support::Execute(cmd, &err_msg);
                            ^
5 errors generated.
In file included from rpc_server.cc:39:
./rpc_tracker_client.h:135:35: error: no type named 'TCPSocket' in namespace 'tvm::support'; did you mean 'common::TCPSocket'?
  void WaitConnectionAndUpdateKey(support::TCPSocket listen_sock,
                                  ^~~~~~~~~~~~~~~~~~
                                  common::TCPSocket
./../../src/common/socket.h:374:7: note: 'common::TCPSocket' declared here
class TCPSocket : public Socket {
      ^
In file included from rpc_server.cc:39:
./rpc_tracker_client.h:192:3: error: no type named 'TCPSocket' in namespace 'tvm::support'; did you mean 'common::TCPSocket'?
  support::TCPSocket ConnectWithRetry(int timeout = 60, int retry_period = 5) {
  ^~~~~~~~~~~~~~~~~~
  common::TCPSocket
./../../src/common/socket.h:374:7: note: 'common::TCPSocket' declared here
class TCPSocket : public Socket {
      ^
In file included from rpc_server.cc:39:
./rpc_tracker_client.h:238:3: error: no type named 'TCPSocket' in namespace 'tvm::support'; did you mean 'common::TCPSocket'?
  support::TCPSocket tracker_sock_;
  ^~~~~~~~~~~~~~~~~~
  common::TCPSocket
./../../src/common/socket.h:374:7: note: 'common::TCPSocket' declared here
class TCPSocket : public Socket {
      ^
In file included from rpc_server.cc:39:
./rpc_tracker_client.h:143:29: error: use of undeclared identifier 'poller'; did you mean 'poll'?
        support::PollHelper poller;
                            ^~~~~~
                            poll
/home/xj-zjd/work_space/self_work/tvm_code/android-toolchain-arm64-r18b/bin/../sysroot/usr/include/poll.h:41:5: note: 'poll' declared here
int poll(struct pollfd* __fds, nfds_t __count, int __timeout_ms);
    ^
In file included from rpc_server.cc:39:
./rpc_tracker_client.h:143:28: error: expected ';' after expression
        support::PollHelper poller;
                           ^
                           ;
./rpc_tracker_client.h:143:18: error: no member named 'PollHelper' in namespace 'tvm::support'
        support::PollHelper poller;
        ~~~~~~~~~^
./rpc_tracker_client.h:144:9: error: use of undeclared identifier 'poller'; did you mean 'poll'?
        poller.WatchRead(listen_sock.sockfd);
        ^~~~~~
        poll
/home/xj-zjd/work_space/self_work/tvm_code/android-toolchain-arm64-r18b/bin/../sysroot/usr/include/poll.h:41:5: note: 'poll' declared here
int poll(struct pollfd* __fds, nfds_t __count, int __timeout_ms);
    ^
In file included from rpc_server.cc:39:
./rpc_tracker_client.h:144:15: error: member reference base type 'int (struct pollfd *, nfds_t, int)' (aka 'int (pollfd *, unsigned int, int)') is not a structure or union
        poller.WatchRead(listen_sock.sockfd);
        ~~~~~~^~~~~~~~~~
./rpc_tracker_client.h:145:9: error: use of undeclared identifier 'poller'; did you mean 'poll'?
        poller.Poll(ping_period * 1000);
        ^~~~~~
        poll
/home/xj-zjd/work_space/self_work/tvm_code/android-toolchain-arm64-r18b/bin/../sysroot/usr/include/poll.h:41:5: note: 'poll' declared here
int poll(struct pollfd* __fds, nfds_t __count, int __timeout_ms);
    ^
In file included from rpc_server.cc:39:
./rpc_tracker_client.h:145:15: error: member reference base type 'int (struct pollfd *, nfds_t, int)' (aka 'int (pollfd *, unsigned int, int)') is not a structure or union
        poller.Poll(ping_period * 1000);
        ~~~~~~^~~~~
./rpc_tracker_client.h:146:14: error: use of undeclared identifier 'poller'
        if (!poller.CheckRead(listen_sock.sockfd)) {
             ^
./rpc_tracker_client.h:143:29: warning: expression result unused [-Wunused-value]
        support::PollHelper poller;
                            ^~~~~~
./rpc_tracker_client.h:195:24: error: expected ';' after expression
      support::SockAddr addr(tracker_addr_);
                       ^
                       ;
./rpc_tracker_client.h:195:16: error: no member named 'SockAddr' in namespace 'tvm::support'
      support::SockAddr addr(tracker_addr_);
      ~~~~~~~~~^
./rpc_tracker_client.h:195:25: error: use of undeclared identifier 'addr'
      support::SockAddr addr(tracker_addr_);
                        ^
./rpc_tracker_client.h:196:7: error: no type named 'TCPSocket' in namespace 'tvm::support'; did you mean 'common::TCPSocket'?
      support::TCPSocket sock;
      ^~~~~~~~~~~~~~~~~~
      common::TCPSocket
./../../src/common/socket.h:374:7: note: 'common::TCPSocket' declared here
class TCPSocket : public Socket {
      ^
In file included from rpc_server.cc:39:
./rpc_tracker_client.h:198:48: error: use of undeclared identifier 'addr'
      LOG(INFO) << "Tracker connecting to " << addr.AsString();
                                               ^
./rpc_tracker_client.h:199:24: error: use of undeclared identifier 'addr'
      if (sock.Connect(addr)) {
                       ^
./rpc_tracker_client.h:205:67: error: use of undeclared identifier 'addr'
      CHECK(period < timeout) << "Failed to connect to server" << addr.AsString();
                                                                  ^
./rpc_tracker_client.h:206:55: error: use of undeclared identifier 'addr'
      LOG(WARNING) << "Cannot connect to tracker " << addr.AsString()
                                                      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
Makefile:49: recipe for target 'tvm_rpc' failed
make: *** [tvm_rpc] Error 1

when will you update the cpp_rpc code to fix this?