# TVM building issue on AArch64 architecture

**URL:** <https://discuss.tvm.apache.org/t/tvm-building-issue-on-aarch64-architecture/18779>\
**Category:** Questions\
**Created:** [November 25, 2025, 7:23am UTC](https://discuss.tvm.apache.org/t/tvm-building-issue-on-aarch64-architecture/18779 "2025-11-25T07:23:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@andy](https://discuss.tvm.apache.org/u/andy)\
**Post date:** [November 25, 2025, 7:23am UTC](https://discuss.tvm.apache.org/t/tvm-building-issue-on-aarch64-architecture/18779/1 "2025-11-25T07:23:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![alen](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/a/9dc877/32.png) [@alen](https://discuss.tvm.apache.org/u/alen)\
**Post date:** [November 28, 2025, 2:33am UTC](https://discuss.tvm.apache.org/t/tvm-building-issue-on-aarch64-architecture/18779/2 "2025-11-28T02:33:02Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![andy](https://discuss.tvm.apache.org/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@andy](https://discuss.tvm.apache.org/u/andy)\
**Post date:** [November 28, 2025, 6:47pm UTC](https://discuss.tvm.apache.org/t/tvm-building-issue-on-aarch64-architecture/18779/3 "2025-11-28T18:47:31Z")

</div>

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.
