Skip to content

CMake Error at CMakeLists.txt:3 (cmake_minimum_required): #123669

Closed
@guimvmatos

Description

@guimvmatos

I'm trying to install LLVM in docker as described here. 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions