我正在尝试构建LLVMLinux项目并按照此链接http://llvm.linuxfoundation.org/index.php/Nexus_7,但在运行 make all 或者只是构建clang之后我遇到了以下问题,它显示了
cmake / modules / AddLLVM.cmake上的CMake错误:83(add_executable): add_executable无法创建目标“llvm-symbolizer”,因为另一个 具有相同名称的目标已存在。现有的目标是 源目录中创建的可执行文件 “/卷/ macdat /刮/ LLVMLinux / llvmlinux /工具链/铛/ src目录/ LLVM /项目/编译器RT / utils的/ LLVM-符号化”。 有关更多详细信息,请参阅策略CMP0002的文档。 呼叫堆栈(最近一次呼叫): cmake / modules / AddLLVM.cmake:99(add_llvm_executable) tools / llvm-symbolizer / CMakeLists.txt:11(add_llvm_tool)
CMake Error at cmake/modules/LLVM-Config.cmake:58 (target_link_libraries):
Attempt to add link library "LLVMDebugInfo" to target "llvm-symbolizer"
which is not built in this directory.
Call Stack (most recent call first):
cmake/modules/LLVM-Config.cmake:50 (explicit_llvm_config)
cmake/modules/AddLLVM.cmake:86 (llvm_config)
cmake/modules/AddLLVM.cmake:99 (add_llvm_executable)
tools/llvm-symbolizer/CMakeLists.txt:11 (add_llvm_tool)
CMake Error at cmake/modules/LLVM-Config.cmake:58 (target_link_libraries):
Attempt to add link library "LLVMObject" to target "llvm-symbolizer" which
is not built in this directory.
Call Stack (most recent call first):
cmake/modules/LLVM-Config.cmake:50 (explicit_llvm_config)
cmake/modules/AddLLVM.cmake:86 (llvm_config)
cmake/modules/AddLLVM.cmake:99 (add_llvm_executable)
tools/llvm-symbolizer/CMakeLists.txt:11 (add_llvm_tool)
CMake Error at cmake/modules/LLVM-Config.cmake:58 (target_link_libraries):
Attempt to add link library "LLVMSupport" to target "llvm-symbolizer" which
is not built in this directory.
Call Stack (most recent call first):
cmake/modules/LLVM-Config.cmake:50 (explicit_llvm_config)
cmake/modules/AddLLVM.cmake:86 (llvm_config)
cmake/modules/AddLLVM.cmake:99 (add_llvm_executable)
tools/llvm-symbolizer/CMakeLists.txt:11 (add_llvm_tool)
-- Configuring incomplete, errors occurred!
See also "/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/build/llvm/CMakeFiles/CMakeOutput.log".
See also "/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/build/llvm/CMakeFiles/CMakeError.log".
make: *** [/Volumes/macdat/scratch/LLVMLinux/llvmlinux/toolchain/clang/state/llvm-configure] Error 1
有人也遇到过这个吗?这有什么问题?任何人都可以提示如何解决它吗?
提前致谢