我尝试构建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
/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.
最佳答案
您必须遵循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
java - issueCommand(java.lang.String,int) 在 com.su