CMake Error: CMake was unable to find a build program corresponding to “Ninja”. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
– Configuring incomplete, errors occurred!
See also “/home/chitransh/gsoc/llvm-project/build/CMakeFiles/CMakeOutput.log”.
CMake Error: CMake was unable to find a build program corresponding to “Ninja”.
This means that ninja is not (properly) installed on your system. The way to install it depends on your system, so if you can share some information about that, I can give you some hints.
The rest of the errors are red herrings, I’m pretty sure. They will go away once the first one is fixed.
If you are running Ubuntu in WSL (which is the default), you need to run sudo apt-get install ninja-build. Also, remove CMakeCache.txt before attempting the configuration after installing ninja.