clang - LLVM 由于缺少变量而无法编译

标签 clang llvm clang++ llvm-clang

当我尝试使用来自 here 的以下命令编译 llvm 时, cmake "Unix Make Files"-DCMAKE_BUILD_TYPE=Debug ~/llvm/1/llvm/

我收到以下错误:

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

这是为什么呢?我用谷歌搜索但找不到可能的解决方案。

最佳答案

我刚刚解决了这个问题。

here :

Check out libcxx and libcxxabi into llvm/projects

确保在 llvm/projects 中检查 libcxx 和 libcxxabi。

关于clang - LLVM 由于缺少变量而无法编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29203953/

相关文章:

c - 出现内存分配错误且顶部大小已损坏

c++ - 确定 clang 和 cmake 定义了哪些宏的最佳方法

c - LLVM C API。如何确定 LLVMValueRef 是整数类型还是指针类型?

boost - 在 Windows 上使用 clang 3.8 构建 boost

c++ - std::result_of on std::bind 不能在 clang++ 3.4 上编译

c - 在 C89 的数组声明中使用 sizeof()

c++ - 如何在 gcc 或 clang 中启用从 int 到 int64_t 的转换警告

c++ - 将 Clang -fsyntax-only 模式与静态库一起使用?

c++ - 使用 LLVM 进行静态源代码分析

c++ - 如何让Clang改变两阶段查找的规则?