[LLVMdev] failed to compile the trunk code

Eric Lu eirc.lew at gmail.com
Thu Jul 3 00:17:13 PDT 2014


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.




More information about the llvm-dev mailing list