Issue |
123669
|
Summary |
CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
|
Labels |
new issue
|
Assignees |
|
Reporter |
guimvmatos
|
I'm trying to install LLVM in docker as described [here](https://llvm.org/docs/Docker.html). But after the first command, I get the error below. How can I resolve this?
The command:
```
./llvm/utils/docker/build_docker_image.sh \
--source debian10 \
--docker-repository clang-debian10 --docker-tag "staging" \
-p clang -i install-clang -i install-clang-resource-headers \
-- \
-DCMAKE_BUILD_TYPE=Release
```
The output:
```
> [builder 9/9] RUN /tmp/scripts/build_install_llvm.sh --to /tmp/clang-install -i install-clang -i install-clang-resource-headers -- -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=clang:
0.394 /tmp/clang-build/build /
0.394 Running build
0.591 CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
0.591 CMake 3.20.0 or higher is required. You are running version 3.13.4
0.591
0.591
0.592 -- Configuring incomplete, errors occurred!
------
Dockerfile:41
--------------------
39 | # Run the build. Results of the build will be available at /tmp/clang-install/.
40 | ARG buildscript_args
41 | >>> RUN /tmp/scripts/build_install_llvm.sh --to /tmp/clang-install ${buildscript_args}
42 |
43 |
--------------------
ERROR: failed to solve: process "/bin/sh -c /tmp/scripts/build_install_llvm.sh --to /tmp/clang-install ${buildscript_args}" did not complete successfully: exit code: 1
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs