Scanning dependencies of target clay-bindgen [ 95%] Building CXX object misc/bindgen/src/CMakeFiles/clay-bindgen.dir/BindingsConverter.cpp.o [100%] Building CXX object misc/bindgen/src/CMakeFiles/clay-bindgen.dir/clay-bindgen.cpp.o In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:25: /home/philipp/programming/clay/misc/bindgen/include/PPContext.h:40:9: error: no matching constructor for initialization of 'clang::Diagnostic' diags(client), ^ ~~~~~~ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:20: In file included from /usr/include/clang/AST/ASTContext.h:20: In file included from /usr/include/clang/Basic/PartialDiagnostic.h:18: /usr/include/clang/Basic/Diagnostic.h:104:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'clang::DiagnosticClient *' to 'const clang::Diagnostic' for 1st argument class Diagnostic : public llvm::RefCountedBase { ^ /usr/include/clang/Basic/Diagnostic.h:231:12: note: candidate constructor not viable: no known conversion from 'clang::DiagnosticClient *' to 'const llvm::IntrusiveRefCntPtr' for 1st argument explicit Diagnostic(const llvm::IntrusiveRefCntPtr &Diags, ^ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:25: /home/philipp/programming/clay/misc/bindgen/include/PPContext.h:43:9: error: no matching constructor for initialization of 'clang::HeaderSearch' headers(fm), ^ ~~ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:25: In file included from /home/philipp/programming/clay/misc/bindgen/include/PPContext.h:16: /usr/include/clang/Lex/HeaderSearch.h:120:12: note: candidate constructor not viable: no known conversion from 'clang::FileManager' to 'const clang::HeaderSearch' for 1st argument explicit HeaderSearch(const HeaderSearch&); ^ /usr/include/clang/Lex/HeaderSearch.h:119:12: note: candidate constructor not viable: requires 0 arguments, but 1 was provided explicit HeaderSearch(); ^ /usr/include/clang/Lex/HeaderSearch.h:123:3: note: candidate constructor not viable: requires 2 arguments, but 1 was provided HeaderSearch(FileManager &FM, const FileSystemOptions &FSOpts); ^ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:25: /home/philipp/programming/clay/misc/bindgen/include/PPContext.h:44:9: error: no matching constructor for initialization of 'clang::SourceManager' sm(diags), ^ ~~~~~ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:25: In file included from /home/philipp/programming/clay/misc/bindgen/include/PPContext.h:12: /usr/include/clang/Basic/SourceManager.h:431:12: note: candidate constructor not viable: no known conversion from 'clang::Diagnostic' to 'const clang::SourceManager' for 1st argument explicit SourceManager(const SourceManager&); ^ /usr/include/clang/Basic/SourceManager.h:434:3: note: candidate constructor not viable: requires 3 arguments, but 1 was provided SourceManager(Diagnostic &Diag, FileManager &FileMgr, ^ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:25: /home/philipp/programming/clay/misc/bindgen/include/PPContext.h:70:13: error: no matching function for call to 'InitializePreprocessor' InitializePreprocessor(pp, PreprocessorOptions(), hsOpts, FrontendOptions()); ^~~~~~~~~~~~~~~~~~~~~~ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:25: In file included from /home/philipp/programming/clay/misc/bindgen/include/PPContext.h:24: /usr/include/clang/Frontend/Utils.h:56:6: note: candidate function not viable: requires 5 arguments, but 4 were provided void InitializePreprocessor(Preprocessor &PP, ^ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:26: /home/philipp/programming/clay/misc/bindgen/include/BindingsConverter.h:38:34: error: reference to 'Type' is ambiguous string convertObjcType(const Type *type); ^ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:20: In file included from /usr/include/clang/AST/ASTContext.h:21: In file included from /usr/include/clang/AST/Decl.h:18: In file included from /usr/include/clang/AST/DeclBase.h:17: In file included from /usr/include/clang/AST/Attr.h:21: /usr/include/clang/AST/Type.h:773:7: note: candidate found by name lookup is 'clang::Type' class Type { ^ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:25: In file included from /home/philipp/programming/clay/misc/bindgen/include/PPContext.h:11: /usr/include/clang/Basic/TargetInfo.h:30:7: note: candidate found by name lookup is 'llvm::Type' class Type; ^ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:26: /home/philipp/programming/clay/misc/bindgen/include/BindingsConverter.h:39:30: error: reference to 'Type' is ambiguous string convertType(const Type *type); ^ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:20: In file included from /usr/include/clang/AST/ASTContext.h:21: In file included from /usr/include/clang/AST/Decl.h:18: In file included from /usr/include/clang/AST/DeclBase.h:17: In file included from /usr/include/clang/AST/Attr.h:21: /usr/include/clang/AST/Type.h:773:7: note: candidate found by name lookup is 'clang::Type' class Type { ^ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:25: In file included from /home/philipp/programming/clay/misc/bindgen/include/PPContext.h:11: /usr/include/clang/Basic/TargetInfo.h:30:7: note: candidate found by name lookup is 'llvm::Type' class Type; ^ /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:240:40: error: no matching member function for call to 'getFile' const FileEntry* file = context.fm.getFile(filename); ~~~~~~~~~~~^~~~~~~ In file included from /home/philipp/programming/clay/misc/bindgen/src/clay-bindgen.cpp:25: In file included from /home/philipp/programming/clay/misc/bindgen/include/PPContext.h:14: /usr/include/clang/Basic/FileManager.h:209:20: note: candidate function not viable: requires 2 arguments, but 1 was provided const FileEntry *getFile(llvm::StringRef Filename, ^ /usr/include/clang/Basic/FileManager.h:213:20: note: candidate function not viable: requires 3 arguments, but 1 was provided const FileEntry *getFile(const char *FilenameStart, ^ 7 errors generated. make[2]: *** [misc/bindgen/src/CMakeFiles/clay-bindgen.dir/clay-bindgen.cpp.o] Fehler 1 make[1]: *** [misc/bindgen/src/CMakeFiles/clay-bindgen.dir/all] Fehler 2 make: *** [all] Fehler 2