berkus / include-what-you-use

Automatically exported from code.google.com/p/include-what-you-use
Other
1 stars 0 forks source link

iwyu fails to build against llvm/clang 3.2 #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
iwyu current trunk fails to build against the llvm 3.2 release on the same 
machine I succesfully built again llvm 3.1:

/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_include_picker
.cc: In member function ‘void 
include_what_you_use::IncludePicker::AddMappingsFromFile(const string&)’:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_include_picker
.cc:610:51: error: no matching function for call to 
‘llvm::yaml::Stream::Stream(llvm::MemoryBuffer*, llvm::SourceMgr&)’
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_include_picker
.cc:610:51: note: candidate is:
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_include_picker
.cc:34:0:
/work/mhargett/llvm32/include/llvm/Support/YAMLParser.h:80:3: note: 
llvm::yaml::Stream::Stream(llvm::StringRef, llvm::SourceMgr&)
/work/mhargett/llvm32/include/llvm/Support/YAMLParser.h:80:3: note:   no known 
conversion for argument 1 from ‘llvm::MemoryBuffer*’ to 
‘llvm::StringRef’
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_driver.cc: In 
function ‘clang::CompilerInstance* 
include_what_you_use::CreateCompilerInstance(int, const char**)’:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_driver.cc:164:
75: error: no matching function for call to 
‘clang::driver::Driver::Driver(const string&, std::string, const char [6], 
clang::DiagnosticsEngine&)’
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_driver.cc:164:
75: note: candidates are:
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_driver.cc:24:0
:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Driver/Driver.h:178:3: note: clang::driver::Driver::Driver(llvm::StringRef, 
llvm::StringRef, llvm::StringRef, bool, clang::DiagnosticsEngine&)
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Driver/Driver.h:178:3: note:   candidate expects 5 arguments, 4 provided
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Driver/Driver.h:47:7: note: clang::driver::Driver::Driver(const 
clang::driver::Driver&)
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Driver/Driver.h:47:7: note:   candidate expects 1 argument, 4 provided
make[4]: *** 
[/work/mhargett/llvm32-obj/tools/clang/tools/include-what-you-use/Release+Debug+
Asserts/iwyu_include_picker.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** 
[/work/mhargett/llvm32-obj/tools/clang/tools/include-what-you-use/Release+Debug+
Asserts/iwyu_driver.o] Error 1
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Lex/Preprocessor.h:20:0,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.h:73,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.cc:11:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Lex/PPCallbacks.h:231:16: warning: ‘virtual void 
clang::PPCallbacks::Ifdef(clang::SourceLocation, const clang::Token&)’ was 
hidden [-Woverloaded-virtual]
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.c
c:11:0:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.h
:184:16: warning:   by ‘virtual void 
include_what_you_use::IwyuPreprocessorInfo::Ifdef(clang::SourceLocation, const 
clang::Token&, const clang::MacroInfo*)’ [-Woverloaded-virtual]
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Lex/Preprocessor.h:20:0,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.h:73,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.cc:11:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Lex/PPCallbacks.h:237:16: warning: ‘virtual void 
clang::PPCallbacks::Ifndef(clang::SourceLocation, const clang::Token&)’ was 
hidden [-Woverloaded-virtual]
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.c
c:11:0:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.h
:187:16: warning:   by ‘virtual void 
include_what_you_use::IwyuPreprocessorInfo::Ifndef(clang::SourceLocation, const 
clang::Token&, const clang::MacroInfo*)’ [-Woverloaded-virtual]
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Lex/Preprocessor.h:20:0,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.h:73,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_output.cc:25:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Lex/PPCallbacks.h:231:16: warning: ‘virtual void 
clang::PPCallbacks::Ifdef(clang::SourceLocation, const clang::Token&)’ was 
hidden [-Woverloaded-virtual]
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_output.cc:25:0
:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.h
:184:16: warning:   by ‘virtual void 
include_what_you_use::IwyuPreprocessorInfo::Ifdef(clang::SourceLocation, const 
clang::Token&, const clang::MacroInfo*)’ [-Woverloaded-virtual]
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Lex/Preprocessor.h:20:0,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.h:73,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_output.cc:25:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Lex/PPCallbacks.h:237:16: warning: ‘virtual void 
clang::PPCallbacks::Ifndef(clang::SourceLocation, const clang::Token&)’ was 
hidden [-Woverloaded-virtual]
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_output.cc:25:0
:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.h
:187:16: warning:   by ‘virtual void 
include_what_you_use::IwyuPreprocessorInfo::Ifndef(clang::SourceLocation, const 
clang::Token&, const clang::MacroInfo*)’ [-Woverloaded-virtual]
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Lex/Preprocessor.h:20:0,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.h:73,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu.cc:118:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Lex/PPCallbacks.h:231:16: warning: ‘virtual void 
clang::PPCallbacks::Ifdef(clang::SourceLocation, const clang::Token&)’ was 
hidden [-Woverloaded-virtual]
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu.cc:118:0:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.h
:184:16: warning:   by ‘virtual void 
include_what_you_use::IwyuPreprocessorInfo::Ifdef(clang::SourceLocation, const 
clang::Token&, const clang::MacroInfo*)’ [-Woverloaded-virtual]
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Lex/Preprocessor.h:20:0,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.h:73,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu.cc:118:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/../../include/clang
/Lex/PPCallbacks.h:237:16: warning: ‘virtual void 
clang::PPCallbacks::Ifndef(clang::SourceLocation, const clang::Token&)’ was 
hidden [-Woverloaded-virtual]
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu.cc:118:0:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_preprocessor.h
:187:16: warning:   by ‘virtual void 
include_what_you_use::IwyuPreprocessorInfo::Ifndef(clang::SourceLocation, const 
clang::Token&, const clang::MacroInfo*)’ [-Woverloaded-virtual]
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu.cc: In member 
function ‘bool 
include_what_you_use::BaseAstVisitor<Derived>::TraverseCXXRecordDecl(clang::CXXR
ecordDecl*)’:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu.cc:729:50: 
error: ‘class clang::CXXRecordDecl’ has no member named 
‘needsImplicitDestructor’
In file included from 
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_cache.h:22:0,
                 from /work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu.cc:110:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_stl_util.h: 
In instantiation of ‘include_what_you_use::Each<Element, void>::Each(const 
Container*) [with Container = clang::DeclContextLookupConstResult; Element = 
clang::NamedDecl*]’:
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu.cc:655:36:   
required from ‘void 
include_what_you_use::BaseAstVisitor<Derived>::InstantiateImplicitMethods(clang:
:CXXRecordDecl*) [with Derived = include_what_you_use::AstFlattenerVisitor]’
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu.cc:715:5:   
required from ‘bool 
include_what_you_use::BaseAstVisitor<Derived>::TraverseCXXRecordDecl(clang::CXXR
ecordDecl*) [with Derived = include_what_you_use::AstFlattenerVisitor]’
/work/mhargett/llvm32-obj/tools/clang/tools/include-what-you-use/../../include/c
lang/AST/DeclNodes.inc:207:1:   required from ‘bool 
clang::RecursiveASTVisitor<Derived>::TraverseDecl(clang::Decl*) [with Derived = 
include_what_you_use::AstFlattenerVisitor]’
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu.cc:354:35:   
required from ‘bool 
include_what_you_use::BaseAstVisitor<Derived>::TraverseDecl(clang::Decl*) [with 
Derived = include_what_you_use::AstFlattenerVisitor]’
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu.cc:1089:9:   
required from here
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_stl_util.h:184
:77: error: ‘const class clang::DeclContextLookupConstResult’ has no member 
named ‘begin’
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_stl_util.h:184
:77: error: ‘const class clang::DeclContextLookupConstResult’ has no member 
named ‘end’
/work/mhargett/llvm32/tools/clang/tools/include-what-you-use/iwyu_stl_util.h:184
:77: error: no type named ‘const_iterator’ in ‘class 
clang::DeclContextLookupConstResult’
make[4]: *** 
[/work/mhargett/llvm32-obj/tools/clang/tools/include-what-you-use/Release+Debug+
Asserts/iwyu.o] Error 1

Original issue reported on code.google.com by plaztiks...@gmail.com on 8 Jan 2013 at 2:27

GoogleCodeExporter commented 9 years ago
There is a 3.2 branch of IWYU at 
http://code.google.com/p/include-what-you-use/source/browse/#svn%2Fbranches%2Fcl
ang_3.2.

All the errors you're seeing are due to changes in Clang trunk after the 3.2 
branch, so this is expected.

That said, I'm not sure if anything affecting IWYU has been merged from Clang 
trunk -> Clang 3.2 release branch after we created the IWYU clang_3.2 branch, 
so we may still be out of sync.

Could you try the IWYU clang_3.2 branch instead?

Thanks!

Original comment by kim.gras...@gmail.com on 8 Jan 2013 at 5:39

GoogleCodeExporter commented 9 years ago
plaztiksyke; did that work for you? If so, I'd like to close this.

Original comment by kim.gras...@gmail.com on 31 Jan 2013 at 6:00

GoogleCodeExporter commented 9 years ago
it did work, thanks for the suggestion and sorry for the delay in responding.

Original comment by plaztiks...@gmail.com on 1 Feb 2013 at 9:37

GoogleCodeExporter commented 9 years ago
Thanks, closed!

Original comment by kim.gras...@gmail.com on 1 Feb 2013 at 9:49