[cfe-dev] Build failure

Csaba Raduly rcsaba at gmail.com
Mon Aug 11 00:34:01 PDT 2014


$ make -k happiness
llvm[0]: Constructing LLVMBuild project information.
svn  update ~/workspace/LLVM/llvm
Updating '~/workspace/LLVM/llvm':
At revision 215346.
Updating '~/workspace/LLVM/llvm/projects/compiler-rt':
At revision 215346.
Updating '~/workspace/LLVM/llvm/tools/clang':
At revision 215346.
Summary of updates:
  Updated '~/workspace/LLVM/llvm/projects/compiler-rt' to r215346.
  Updated '~/workspace/LLVM/llvm/tools/clang' to r215346.
...
make[5]: Entering directory
`~/workspace/LLVM/build/tools/clang/tools/extra/clang-modernize'
make[6]: Entering directory
`~/workspace/LLVM/build/tools/clang/tools/extra/clang-modernize/Core'
llvm[6]: Compiling Transform.cpp for Release+Asserts build
~/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/Core/Transform.cpp:52:18:
error: conflicting return type specified for 'virtual
clang::ASTConsumer*
{anonymous}::ActionFactory::FactoryAdaptor::CreateASTConsumer(clang::CompilerInstance&,
llvm::StringRef)'
     ASTConsumer *CreateASTConsumer(CompilerInstance &, StringRef) {
                  ^
In file included from
~/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/Core/../../../../include/clang/Tooling/Tooling.h:38:0,
                 from
~/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/Core/../../../../include/clang/Tooling/Refactoring.h:23,
                 from
~/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/Core/../Core/Refactoring.h:20,
                 from
~/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/Core/../Core/Transform.h:20,
                 from
~/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/Core/Transform.cpp:16:
~/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/Core/../../../../include/clang/Frontend/FrontendAction.h:64:40:
error:   overriding 'virtual std::unique_ptr<clang::ASTConsumer>
clang::FrontendAction::CreateASTConsumer(clang::CompilerInstance&,
llvm::StringRef)'
   virtual std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
                                        ^
~/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/Core/Transform.cpp:
In member function 'virtual clang::ASTConsumer*
{anonymous}::ActionFactory::FactoryAdaptor::CreateASTConsumer(clang::CompilerInstance&,
llvm::StringRef)':
~/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/Core/Transform.cpp:53:36:
error: cannot convert 'std::unique_ptr<clang::ASTConsumer>' to
'clang::ASTConsumer*' in return
       return Finder.newASTConsumer();
                                    ^
~/workspace/LLVM/llvm/tools/clang/tools/extra/clang-modernize/Core/Transform.cpp:54:5:
warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
/bin/rm: cannot remove
'~/workspace/LLVM/build/tools/clang/tools/extra/clang-modernize/Core/Release+Asserts/Transform.d.tmp':
No such file or directory

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds



More information about the cfe-dev mailing list