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.
is there any way to compile llvm in flask drive connected to linux system
I am doing that i am still facing compilation issues (following official compilation docs)
I want to contribute to llvm but i have not been able to compile the llvm yet
maybe some of the info given in docs are out dated,
for example : when getting build failure , i followed the section to set the versions of some framework to specific value by running
gcc_version=7.4.0
wget https://ftp.gnu.org/gnu/gcc/gcc-${gcc_version}/gcc-${gcc_version}.tar.bz2
wget https://ftp.gnu.org/gnu/gcc/gcc-${gcc_version}/gcc-${gcc_version}.tar.bz2.sig
wget https://ftp.gnu.org/gnu/gnu-keyring.gpg
signature_invalid=`gpg --verify --no-default-keyring --keyring ./gnu-keyring.gpg gcc-${gcc_version}.tar.bz2.sig`
if [ $signature_invalid ]; then echo "Invalid signature" ; exit 1 ; fi
tar -xvjf gcc-${gcc_version}.tar.bz2
cd gcc-${gcc_version}
./contrib/download_prerequisites
cd ..
mkdir gcc-${gcc_version}-build
cd gcc-${gcc_version}-build
$PWD/../gcc-${gcc_version}/configure --prefix=$HOME/toolchains --enable-languages=c,c++
make -j$(nproc)
make install
but the 1st 3 links are not available in gnu server
The first step is to get a recent GCC toolchain installed. The most common
distribution on which users have struggled with the version requirements is
Ubuntu Precise, 12.04 LTS.
Ouch, indeed that already seems pretty old and outdated.
I’m not sure why we’re trying to document how to build gcc from source though: this seems like it’ll necessary always be quickly out-of-date.