Candidate function not viable: no known conversion from 'swift::ModuleDecl *' to 'const swift::IRGenOptions'

compiling swift, latest from git, on arch linux fails with his error:

FAILED: source/Plugins/ExpressionParser/Swift/CMakeFiles/lldbPluginExpressionParserSwift.dir/SwiftExpressionParser.cpp.o 
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DHAVE_ROUND -DLLDB_CONFIGURATION_RELEASE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Isource/Plugins/ExpressionParser/Swift -I/src/swift-language-gh/llvm-project/lldb/source/Plugins/ExpressionParser/Swift -Isource -I/src/swift-language-gh/llvm-project/lldb/include -Iinclude -I/src/swift-language-gh/llvm-project/llvm/include -I/src/swift-language-gh/build/buildbot_linux/llvm-linux-x86_64/include -I/src/swift-language-gh/llvm-project/clang/include -I/src/swift-language-gh/build/buildbot_linux/llvm-linux-x86_64/tools/clang/include -I/src/swift-language-gh/build/buildbot_linux/swift-linux-x86_64/include -I/src/swift-language-gh/swift/include -I/src/swift-language-gh/llvm-project/lldb/source -I/usr/include/python3.8 -I/src/swift-language-gh/llvm-project/lldb/tools/clang/include -I../clang/include -I/usr/include/libxml2 -I/src/swift-language-gh/llvm-project/lldb/source/. -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -w -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -O3    -UNDEBUG  -fno-exceptions -fno-rtti -std=c++14 -MD -MT source/Plugins/ExpressionParser/Swift/CMakeFiles/lldbPluginExpressionParserSwift.dir/SwiftExpressionParser.cpp.o -MF source/Plugins/ExpressionParser/Swift/CMakeFiles/lldbPluginExpressionParserSwift.dir/SwiftExpressionParser.cpp.o.d -o source/Plugins/ExpressionParser/Swift/CMakeFiles/lldbPluginExpressionParserSwift.dir/SwiftExpressionParser.cpp.o -c /src/swift-language-gh/llvm-project/lldb/source/Plugins/ExpressionParser/Swift/SwiftExpressionParser.cpp
/src/swift-language-gh/llvm-project/lldb/source/Plugins/ExpressionParser/Swift/SwiftExpressionParser.cpp:1673:22: error: no matching function for call to 'performIRGeneration'
    auto GenModule = swift::performIRGeneration(
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/src/swift-language-gh/swift/include/swift/Subsystems.h:210:3: note: candidate function not viable: no known conversion from 'swift::ModuleDecl *' to 'const swift::IRGenOptions' for 1st argument
  performIRGeneration(const IRGenOptions &Opts, ModuleDecl *M,
  ^
/src/swift-language-gh/swift/include/swift/Subsystems.h:221:3: note: candidate function not viable: no known conversion from 'swift::ModuleDecl *' to 'const swift::IRGenOptions' for 1st argument
  performIRGeneration(const IRGenOptions &Opts, SourceFile &SF,
  ^
1 error generated.

anybody saw this or would have an idea how to approach the error?

Terms of Service

Privacy Policy

Cookie Policy