in cmake.log
– Targeting X86
CMake Error at /home/nnelson/Documents/llvm-project/debuginfo-tests/CMakeLists.txt:30 (message):
Cannot run debuginfo-tests without python 3
installed
python3 --version
Python 3.7.5
python --version
Python 2.7.17
in llvm-project/debuginfo-tests/CMakeLists.txt
elseif(PYTHON_VERSION_MAJOR LESS 3)
message(FATAL_ERROR “Cannot run debuginfo-tests without python 3”)
CMake is using whatever “python” is, which is Python2 for me so I get the same error.
You can specify the Python exe directly[0] by adding this:
-DPYTHON_EXECUTABLE=which python3
That gets you to:
CMake Error at /work/open_source/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1543 (add_dependencies):
The dependency target “clang” of target “check-debuginfo” does not exist.
To fix that you can just add “clang” to LLVM_ENABLE_PROJECTS.
There is a specific FindPython3 module [1] that debuginfo-tests could use but I’m not sure if it’s available in the minimum CMake version we require.
Could one of you please file a bug? and mention the helpful references. We’d really like this experience to be smooth, and debuginfo-tests as it exists really supports only Python 3.