user1343318
user1343318

Reputation: 2141

LLVM fails to compile due to missing variables

When I try to compile llvm with the following command from here, cmake "Unix Make Files" -DCMAKE_BUILD_TYPE=Debug ~/llvm/1/llvm/

I get the following error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBCXXABI_LIBCXX_INCLUDES
   used as include directory in directory /home/salman/llvm/1/llvm/projects/libcxxabi/src
   used as include directory in directory /home/salman/llvm/1/llvm/projects/libcxxabi/src
   used as include directory in directory /home/salman/llvm/1/llvm/projects/libcxxabi/src
   used as include directory in directory /home/salman/llvm/1/llvm/projects/libcxxabi/src

Why is that? I have googled but cannot find a possible solution.

Upvotes: 3

Views: 1087

Answers (1)

Cu2S
Cu2S

Reputation: 686

I solved this problem just now.

Look at here:

Check out libcxx and libcxxabi into llvm/projects

Make sure you check out both libcxx and libcxxabi in llvm/projects.

Upvotes: 1

Related Questions