I have been trying to compile clang from source, but the build is
failing. I am attaching the build log alongwith. Can someone please
help? Much thanks in advance.
I got the sources from here ->
GitHub - llvm-mirror/clang: Mirror kept for legacy. Moved to https://github.com/llvm/llvm-project and compiling master.
build.log (12.8 KB)
the error is
/home/rahul/kf5/src/clang/lib/CodeGen/CodeGenFunction.cpp: In function ‘void TryMarkNoThrow(llvm::Function*)’:
/home/rahul/kf5/src/clang/lib/CodeGen/CodeGenFunction.cpp:924:10: error: ‘class llvm::Function’ has no member named ‘isInterposable’
if (F->isInterposable()) return;
This seems to depend on a recent change in the LLVM libraries. Please update your build of https://github.com/llvm-mirror/llvm.git if you're not using the in-tree build as mentioned here: http://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary
Thanks for the help. That worked. I hadn't realized that my llvm repo
is not updated.