<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/123669>123669</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
guimvmatos
</td>
</tr>
</table>
<pre>
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
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0VUmT4ygT_TX4kiEFBnnRQQd50ffVTPUSnu6J6JMDSSmJKSQ8gFxd_34C5KW6u2YOsyh8MGTyePl4CcJa2Q6IGVlsyGI3E6PrtMnaUfbnXjhtZ6WuX7IHwlY9OPMihxacBjlYJ5SCx8df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