Crttest failed, no rules to make the target "crttest"

os: ubuntu 18.04 cuda: cuda 10.0 gcc:7.5.0 clang:clang 10.0

tvm main branch at f952fa7806f3843266c2de1d5564aa04ed6249ed

build and install : 1.git clone --recursive https://github.com/apache/incubator-tvm.git tvm & cd tvm 2.mkdir build & cp cmake/config.cmake build & cd build 3. edit th config.cmake a. set(USE_CUDA OFF) to set(USE_CUDA OFF) b. set(USE_LLVM OFF) to set(USE_LLVM ON) 4. cmake … & make -j8 (no error no warning) 5.cd … & ./tests/scripts/task_cpp_unitstest.sh

the output is: – Build with RPC support… – Build with Graph runtime support… – VTA build with VTA_HW_PATH=/home/zhaozilong/thirdparty/tvm/3rdparty/vta-hw – Build VTA runtime with target: sim – Found CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda – Found CUDA_CUDA_LIBRARY=/usr/local/cuda/lib64/stubs/libcuda.so – Found CUDA_CUDART_LIBRARY=/usr/local/cuda/lib64/libcudart.so – Found CUDA_NVRTC_LIBRARY=/usr/local/cuda/lib64/libnvrtc.so – Found CUDA_CUDNN_LIBRARY=/usr/local/cuda/lib64/libcudnn.so – Found CUDA_CUBLAS_LIBRARY=/usr/local/cuda/lib64/libcublas.so – Found CUDA_CUBLASLT_LIBRARY=CUDA_CUBLASLT_LIBRARY-NOTFOUND – Build with CUDA support – Not found - LLVM_LIBS – Fall back to using llvm-config – Use llvm-config=/usr/lib/llvm-10/bin/llvm-config – Found LLVM_INCLUDE_DIRS=/usr/lib/llvm-10/include – Found LLVM_DEFINITIONS=-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS;-D_GNU_SOURCE;-D__STDC_CONSTANT_MACROS;-D__STDC_FORMAT_MACROS;-D__STDC_LIMIT_MACROS – Found LLVM_LIBS=/usr/lib/llvm-10/lib/libLLVM-10.so – Found TVM_LLVM_VERSION=100 – Build with LLVM 10.0.0 – Set TVM_LLVM_VERSION=100 – Build with contrib.random – Build with contrib.sort – Build with contrib.hybriddump – Git found: /usr/bin/git – Found TVM_GIT_COMMIT_HASH=f952fa7806f3843266c2de1d5564aa04ed6249ed – Building with TVM Map… – Build with thread support… – Configuring done – Generating done – Build files have been written to: /home/zhaozilong/thirdparty/tvm/build make[1]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[2]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[3]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 89%] Built target tvm_objs make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 89%] Built target tvm make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 90%] Linking CXX executable pattern_match_test [ 91%] Linking CXX executable utvm_runtime_standalone_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 91%] Built target utvm_runtime_standalone_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 92%] Linking CXX executable topi_ewise_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 92%] Built target pattern_match_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 93%] Linking CXX executable threading_backend_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 93%] Built target topi_ewise_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 93%] Linking CXX executable tensor_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 93%] Built target threading_backend_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 93%] Linking CXX executable target_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 93%] Built target tensor_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 93%] Linking CXX executable relay_transform_sequential_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 94%] Built target target_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 94%] Linking CXX executable relay_pass_type_infer_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 95%] Built target relay_transform_sequential_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 95%] Linking CXX executable relay_build_module_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 95%] Built target relay_pass_type_infer_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 95%] Built target tir_analysis_side_effect make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 95%] Linking CXX executable support_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 95%] Built target relay_build_module_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 95%] Linking CXX executable expr_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 95%] Built target support_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 95%] Linking CXX executable build_module_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 95%] Built target expr_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 95%] Linking CXX executable container_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 95%] Built target build_module_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 96%] Linking CXX executable ir_functor_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 97%] Built target container_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 97%] Linking CXX executable object_protocol_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 97%] Built target ir_functor_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 98%] Linking CXX executable packed_func_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 98%] Built target object_protocol_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 98%] Linking CXX executable attrs_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 98%] Built target packed_func_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 98%] Linking CXX executable parallel_for_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 98%] Built target attrs_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 98%] Linking CXX executable arith_simplify_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 98%] Built target parallel_for_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” [ 98%] Linking CXX executable auto_scheduler_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [ 98%] Built target arith_simplify_test make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [100%] Built target auto_scheduler_test make[4]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[4]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” [100%] Built target cpptest make[3]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[2]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” make[1]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” – Build with RPC support… – Build with Graph runtime support… – VTA build with VTA_HW_PATH=/home/zhaozilong/thirdparty/tvm/3rdparty/vta-hw – Build VTA runtime with target: sim – Found CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda – Found CUDA_CUDA_LIBRARY=/usr/local/cuda/lib64/stubs/libcuda.so – Found CUDA_CUDART_LIBRARY=/usr/local/cuda/lib64/libcudart.so – Found CUDA_NVRTC_LIBRARY=/usr/local/cuda/lib64/libnvrtc.so – Found CUDA_CUDNN_LIBRARY=/usr/local/cuda/lib64/libcudnn.so – Found CUDA_CUBLAS_LIBRARY=/usr/local/cuda/lib64/libcublas.so – Found CUDA_CUBLASLT_LIBRARY=CUDA_CUBLASLT_LIBRARY-NOTFOUND – Build with CUDA support – Not found - LLVM_LIBS – Fall back to using llvm-config – Use llvm-config=/usr/lib/llvm-10/bin/llvm-config – Found LLVM_INCLUDE_DIRS=/usr/lib/llvm-10/include – Found LLVM_DEFINITIONS=-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS;-D_GNU_SOURCE;-D__STDC_CONSTANT_MACROS;-D__STDC_FORMAT_MACROS;-D__STDC_LIMIT_MACROS – Found LLVM_LIBS=/usr/lib/llvm-10/lib/libLLVM-10.so – Found TVM_LLVM_VERSION=100 – Build with LLVM 10.0.0 – Set TVM_LLVM_VERSION=100 – Build with contrib.random – Build with contrib.sort – Build with contrib.hybriddump – Git found: /usr/bin/git – Found TVM_GIT_COMMIT_HASH=f952fa7806f3843266c2de1d5564aa04ed6249ed – Building with TVM Map… – Build with thread support… – Configuring done – Generating done – Build files have been written to: /home/zhaozilong/thirdparty/tvm/build make[1]: 进入目录“/home/zhaozilong/thirdparty/tvm/build” make[1]: *** 没有规则可制作目标“crttest”。 停止。 make[1]: 离开目录“/home/zhaozilong/thirdparty/tvm/build” Makefile:55: recipe for target ‘crttest’ failed make: *** [crttest] Error 2

Could somebody tell me why? What should I do to handle this?

hey @zhaozilongwhu, I think this is because you don’t have set(USE_MICRO ON) in your config.cmake. tests/scripts/task_config_build_cpu.sh turns this option on, which is why task_cpp_unittest.sh assumes that that target exists.

Andrew

1 Like

It worked! Thank you very much!