Issue 117855
Summary CMake 3.20.0 or higher is required. You are running version 3.16.3
Labels new issue
Assignees
Reporter ardeal
    Hi,

when I run the following command to build llvm, I got the following error.
My os is Ubuntu:
```C
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
```

```C
cmake -G Ninja ../llvm \
 -DLLVM_ENABLE_PROJECTS=mlir \
   -DLLVM_BUILD_EXAMPLES=ON \
 -DLLVM_TARGETS_TO_BUILD="Native;NVPTX;AMDGPU" \
 -DCMAKE_BUILD_TYPE=Release \
 -DLLVM_ENABLE_ASSERTIONS=ON
```


```C
CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
  CMake 3.20.0 or higher is required.  You are running version 3.16.3


-- Configuring incomplete, errors occurred!
See also "/root/data/code_python/llvm-project-main/build/CMakeFiles/CMakeOutput.log".
See also "/root/data/code_python/llvm-project-main/build/CMakeFiles/CMakeError.log".
```




_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to