vgvassilev / cling

The interactive C++ interpreter Cling
https://rawgit.com/vgvassilev/cling/master/www/index.html
Other
1.76k stars 102 forks source link

Does not compile with LLVM 13 on debian #230

Closed nolange closed 6 months ago

nolange commented 7 months ago

Describe the bug

Fails to build on debian bookworm

Expected behavior

The build to succeed

To Reproduce

  1. Unpack cling to /tmp/cling-1.0

  2. Prepare a debian bookworm environment or use podman/docker

    podman run --rm -it -v /tmp/cling-1.0:/host debian:bookworm
    apt update
    apt install llvm-13-dev libclang-13-dev libzstd-dev zlib1g-dev build-essential ninja-build cmake
  3. Configure and build

    cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_CONFIG=/usr/bin/llvm-config-13 -S /host -B /tmp/build
    
    cd /tmp/build
    ninja

Setup

just use the Cling 1.0 release tar & debian bookworm

Build log

Compiler output for failed files ``` [1/23] Building CXX object lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/AutoloadCallback.cpp.o FAILED: lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/AutoloadCallback.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Interpreter -I/host/lib/Interpreter -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -MD -MT lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/AutoloadCallback.cpp.o -MF lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/AutoloadCallback.cpp.o.d -o lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/AutoloadCallback.cpp.o -c /host/lib/Interpreter/AutoloadCallback.cpp /host/lib/Interpreter/AutoloadCallback.cpp: In lambda function: /host/lib/Interpreter/AutoloadCallback.cpp:123:47: error: no matching function for call to 'clang::Preprocessor::LookupFile(clang::SourceLocation&, llvm::StringRef&, bool&, const clang::DirectoryLookup*&, const clang::FileEntry*&, const clang::DirectoryLookup*&, int, int, int, int, std::nullptr_t, bool, bool, bool)' 123 | else if (auto FERef = m_PP->LookupFile(fileNameLoc, FileName, isAngled, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 124 | FromDir, FromFile, CurDir, | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 125 | /*SearchPath*/0, /*RelativePath*/ 0, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 126 | /*suggestedModule*/0, /*IsMapped*/0, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 127 | /*IsFrameworkFound*/ nullptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 128 | /*SkipCache*/ false, | ~~~~~~~~~~~~~~~~~~~~ 129 | /*OpenFile*/ false, | ~~~~~~~~~~~~~~~~~~~ 130 | /*CacheFail*/ true)) { | ~~~~~~~~~~~~~~~~~~~ In file included from /host/lib/Interpreter/AutoloadCallback.cpp:20: /usr/lib/llvm-13/include/clang/Lex/Preprocessor.h:2015:3: note: candidate: 'llvm::Optional clang::Preprocessor::LookupFile(clang::SourceLocation, llvm::StringRef, bool, const clang::DirectoryLookup*, const clang::FileEntry*, const clang::DirectoryLookup*&, llvm::SmallVectorImpl*, llvm::SmallVectorImpl*, clang::ModuleMap::KnownHeader*, bool*, bool*, bool)' 2015 | LookupFile(SourceLocation FilenameLoc, StringRef Filename, bool isAngled, | ^~~~~~~~~~ /usr/lib/llvm-13/include/clang/Lex/Preprocessor.h:2015:3: note: candidate expects 12 arguments, 14 provided At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics [2/23] Building CXX object lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/CIFactory.cpp.o FAILED: lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/CIFactory.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Interpreter -I/host/lib/Interpreter -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -MD -MT lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/CIFactory.cpp.o -MF lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/CIFactory.cpp.o.d -o lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/CIFactory.cpp.o -c /host/lib/Interpreter/CIFactory.cpp /host/lib/Interpreter/CIFactory.cpp: In function 'clang::CompilerInstance* {anonymous}::createCIImpl(std::unique_ptr, const cling::CompilerOptions&, const char*, std::unique_ptr, const cling::CIFactory::ModuleFileExtensions&, bool, bool)': /host/lib/Interpreter/CIFactory.cpp:1516:27: error: no matching function for call to 'clang::DiagnosticsEngine::Reset(bool)' 1516 | Diags->Reset(true); | ~~~~~~~~~~~~^~~~~~ In file included from /usr/lib/llvm-13/include/clang/Frontend/CompilerInstance.h:13, from /host/include/cling/Interpreter/CIFactory.h:13, from /host/lib/Interpreter/CIFactory.cpp:13: /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate: 'void clang::DiagnosticsEngine::Reset()' 892 | void Reset(); | ^~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate expects 0 arguments, 1 provided At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics [3/23] Building CXX object lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ClangInternalState.cpp.o FAILED: lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ClangInternalState.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Interpreter -I/host/lib/Interpreter -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -MD -MT lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ClangInternalState.cpp.o -MF lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ClangInternalState.cpp.o.d -o lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ClangInternalState.cpp.o -c /host/lib/Interpreter/ClangInternalState.cpp /host/lib/Interpreter/ClangInternalState.cpp: In static member function 'static void cling::ClangInternalState::printIncludedFiles(llvm::raw_ostream&, const clang::SourceManager&)': /host/lib/Interpreter/ClangInternalState.cpp:273:19: error: 'const class clang::FileEntry' has no member named 'isOpen' 273 | if (FE->isOpen()) | ^~~~~~ /host/lib/Interpreter/ClangInternalState.cpp: In static member function 'static void cling::ClangInternalState::printLLVMModule(llvm::raw_ostream&, const llvm::Module&, clang::CodeGenerator&)': /host/lib/Interpreter/ClangInternalState.cpp:312:8: error: 'class clang::CodeGenerator' has no member named 'print' 312 | CG.print(Out); | ^~~~~ /host/lib/Interpreter/ClangInternalState.cpp: In static member function 'static void cling::ClangInternalState::printMacroDefinitions(llvm::raw_ostream&, const clang::Preprocessor&)': /host/lib/Interpreter/ClangInternalState.cpp:318:8: error: 'const class clang::Preprocessor' has no member named 'printMacros' 318 | PP.printMacros(contentsOS); | ^~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics [4/23] Building CXX object lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ClingPragmas.cpp.o FAILED: lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ClingPragmas.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Interpreter -I/host/lib/Interpreter -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -MD -MT lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ClingPragmas.cpp.o -MF lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ClingPragmas.cpp.o.d -o lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ClingPragmas.cpp.o -c /host/lib/Interpreter/ClingPragmas.cpp /host/lib/Interpreter/ClingPragmas.cpp: In member function 'void {anonymous}::ClingPragmaHandler::LoadCommand(clang::Preprocessor&, clang::Token&, std::string)': /host/lib/Interpreter/ClingPragmas.cpp:143:15: error: 'ParserCurTokRestoreRAII' is not a member of 'clang::Parser' 143 | Parser::ParserCurTokRestoreRAII savedCurToken(P); | ^~~~~~~~~~~~~~~~~~~~~~~ /host/lib/Interpreter/ClingPragmas.cpp:149:21: error: 'CleanupAndRestoreCacheRAII' is not a member of 'clang::Preprocessor' 149 | Preprocessor::CleanupAndRestoreCacheRAII cleanupRAII(PP); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /host/lib/Interpreter/ClingPragmas.cpp:156:13: error: 'ContextAndScopeRAII' is not a member of 'clang::Sema' 156 | Sema::ContextAndScopeRAII pushedDCAndS(m_Interp.getSema(), | ^~~~~~~~~~~~~~~~~~~ /host/lib/Interpreter/ClingPragmas.cpp:166:50: error: no matching function for call to 'clang::HeaderSearch::LookupFile(const std::string&, const clang::SourceLocation&, bool, std::nullptr_t, const clang::DirectoryLookup*&, , std::nullptr_t, std::nullptr_t, std::nullptr_t, std::nullptr_t, std::nullptr_t, std::nullptr_t, bool, bool, bool, bool)' 166 | if (PP.getHeaderSearchInfo().LookupFile(FI.FileName, FI.StartLoc, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ 167 | /*isAngled*/ false, /*fromDir*/ nullptr, /*CurDir*/ CurDir, /*Includers*/ {}, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 168 | /*SearchPath*/ nullptr, /*RelativePath*/ nullptr, /*RequestingModule*/ nullptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 169 | /*suggestedModule*/ nullptr, /*IsMapped*/ nullptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 170 | /*IsFrameworkFound*/ nullptr, /*SkipCache*/ true, /*BuildSystemModule*/ false, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 171 | /*OpenFile*/ false, /*CacheFailures*/ false)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /host/lib/Interpreter/ClingPragmas.cpp:21: /usr/lib/llvm-13/include/clang/Lex/HeaderSearch.h:412:26: note: candidate: 'llvm::Optional clang::HeaderSearch::LookupFile(llvm::StringRef, clang::SourceLocation, bool, const clang::DirectoryLookup*, const clang::DirectoryLookup*&, llvm::ArrayRef >, llvm::SmallVectorImpl*, llvm::SmallVectorImpl*, clang::Module*, clang::ModuleMap::KnownHeader*, bool*, bool*, bool, bool)' 412 | Optional LookupFile( | ^~~~~~~~~~ /usr/lib/llvm-13/include/clang/Lex/HeaderSearch.h:412:26: note: candidate expects 14 arguments, 16 provided /host/lib/Interpreter/ClingPragmas.cpp:154:28: warning: unused variable 'TU' [-Wunused-variable] 154 | TranslationUnitDecl* TU = | ^~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics [5/23] Building CXX object lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/DeclUnloader.cpp.o FAILED: lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/DeclUnloader.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Interpreter -I/host/lib/Interpreter -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -MD -MT lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/DeclUnloader.cpp.o -MF lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/DeclUnloader.cpp.o.d -o lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/DeclUnloader.cpp.o -c /host/lib/Interpreter/DeclUnloader.cpp /host/lib/Interpreter/DeclUnloader.cpp: In member function 'bool {anonymous}::GlobalValueEraser::EraseGlobalValue(llvm::GlobalValue*)': /host/lib/Interpreter/DeclUnloader.cpp:212:22: error: 'class clang::CodeGenerator' has no member named 'forgetGlobal' 212 | m_CodeGen->forgetGlobal(*I); | ^~~~~~~~~~~~ /host/lib/Interpreter/DeclUnloader.cpp: In static member function 'static void cling::DeclUnloader::resetDefinitionData(clang::TagDecl*)': /host/lib/Interpreter/DeclUnloader.cpp:454:16: error: 'clang::CXXRecordDecl::DefinitionData* clang::CXXRecordDecl::DefinitionData' is private within this context 454 | declcxx->DefinitionData = nullptr; | ^~~~~~~~~~~~~~ In file included from /usr/lib/llvm-13/include/clang/AST/DeclVisitor.h:18, from /host/lib/Interpreter/DeclUnloader.h:15, from /host/lib/Interpreter/DeclUnloader.cpp:10: /usr/lib/llvm-13/include/clang/AST/DeclCXX.h:364:26: note: declared private here 364 | struct DefinitionData *DefinitionData; | ^~~~~~~~~~~~~~ /host/lib/Interpreter/DeclUnloader.cpp: In destructor 'cling::DeclUnloader::~DeclUnloader()': /host/lib/Interpreter/DeclUnloader.cpp:500:10: error: 'class clang::SourceManager' has no member named 'invalidateCache' 500 | SM.invalidateCache(*I); | ^~~~~~~~~~~~~~~ /host/lib/Interpreter/DeclUnloader.cpp: In member function 'void cling::DeclUnloader::MaybeRemoveDeclFromModule(clang::GlobalDecl&) const': /host/lib/Interpreter/DeclUnloader.cpp:954:18: error: 'class clang::CodeGenerator' has no member named 'forgetDecl' 954 | m_CodeGen->forgetDecl(GD, mangledName); | ^~~~~~~~~~ /host/lib/Interpreter/DeclUnloader.cpp: In member function 'bool cling::DeclUnloader::VisitMacro(cling::Transaction::MacroDirectiveInfo)': /host/lib/Interpreter/DeclUnloader.cpp:990:8: error: 'class clang::Preprocessor' has no member named 'removeMacro' 990 | PP.removeMacro(MacroD.m_II, const_cast(MacroD.m_MD)); | ^~~~~~~~~~~ /host/lib/Interpreter/DeclUnloader.cpp: In member function 'bool cling::DeclUnloader::VisitFunctionTemplateDecl(clang::FunctionTemplateDecl*)': /host/lib/Interpreter/DeclUnloader.cpp:1006:55: error: 'class clang::FunctionTemplateDecl' has no member named 'loaded_spec_begin' 1006 | for (FunctionTemplateDecl::spec_iterator I = FTD->loaded_spec_begin(), | ^~~~~~~~~~~~~~~~~ /host/lib/Interpreter/DeclUnloader.cpp:1007:45: error: 'E' was not declared in this scope 1007 | E = FTD->loaded_spec_end(); I != E; ++I) | ^ /host/lib/Interpreter/DeclUnloader.cpp: In member function 'bool cling::DeclUnloader::VisitClassTemplateDecl(clang::ClassTemplateDecl*)': /host/lib/Interpreter/DeclUnloader.cpp:1019:52: error: 'class clang::ClassTemplateDecl' has no member named 'loaded_spec_begin' 1019 | for (ClassTemplateDecl::spec_iterator I = CTD->loaded_spec_begin(), | ^~~~~~~~~~~~~~~~~ /host/lib/Interpreter/DeclUnloader.cpp:1020:45: error: 'E' was not declared in this scope 1020 | E = CTD->loaded_spec_end(); I != E; ++I) | ^ /host/lib/Interpreter/DeclUnloader.cpp: In member function 'bool cling::DeclUnloader::VisitVarTemplateDecl(clang::VarTemplateDecl*)': /host/lib/Interpreter/DeclUnloader.cpp:1056:50: error: 'class clang::VarTemplateDecl' has no member named 'loaded_spec_begin' 1056 | for (VarTemplateDecl::spec_iterator I = VTD->loaded_spec_begin(), | ^~~~~~~~~~~~~~~~~ /host/lib/Interpreter/DeclUnloader.cpp:1058:15: error: 'E' was not declared in this scope 1058 | I != E; ++I) | ^ At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics [6/23] Building CXX object lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ForwardDeclPrinter.cpp.o FAILED: lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ForwardDeclPrinter.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Interpreter -I/host/lib/Interpreter -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -MD -MT lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ForwardDeclPrinter.cpp.o -MF lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ForwardDeclPrinter.cpp.o.d -o lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/ForwardDeclPrinter.cpp.o -c /host/lib/Interpreter/ForwardDeclPrinter.cpp /host/lib/Interpreter/ForwardDeclPrinter.cpp: In lambda function: /host/lib/Interpreter/ForwardDeclPrinter.cpp:218:31: error: no matching function for call to 'clang::Preprocessor::LookupFile(clang::SourceLocation&, llvm::StringRef&, bool&, const clang::DirectoryLookup*&, const clang::FileEntry*&, const clang::DirectoryLookup*&, std::nullptr_t, std::nullptr_t, std::nullptr_t, std::nullptr_t, std::nullptr_t, bool, bool, bool)' 218 | auto FE = PP.LookupFile(fileNameLoc, FileName, isAngled, FromDir, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 219 | FromFile, | ~~~~~~~~~ 220 | CurDir, /*SearchPath*/ nullptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 221 | /*RelativePath*/ nullptr, /*suggestedModule*/ nullptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 222 | /*IsMapped*/ nullptr, /*IsFramework*/ nullptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 223 | /*SkipCache*/ false, | ~~~~~~~~~~~~~~~~~~~~ 224 | /*OpenFile*/ false, /*CacheFail*/ true); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /host/lib/Interpreter/ForwardDeclPrinter.cpp:16: /usr/lib/llvm-13/include/clang/Lex/Preprocessor.h:2015:3: note: candidate: 'llvm::Optional clang::Preprocessor::LookupFile(clang::SourceLocation, llvm::StringRef, bool, const clang::DirectoryLookup*, const clang::FileEntry*, const clang::DirectoryLookup*&, llvm::SmallVectorImpl*, llvm::SmallVectorImpl*, clang::ModuleMap::KnownHeader*, bool*, bool*, bool)' 2015 | LookupFile(SourceLocation FilenameLoc, StringRef Filename, bool isAngled, | ^~~~~~~~~~ /usr/lib/llvm-13/include/clang/Lex/Preprocessor.h:2015:3: note: candidate expects 12 arguments, 14 provided At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics [7/23] Building CXX object lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/IncrementalParser.cpp.o FAILED: lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/IncrementalParser.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Interpreter -I/host/lib/Interpreter -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -MD -MT lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/IncrementalParser.cpp.o -MF lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/IncrementalParser.cpp.o.d -o lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/IncrementalParser.cpp.o -c /host/lib/Interpreter/IncrementalParser.cpp /host/lib/Interpreter/IncrementalParser.cpp: In member function 'virtual void {anonymous}::FilteringDiagConsumer::HandleDiagnostic(clang::DiagnosticsEngine::Level, const clang::Diagnostic&)': /host/lib/Interpreter/IncrementalParser.cpp:179:25: error: no matching function for call to 'clang::DiagnosticsEngine::Reset(bool)' 179 | Diags->Reset(true /*soft - only counts, not mappings*/); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/lib/llvm-13/include/clang/AST/NestedNameSpecifier.h:18, from /usr/lib/llvm-13/include/clang/AST/Type.h:21, from /usr/lib/llvm-13/include/clang/AST/DeclarationName.h:16, from /usr/lib/llvm-13/include/clang/AST/DeclBase.h:18, from /usr/lib/llvm-13/include/clang/AST/Decl.h:19, from /host/lib/Interpreter/ASTTransformer.h:15, from /host/lib/Interpreter/IncrementalParser.cpp:12: /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate: 'void clang::DiagnosticsEngine::Reset()' 892 | void Reset(); | ^~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate expects 0 arguments, 1 provided /host/lib/Interpreter/IncrementalParser.cpp: In member function 'llvm::Module* cling::IncrementalParser::StartModule()': /host/lib/Interpreter/IncrementalParser.cpp:558:43: error: no matching function for call to 'clang::CodeGenerator::StartModule(std::string, llvm::LLVMContext&, clang::CodeGenOptions&)' 558 | return getCodeGenerator()->StartModule(makeModuleName(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 559 | *m_Interpreter->getLLVMContext(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 560 | getCI()->getCodeGenOpts()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /host/lib/Interpreter/IncrementalParser.cpp:39: /usr/lib/llvm-13/include/clang/CodeGen/ModuleBuilder.h:89:17: note: candidate: 'llvm::Module* clang::CodeGenerator::StartModule(llvm::StringRef, llvm::LLVMContext&)' 89 | llvm::Module* StartModule(llvm::StringRef ModuleName, llvm::LLVMContext &C); | ^~~~~~~~~~~ /usr/lib/llvm-13/include/clang/CodeGen/ModuleBuilder.h:89:17: note: candidate expects 2 arguments, 3 provided /host/lib/Interpreter/IncrementalParser.cpp: In member function 'void cling::IncrementalParser::commitTransaction(ParseResultTransaction&, bool)': /host/lib/Interpreter/IncrementalParser.cpp:570:20: error: no matching function for call to 'clang::DiagnosticsEngine::Reset(bool)' 570 | Diags.Reset(/*soft=*/true); | ~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate: 'void clang::DiagnosticsEngine::Reset()' 892 | void Reset(); | ^~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate expects 0 arguments, 1 provided /host/lib/Interpreter/IncrementalParser.cpp:602:18: error: no matching function for call to 'clang::DiagnosticsEngine::Reset(bool)' 602 | Diags.Reset(/*soft=*/true); | ~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate: 'void clang::DiagnosticsEngine::Reset()' 892 | void Reset(); | ^~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate expects 0 arguments, 1 provided /host/lib/Interpreter/IncrementalParser.cpp: In member function 'void cling::IncrementalParser::codeGenTransaction(cling::Transaction*)': /host/lib/Interpreter/IncrementalParser.cpp:752:20: error: no matching function for call to 'clang::DiagnosticsEngine::Reset(bool)' 752 | Diags.Reset(/*soft=*/true); | ~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate: 'void clang::DiagnosticsEngine::Reset()' 892 | void Reset(); | ^~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate expects 0 arguments, 1 provided /host/lib/Interpreter/IncrementalParser.cpp: In member function 'cling::IncrementalParser::EParseResult cling::IncrementalParser::ParseInternal(llvm::StringRef)': /host/lib/Interpreter/IncrementalParser.cpp:925:11: error: 'SavePendingInstantiationsRAII' is not a member of 'clang::Sema' 925 | Sema::SavePendingInstantiationsRAII SavedPendingInstantiations(S); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics [8/23] Building CXX object lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/Interpreter.cpp.o FAILED: lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/Interpreter.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Interpreter -I/host/lib/Interpreter -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fexceptions -MD -MT lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/Interpreter.cpp.o -MF lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/Interpreter.cpp.o.d -o lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/Interpreter.cpp.o -c /host/lib/Interpreter/Interpreter.cpp /host/lib/Interpreter/Interpreter.cpp: In constructor 'cling::Interpreter::Interpreter(int, const char* const*, const char*, const ModuleFileExtensions&, void*, bool, const cling::Interpreter*)': /host/lib/Interpreter/Interpreter.cpp:256:68: error: no matching function for call to 'clang::Parser::Parser(clang::Preprocessor&, clang::Sema&, bool, bool)' 256 | /*isTemp*/true), this)); | ^ In file included from /host/lib/Interpreter/Interpreter.cpp:56: /usr/lib/llvm-13/include/clang/Parse/Parser.h:433:3: note: candidate: 'clang::Parser::Parser(clang::Preprocessor&, clang::Sema&, bool)' 433 | Parser(Preprocessor &PP, Sema &Actions, bool SkipFunctionBodies); | ^~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:433:3: note: candidate expects 3 arguments, 4 provided /host/lib/Interpreter/Interpreter.cpp: In member function 'cling::Interpreter::CompilationResult cling::Interpreter::codeComplete(const std::string&, size_t&, std::vector >&) const': /host/lib/Interpreter/Interpreter.cpp:1057:28: error: no matching function for call to 'clang::DiagnosticsEngine::Reset(bool)' 1057 | parentDiagnostics.Reset(/*soft=*/true); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/lib/llvm-13/include/clang/AST/NestedNameSpecifier.h:18, from /usr/lib/llvm-13/include/clang/AST/Type.h:21, from /usr/lib/llvm-13/include/clang/AST/DeclarationName.h:16, from /usr/lib/llvm-13/include/clang/AST/DeclBase.h:18, from /usr/lib/llvm-13/include/clang/AST/Decl.h:19, from /host/lib/Interpreter/ASTTransformer.h:15, from /host/lib/Interpreter/DynamicLookup.h:13, from /host/lib/Interpreter/Interpreter.cpp:17: /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate: 'void clang::DiagnosticsEngine::Reset()' 892 | void Reset(); | ^~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate expects 0 arguments, 1 provided /host/lib/Interpreter/Interpreter.cpp: In member function 'std::string cling::Interpreter::lookupFileOrLibrary(llvm::StringRef)': /host/lib/Interpreter/Interpreter.cpp:1450:28: error: no matching function for call to 'clang::Preprocessor::LookupFile(clang::SourceLocation&, std::string&, bool&, const clang::DirectoryLookup*&, const clang::FileEntry*&, const clang::DirectoryLookup*&, std::nullptr_t, std::nullptr_t, std::nullptr_t, std::nullptr_t, std::nullptr_t, bool, bool, bool)' 1450 | auto FE = PP.LookupFile(fileNameLoc, canonicalFile, isAngled, FromDir, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1451 | FromFile, CurDir, /*SearchPath*/nullptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1452 | /*RelativePath*/ nullptr, /*suggestedModule*/nullptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1453 | /*IsMapped*/ nullptr, /*IsFrameworkFound*/ nullptr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1454 | /*SkipCache*/ false, /*OpenFile*/ false, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1455 | /*CacheFail*/ false); | ~~~~~~~~~~~~~~~~~~~~ In file included from /host/lib/Interpreter/Interpreter.cpp:55: /usr/lib/llvm-13/include/clang/Lex/Preprocessor.h:2015:3: note: candidate: 'llvm::Optional clang::Preprocessor::LookupFile(clang::SourceLocation, llvm::StringRef, bool, const clang::DirectoryLookup*, const clang::FileEntry*, const clang::DirectoryLookup*&, llvm::SmallVectorImpl*, llvm::SmallVectorImpl*, clang::ModuleMap::KnownHeader*, bool*, bool*, bool)' 2015 | LookupFile(SourceLocation FilenameLoc, StringRef Filename, bool isAngled, | ^~~~~~~~~~ /usr/lib/llvm-13/include/clang/Lex/Preprocessor.h:2015:3: note: candidate expects 12 arguments, 14 provided At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics [9/23] Building CXX object lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/LookupHelper.cpp.o FAILED: lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/LookupHelper.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Interpreter -I/host/lib/Interpreter -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -MD -MT lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/LookupHelper.cpp.o -MF lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/LookupHelper.cpp.o.d -o lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/LookupHelper.cpp.o -c /host/lib/Interpreter/LookupHelper.cpp In file included from /host/lib/Interpreter/LookupHelper.cpp:16: /host/include/cling/Utils/ParserStateRAII.h:32:40: error: 'llvm::SmallVector clang::Parser::TemplateIds' is private within this context 32 | decltype(clang::Parser::TemplateIds) OldTemplateIds; | ^ In file included from /host/include/cling/Utils/ParserStateRAII.h:14: /usr/lib/llvm-13/include/clang/Parse/Parser.h:284:43: note: declared private here 284 | SmallVector TemplateIds; | ^~~~~~~~~~~ /host/lib/Interpreter/LookupHelper.cpp:46:26: error: 'CleanupAndRestoreCacheRAII' in 'class clang::Preprocessor' does not name a type 46 | clang::Preprocessor::CleanupAndRestoreCacheRAII fCleanupRAII; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /host/lib/Interpreter/LookupHelper.cpp:47:20: error: 'ParserCurTokRestoreRAII' in 'class clang::Parser' does not name a type 47 | clang::Parser::ParserCurTokRestoreRAII fSavedCurToken; | ^~~~~~~~~~~~~~~~~~~~~~~ /host/lib/Interpreter/LookupHelper.cpp: In constructor 'cling::StartParsingRAII::StartParsingRAII(cling::LookupHelper&, llvm::StringRef, llvm::StringRef, cling::LookupHelper::DiagSetting)': /host/lib/Interpreter/LookupHelper.cpp:57:11: error: class 'cling::StartParsingRAII' does not have any field named 'fCleanupRAII' 57 | fCleanupRAII(LH.m_Parser->getPreprocessor()), | ^~~~~~~~~~~~ /host/lib/Interpreter/LookupHelper.cpp:58:11: error: class 'cling::StartParsingRAII' does not have any field named 'fSavedCurToken' 58 | fSavedCurToken(*LH.m_Parser), | ^~~~~~~~~~~~~~ /host/lib/Interpreter/LookupHelper.cpp: In member function 'const clang::Decl* cling::LookupHelper::findScope(llvm::StringRef, DiagSetting, const clang::Type**, bool) const': /host/lib/Interpreter/LookupHelper.cpp:754:29: error: no matching function for call to 'clang::DiagnosticsEngine::Reset(bool)' 754 | S.getDiagnostics().Reset(/*soft=*/true); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/lib/llvm-13/include/clang/AST/NestedNameSpecifier.h:18, from /usr/lib/llvm-13/include/clang/AST/Type.h:21, from /usr/lib/llvm-13/include/clang/AST/DeclarationName.h:16, from /usr/lib/llvm-13/include/clang/AST/DeclBase.h:18, from /usr/lib/llvm-13/include/clang/AST/Decl.h:19, from /usr/lib/llvm-13/include/clang/AST/DeclVisitor.h:16, from /host/lib/Interpreter/DeclUnloader.h:15, from /host/lib/Interpreter/LookupHelper.cpp:13: /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate: 'void clang::DiagnosticsEngine::Reset()' 892 | void Reset(); | ^~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate expects 0 arguments, 1 provided /host/lib/Interpreter/LookupHelper.cpp: In member function 'bool cling::ParseProto::Parse(llvm::SmallVectorImpl&, const ArgsInput&, cling::LookupHelper::DiagSetting, clang::Parser&, const cling::Interpreter*, cling::LookupHelper&)': /host/lib/Interpreter/LookupHelper.cpp:1724:31: error: no matching function for call to 'clang::DiagnosticsEngine::Reset(bool)' 1724 | S.getDiagnostics().Reset(/*soft=*/true); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate: 'void clang::DiagnosticsEngine::Reset()' 892 | void Reset(); | ^~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate expects 0 arguments, 1 provided /host/lib/Interpreter/LookupHelper.cpp: In member function 'bool cling::ParseArgs::Parse(llvm::SmallVectorImpl&, llvm::StringRef, cling::LookupHelper::DiagSetting, clang::Parser&, const cling::Interpreter*, cling::LookupHelper&)': /host/lib/Interpreter/LookupHelper.cpp:1991:31: error: no matching function for call to 'clang::DiagnosticsEngine::Reset(bool)' 1991 | S.getDiagnostics().Reset(/*soft=*/true); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate: 'void clang::DiagnosticsEngine::Reset()' 892 | void Reset(); | ^~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate expects 0 arguments, 1 provided At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics [10/23] Building CXX object lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/Transaction.cpp.o FAILED: lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/Transaction.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Interpreter -I/host/lib/Interpreter -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -MD -MT lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/Transaction.cpp.o -MF lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/Transaction.cpp.o.d -o lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/Transaction.cpp.o -c /host/lib/Interpreter/Transaction.cpp /host/lib/Interpreter/Transaction.cpp: In member function 'void cling::Transaction::MacroDirectiveInfo::print(llvm::raw_ostream&, const clang::Preprocessor&) const': /host/lib/Interpreter/Transaction.cpp:295:8: error: 'const class clang::Preprocessor' has no member named 'printMacro'; did you mean 'clang::Token* clang::Preprocessor::ArgMacro'? (not accessible from this context) 295 | PP.printMacro(this->m_II, this->m_MD, Out); | ^~~~~~~~~~ In file included from /host/lib/Interpreter/Transaction.cpp:19: /usr/lib/llvm-13/include/clang/Lex/Preprocessor.h:183:10: note: declared private here 183 | Token* ArgMacro; | ^~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics [11/23] Building CXX object lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/TransactionUnloader.cpp.o FAILED: lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/TransactionUnloader.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Interpreter -I/host/lib/Interpreter -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -MD -MT lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/TransactionUnloader.cpp.o -MF lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/TransactionUnloader.cpp.o.d -o lib/Interpreter/CMakeFiles/obj.clingInterpreter.dir/TransactionUnloader.cpp.o -c /host/lib/Interpreter/TransactionUnloader.cpp /host/lib/Interpreter/TransactionUnloader.cpp: In member function 'bool cling::TransactionUnloader::RevertTransaction(cling::Transaction*)': /host/lib/Interpreter/TransactionUnloader.cpp:166:34: error: 'class clang::SourceManager' has no member named 'invalidateCache' 166 | m_Sema->getSourceManager().invalidateCache(T->getBufferFID()); | ^~~~~~~~~~~~~~~ /host/lib/Interpreter/TransactionUnloader.cpp: In member function 'bool cling::TransactionUnloader::unloadModule(llvm::Module*)': /host/lib/Interpreter/TransactionUnloader.cpp:178:18: error: 'class clang::CodeGenerator' has no member named 'forgetGlobal' 178 | m_CodeGen->forgetGlobal(&Func); | ^~~~~~~~~~~~ /host/lib/Interpreter/TransactionUnloader.cpp:180:18: error: 'class clang::CodeGenerator' has no member named 'forgetGlobal' 180 | m_CodeGen->forgetGlobal(&Glob); | ^~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics [12/23] Building CXX object lib/Utils/CMakeFiles/obj.clingUtils.dir/Diagnostics.cpp.o FAILED: lib/Utils/CMakeFiles/obj.clingUtils.dir/Diagnostics.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Utils -I/host/lib/Utils -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -MD -MT lib/Utils/CMakeFiles/obj.clingUtils.dir/Diagnostics.cpp.o -MF lib/Utils/CMakeFiles/obj.clingUtils.dir/Diagnostics.cpp.o.d -o lib/Utils/CMakeFiles/obj.clingUtils.dir/Diagnostics.cpp.o -c /host/lib/Utils/Diagnostics.cpp /host/lib/Utils/Diagnostics.cpp: In destructor 'virtual cling::utils::DiagnosticsStore::~DiagnosticsStore()': /host/lib/Utils/Diagnostics.cpp:44:18: error: no matching function for call to 'clang::DiagnosticsEngine::Reset(bool)' 44 | m_Diags.Reset(true); | ~~~~~~~~~~~~~^~~~~~ In file included from /host/include/cling/Utils/Diagnostics.h:13, from /host/lib/Utils/Diagnostics.cpp:10: /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate: 'void clang::DiagnosticsEngine::Reset()' 892 | void Reset(); | ^~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate expects 0 arguments, 1 provided At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics [13/23] Building CXX object lib/Utils/CMakeFiles/obj.clingUtils.dir/ParserStateRAII.cpp.o FAILED: lib/Utils/CMakeFiles/obj.clingUtils.dir/ParserStateRAII.cpp.o /usr/bin/c++ -DCLING_VERSION=1.0 -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/build/lib/Utils -I/host/lib/Utils -I/host/include -I/tmp/build/include -isystem /usr/lib/llvm-13/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Wno-nested-anon-types -Wno-covered-switch-default -Wno-unused-local-typedef -fno-rtti -O2 -g -DNDEBUG -fvisibility=default -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -MD -MT lib/Utils/CMakeFiles/obj.clingUtils.dir/ParserStateRAII.cpp.o -MF lib/Utils/CMakeFiles/obj.clingUtils.dir/ParserStateRAII.cpp.o.d -o lib/Utils/CMakeFiles/obj.clingUtils.dir/ParserStateRAII.cpp.o -c /host/lib/Utils/ParserStateRAII.cpp In file included from /host/lib/Utils/ParserStateRAII.cpp:10: /host/include/cling/Utils/ParserStateRAII.h:32:40: error: 'llvm::SmallVector clang::Parser::TemplateIds' is private within this context 32 | decltype(clang::Parser::TemplateIds) OldTemplateIds; | ^ In file included from /host/include/cling/Utils/ParserStateRAII.h:14: /usr/lib/llvm-13/include/clang/Parse/Parser.h:284:43: note: declared private here 284 | SmallVector TemplateIds; | ^~~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp: In constructor 'cling::ParserStateRAII::ParserStateRAII(clang::Parser&, bool)': /host/lib/Utils/ParserStateRAII.cpp:28:12: error: 'clang::Token clang::Parser::Tok' is private within this context 28 | OldTok(p.Tok), OldPrevTokLocation(p.PrevTokLocation), | ^~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:73:9: note: declared private here 73 | Token Tok; | ^~~ /host/lib/Utils/ParserStateRAII.cpp:28:39: error: 'clang::SourceLocation clang::Parser::PrevTokLocation' is private within this context 28 | OldTok(p.Tok), OldPrevTokLocation(p.PrevTokLocation), | ^~~~~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:79:18: note: declared private here 79 | SourceLocation PrevTokLocation; | ^~~~~~~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:29:19: error: 'short unsigned int clang::Parser::ParenCount' is private within this context 29 | OldParenCount(p.ParenCount), OldBracketCount(p.BracketCount), | ^~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:85:18: note: declared private here 85 | unsigned short ParenCount = 0, BracketCount = 0, BraceCount = 0; | ^~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:29:50: error: 'short unsigned int clang::Parser::BracketCount' is private within this context 29 | OldParenCount(p.ParenCount), OldBracketCount(p.BracketCount), | ^~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:85:34: note: declared private here 85 | unsigned short ParenCount = 0, BracketCount = 0, BraceCount = 0; | ^~~~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:30:19: error: 'short unsigned int clang::Parser::BraceCount' is private within this context 30 | OldBraceCount(p.BraceCount), | ^~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:85:52: note: declared private here 85 | unsigned short ParenCount = 0, BracketCount = 0, BraceCount = 0; | ^~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:31:31: error: 'unsigned int clang::Parser::TemplateParameterDepth' is private within this context 31 | OldTemplateParameterDepth(p.TemplateParameterDepth), | ^~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:245:12: note: declared private here 245 | unsigned TemplateParameterDepth; | ^~~~~~~~~~~~~~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:38:26: error: 'llvm::SmallVector clang::Parser::TemplateIds' is private within this context 38 | OldTemplateIds.swap(P->TemplateIds); | ^~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:284:43: note: declared private here 284 | SmallVector TemplateIds; | ^~~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:39:6: error: 'short unsigned int clang::Parser::ParenCount' is private within this context 39 | P->ParenCount = 0; | ^~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:85:18: note: declared private here 85 | unsigned short ParenCount = 0, BracketCount = 0, BraceCount = 0; | ^~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:40:6: error: 'short unsigned int clang::Parser::BracketCount' is private within this context 40 | P->BracketCount = 0; | ^~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:85:34: note: declared private here 85 | unsigned short ParenCount = 0, BracketCount = 0, BraceCount = 0; | ^~~~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:41:6: error: 'short unsigned int clang::Parser::BraceCount' is private within this context 41 | P->BraceCount = 0; | ^~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:85:52: note: declared private here 85 | unsigned short ParenCount = 0, BracketCount = 0, BraceCount = 0; | ^~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:42:6: error: 'unsigned int clang::Parser::TemplateParameterDepth' is private within this context 42 | P->TemplateParameterDepth = 0; | ^~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:245:12: note: declared private here 245 | unsigned TemplateParameterDepth; | ^~~~~~~~~~~~~~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp: In destructor 'cling::ParserStateRAII::~ParserStateRAII()': /host/lib/Utils/ParserStateRAII.cpp:54:13: error: 'struct clang::Parser::DestroyTemplateIdAnnotationsRAIIObj' is private within this context 54 | Parser::DestroyTemplateIdAnnotationsRAIIObj CleanupTemplateIds(*P); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:295:10: note: declared private here 295 | struct DestroyTemplateIdAnnotationsRAIIObj { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:56:6: error: 'llvm::SmallVector clang::Parser::TemplateIds' is private within this context 56 | P->TemplateIds.swap(OldTemplateIds); | ^~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:284:43: note: declared private here 284 | SmallVector TemplateIds; | ^~~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:60:8: error: 'clang::Token clang::Parser::Tok' is private within this context 60 | P->Tok = OldTok; | ^~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:73:9: note: declared private here 73 | Token Tok; | ^~~ /host/lib/Utils/ParserStateRAII.cpp:64:43: error: no matching function for call to 'clang::DiagnosticsEngine::Reset(bool)' 64 | P->getActions().getDiagnostics().Reset(/*soft=*/true); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /usr/lib/llvm-13/include/clang/Lex/Preprocessor.h:17, from /usr/lib/llvm-13/include/clang/Parse/Parser.h:22: /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate: 'void clang::DiagnosticsEngine::Reset()' 892 | void Reset(); | ^~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate expects 0 arguments, 1 provided /host/lib/Utils/ParserStateRAII.cpp:68:30: error: no matching function for call to 'clang::DiagnosticsEngine::Reset(bool)' 68 | PP.getDiagnostics().Reset(/*soft=*/true); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate: 'void clang::DiagnosticsEngine::Reset()' 892 | void Reset(); | ^~~~~ /usr/lib/llvm-13/include/clang/Basic/Diagnostic.h:892:8: note: candidate expects 0 arguments, 1 provided /host/lib/Utils/ParserStateRAII.cpp:73:6: error: 'clang::SourceLocation clang::Parser::PrevTokLocation' is private within this context 73 | P->PrevTokLocation = OldPrevTokLocation; | ^~~~~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:79:18: note: declared private here 79 | SourceLocation PrevTokLocation; | ^~~~~~~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:74:6: error: 'short unsigned int clang::Parser::ParenCount' is private within this context 74 | P->ParenCount = OldParenCount; | ^~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:85:18: note: declared private here 85 | unsigned short ParenCount = 0, BracketCount = 0, BraceCount = 0; | ^~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:75:6: error: 'short unsigned int clang::Parser::BracketCount' is private within this context 75 | P->BracketCount = OldBracketCount; | ^~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:85:34: note: declared private here 85 | unsigned short ParenCount = 0, BracketCount = 0, BraceCount = 0; | ^~~~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:76:6: error: 'short unsigned int clang::Parser::BraceCount' is private within this context 76 | P->BraceCount = OldBraceCount; | ^~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:85:52: note: declared private here 85 | unsigned short ParenCount = 0, BracketCount = 0, BraceCount = 0; | ^~~~~~~~~~ /host/lib/Utils/ParserStateRAII.cpp:77:6: error: 'unsigned int clang::Parser::TemplateParameterDepth' is private within this context 77 | P->TemplateParameterDepth = OldTemplateParameterDepth; | ^~~~~~~~~~~~~~~~~~~~~~ /usr/lib/llvm-13/include/clang/Parse/Parser.h:245:12: note: declared private here 245 | unsigned TemplateParameterDepth; | ^~~~~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-unused-local-typedef' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-covered-switch-default' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-nested-anon-types' may have been intended to silence earlier diagnostics ninja: build stopped: cannot make progress due to previous errors. ```
vgvassilev commented 6 months ago

Hi @nolange, cling ships with a patched version of llvm. Please take a look at the readme file.

nolange commented 6 months ago

I wasnt aware of that.