Hi, all I download the code from: llvm: http://llvm.org/svn/llvm-project/llvm/trunk clang: http://llvm.org/svn/llvm-project/cfe/trunk compiler-rt: http://llvm.org/svn/llvm-project/compiler-rt/trunk The errors are as follows when make: tools/clang/tools/extra/remove-cstr-calls/RemoveCStrCalls.cpp:45:32: fatal error: llvm/ADT/OwningPtr.h: No such file or directory compilation terminated. make[2]: *** [tools/clang/tools/extra/remove-cstr-calls/CMakeFiles/remove-cstr-calls.dir/RemoveCStrCalls.cpp.o] Error 1 make[1]: *** [tools/clang/tools/extra/remove-cstr-calls/CMakeFiles/remove-cstr-calls.dir/all] Error 2 make: *** [all] Error 2 The reasons are: The llvm has removed the OwningPtr.h, but the clang source code still use them. The log from llvm: r211259 | alp | 2014-06-19 15:25:18 +0800 (Thu, 19 Jun 2014) | 3 lines Remove OwningPtr.h and associated tests llvm::OwningPtr is superseded by std::unique_ptr. Eric Best Regards.
Arnaud Allard de Grandmaison
2014-Jul-03 07:47 UTC
[LLVMdev] failed to compile the trunk code
Hi Eric, 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. Cheers, -- Arnaud On Thu, Jul 3, 2014 at 8:17 AM, Eric Lu <eirc.lew at gmail.com> wrote:> Hi, all > I download the code from: > llvm: http://llvm.org/svn/llvm-project/llvm/trunk > clang: http://llvm.org/svn/llvm-project/cfe/trunk > compiler-rt: http://llvm.org/svn/llvm-project/compiler-rt/trunk > > The errors are as follows when make: > tools/clang/tools/extra/remove-cstr-calls/RemoveCStrCalls.cpp:45:32: > fatal error: llvm/ADT/OwningPtr.h: No such file or directory > compilation terminated. > make[2]: *** > [tools/clang/tools/extra/remove-cstr-calls/CMakeFiles/remove-cstr-calls.dir/RemoveCStrCalls.cpp.o] > Error 1 > make[1]: *** > [tools/clang/tools/extra/remove-cstr-calls/CMakeFiles/remove-cstr-calls.dir/all] > Error 2 > make: *** [all] Error 2 > > The reasons are: > The llvm has removed the OwningPtr.h, but the clang source code still use > them. > > The log from llvm: > r211259 | alp | 2014-06-19 15:25:18 +0800 (Thu, 19 Jun 2014) | 3 lines > Remove OwningPtr.h and associated tests > llvm::OwningPtr is superseded by std::unique_ptr. > > Eric > > Best Regards. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140703/7e10ffc7/attachment.html>