build - 尝试构建LLVM和Clang时出现问题

我尝试构建LLVM和Clang,但遇到此错误:

cp: cp: cp: cannot stat /home/saurabh/Build/clang-build/build/tools/clang/runtime/compiler-rt/clang_linux/asan-i386/libcompiler_rt.a'cannot stat/home/saurabh/Build/clang-build/build/tools/clang/runtime/compiler-rt/clang_linux/ubsan-x86_64/libcompiler_rt.a'cannot stat `/home/saurabh/Build/clang-build/build/tools/clang/runtime/compiler-rt/clang_linux/ubsan-i386/libcompiler_rt.a': No such file or directory : No such file or directory: No such file or directory



我经历了Cannot build LLVM and Clang,但似乎没有任何原因导致他遇到类似的错误(因此,我再次询问)。我试过删除编译器-rt/make/相关文件中的-Werror标志,因为在此之前,它已停止在此错误上:

/home/saurabh/Build/clang-build/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_mutex.cc:53:13: error: comparison of constant 4294967295 with expression of type 'int' is always false [-Werror,-Wtautological-constant-out-of-range-compare] if (z == MutexTypeLeaf) { ~ ^ ~~~~~~~~~~~~~ 1 error generated.



我曾在#llvm上问过,有人建议这样做。任何想法可能是什么原因造成的?
Fwiw,我使用的是Ubuntu 12.10 64位。

最佳答案

您必须遵循http://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary。请注意您必须安装的软件依赖项。另外,再次检查是否设置了--prefix = directory。如果无法通过LLVM安装Clang(成功安装LLVM之后),则可以尝试使用apt-get install clang和clang++进行安装。因此,您可以使用此clang编译LLVM传递。对于其他相应的软件包,例如VMkit for Java,您必须安装ant和oracle jdk。

https://stackoverflow.com/questions/14319370/

相关文章:

visual-studio-2010 - 使用Microsoft Visual Studio 201

c++ - 使用G++的模板的编译错误,使用llvm编译正常

compiler-errors - 64位libuuid不兼容,编译时找不到32位libuuid

asp.net - ASP.Net页面在Visual Studio中使用 “Build Page”构

c++ - Qt : Error while compiling Qt 5.0.1 on Windo

c++ - GTKmm Hello World 编译错误

java - issueCommand(java.lang.String,int) 在 com.su

gcc - 在MinGw下构建完整的gcc

c# - 编译器错误1 : constructor contains more than 0 arg

c++ - 生成时CMake错误。项目使用Boost库