<div dir="ltr"><div><div>Hi Eric,<br><br></div>It seems to me your 'tools/clang/tools/extra' checkout is out of sync with llvm & clang. tools-extra is a separate repository, and as such it needs to be updated at the same time than your llvm and clang checkouts in order to stay consistent.<br>
<br></div><div>Cheers,<br>--<br></div><div>Arnaud<br></div><div><br></div><div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 3, 2014 at 8:17 AM, Eric Lu <span dir="ltr"><<a href="mailto:eirc.lew@gmail.com" target="_blank">eirc.lew@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, all<br>
I download the code from:<br>
llvm: <a href="http://llvm.org/svn/llvm-project/llvm/trunk" target="_blank">http://llvm.org/svn/llvm-project/llvm/trunk</a><br>
clang: <a href="http://llvm.org/svn/llvm-project/cfe/trunk
compiler-rt" target="_blank">http://llvm.org/svn/llvm-project/cfe/trunk<br>
compiler-rt</a>: <a href="http://llvm.org/svn/llvm-project/compiler-rt/trunk" target="_blank">http://llvm.org/svn/llvm-project/compiler-rt/trunk</a><br>
<br>
The errors are as follows when make:<br>
tools/clang/tools/extra/remove-cstr-calls/RemoveCStrCalls.cpp:45:32:<br>
fatal error: llvm/ADT/OwningPtr.h: No such file or directory<br>
compilation terminated.<br>
make[2]: *** [tools/clang/tools/extra/remove-cstr-calls/CMakeFiles/remove-cstr-calls.dir/RemoveCStrCalls.cpp.o]<br>
Error 1<br>
make[1]: *** [tools/clang/tools/extra/remove-cstr-calls/CMakeFiles/remove-cstr-calls.dir/all]<br>
Error 2<br>
make: *** [all] Error 2<br>
<br>
The reasons are:<br>
The llvm has removed the OwningPtr.h, but the clang source code still use them.<br>
<br>
The log from llvm:<br>
r211259 | alp | 2014-06-19 15:25:18 +0800 (Thu, 19 Jun 2014) | 3 lines<br>
Remove OwningPtr.h and associated tests<br>
llvm::OwningPtr is superseded by std::unique_ptr.<br>
<br>
Eric<br>
<br>
Best Regards.<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>