TVM building issue on AArch64 architecture

Ubuntu22, AArch64. gcc version is 12.3.0

Could anyone help me?

The error info when building: This warning is for project developers. Use -Wno-dev to suppress it.

– Found CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-12.2 – Found CUDA_CUDA_LIBRARY=/usr/local/cuda-12.2/lib64/stubs/libcuda.so – Found CUDA_CUDART_LIBRARY=/usr/local/cuda-12.2/lib64/libcudart.so – Found CUDA_NVRTC_LIBRARY=/usr/local/cuda-12.2/lib64/libnvrtc.so – Found CUDA_CUDNN_INCLUDE_DIRS= – Found CUDA_CUDNN_LIBRARY= – Found CUDA_CUBLAS_LIBRARY=/usr/local/cuda-12.2/lib64/libcublas.so – Found CUDA_CURAND_LIBRARY=/usr/local/cuda-12.2/lib64/libcurand.so – Found CUDA_CUBLASLT_LIBRARY=/usr/local/cuda-12.2/lib64/libcublasLt.so – Found CUDA_NVTX_LIBRARY=/usr/local/cuda-12.2/lib64/libnvToolsExt.so – Found CUDA_nvToolsExt_LIBRARY=/usr/local/cuda-12.2/lib64/libnvToolsExt.so – Build with CUDA 12.2 support CMake Error at /users/jinh326/anaconda3/envs/tvm17-build-venv/share/cmake-4.2/Modules/CMakeDetermineCompilerId.cmake:928 (message): Compiling the CUDA compiler identification source file “CMakeCUDACompilerId.cu” failed.

Compiler: /usr/local/cuda-12.2/bin/nvcc

Build flags:

Id flags: --keep;–keep-dir;tmp -v

The output was:

1

gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory

compilation terminated.

Hi, i had compiled the lastest TVM on aarch64 successfully, and it seems your g++ is not working properly(try g++ --version to make sure you have installed it, and use -DCMAKE_CXX_COMPILER=xxx to specify its path).

Thank you, Alen. But still could not work for me. g++ --version: 11.4.0 which g++: /usr/bin/g++

cmake .. -DCMAKE_CXX_COMPILER=/usr/bin/g++

Still the same error.