Tvmai/ci-cpu does not have ANTLR installed


#1

Hi I’m trying to use the prebuilt docker image to build TVM. If I enable ANTLR(which is set for Jenkins), it failed to find ANTLR lib.

ubuntu:~/workspace/tvm$ sudo docker/bash.sh tvmai/ci-cpu ./tests/scripts/task_build.sh build -j2
WORKSPACE: /home/ubuntu/workspace/tvm
DOCKER CONTAINER NAME: tvmai/ci-cpu

Running './tests/scripts/task_build.sh build -j2' inside tvmai/ci-cpu...
docker
mesg: ttyname failed: Inappropriate ioctl for device
root:x:0:
root:x:0:0:root:/root:/bin/bash
-- Build with RPC support...
-- Build with Graph runtime support...
-- Build VTA runtime with target: sim
CMake Error at cmake/modules/ANTLR.cmake:12 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:188 (include)

Then I tried to find ANTLR lib in the docker image, but it doesn’t exist:

ubuntu@:~/workspace/tvm$ sudo docker/bash.sh tvmai/ci-cpu
WORKSPACE: /home/ubuntu/workspace/tvm
DOCKER CONTAINER NAME: tvmai/ci-cpu

Running 'bash' inside tvmai/ci-cpu...
docker
root:x:0:
root:x:0:0:root:/root:/bin/bash
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

root@:~# ls /usr/local/lib/
ocaml  python2.7  python3.5  python3.6

Verified in multiple EC2 instances, all failed. Anything wrong here? @tqchen


#2

Was due to tvmai/ci-cpu 's version, the latest should already have resolved the problem