Skip to content

[Bug] CMake minimum version too low #16233

@varunsh-xilinx

Description

@varunsh-xilinx

The CMake version in CMakeLists.txt here is too low at 3.18. New changes require at least 3.20.0:

Expected behavior

If the CMake version is unsupported, it should fail at cmake_minimum_required().

Actual behavior

The build failed in FindLLVM.cmake when cmake_path couldn't be found as a CMake command:

CMake Error at cmake/utils/FindLLVM.cmake:121 (cmake_path):
  Unknown CMake command "cmake_path".
Call Stack (most recent call first):
  cmake/modules/LLVM.cmake:31 (find_llvm)
  CMakeLists.txt:528 (include)

Environment

Tried on a custom Ubuntu 20.04 container with TVM commit a9fcac1.

Steps to reproduce

Attempt to build TVM with CMake 3.19.1.

Triage

Please refer to the list of label tags here to find the relevant tags and add them below in a bullet format (example below).

  • needs-triage

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triagePRs or issues that need to be investigated by maintainers to find the right assignees to address ittype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions