FailedOk

th/SRPMS[OK]
th/x32[OK]
th/i686[OK]
th/x86_64[OK]

ac/SRPMS[OK]
ac/i386[OK]
ac/i586[OK]
ac/i686[OK]
ac/alpha[OK]
ac/amd64[OK]
ac/athlon[OK]
ac/ppc[OK]
ac/sparc[OK]
ac/sparc64[OK]

Advanced Search
main()
Powered by PLD Linux
(c) 2002-2021 PLD Team
$Revision: 1.37 $
Powered by Linus.
Your IP: 35.173.234.169

rust 3c56a072-8708-4b34-b1c3-afb2b014244b

Status:Failed
Source URL:https://buildlogs.pld-linux.org/pld/th/x86_64/FAIL/rust,3c56a072-8708-4b34-b1c3-afb2b014244b.bz2
text/plain URL:View!
full text:View!
rpm -qa of builder:View!
Date:2021/05/25 09:41:56
Runtime:0:06:54.730483

Toc:

  • error 1
  • warning: ../rustllvm/PassWrapper.cpp:679:7: error: 'class llvm::PassInstrumentationCallbacks' has no member named 'registerBeforePassCallback'; did you mean 'registerAfterPassCallback'?
  • error 2
  • warning: ../rustllvm/PassWrapper.cpp:757:28: error: no matching function for call to 'llvm::StandardInstrumentations::StandardInstrumentations()'
  • error 3
  • warning: ../rustllvm/PassWrapper.cpp:773:39: error: no matching function for call to 'llvm::PassBuilder::PassBuilder(llvm::TargetMachine*&, llvm::PipelineTuningOptions&, llvm::Optional<llvm::PGOOptions>&, llvm::PassInstrumentationCallbacks*)'
  • error 4
  • warning: ../rustllvm/PassWrapper.cpp:782:58: error: invalid use of incomplete type 'class llvm::AAManager'
  • error 5
  • warning: ../rustllvm/PassWrapper.cpp:917:34: error: no matching function for call to 'llvm::PassBuilder::addPGOInstrPassesForO0(llvm::ModulePassManager&, bool&, bool, bool, std::string&, std::string&)'
  • error 6
  • warning: ../rustllvm/PassWrapper.cpp:924:44: error: cannot convert 'const std::function<void(llvm::PassManager<llvm::Module>&)>' to 'const std::function<void(llvm::PassManager<llvm::Module>&, llvm::PassBuilder::OptimizationLevel)>&'
  • error 7
  • warning: ../rustllvm/PassWrapper.cpp:935:52: error: no matching function for call to 'llvm::PassBuilder::buildThinLTOPreLinkDefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&)'
  • error 8
  • warning: ../rustllvm/PassWrapper.cpp:949:48: error: no matching function for call to 'llvm::PassBuilder::buildLTOPreLinkDefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&)'
  • error 9
  • warning: ../rustllvm/PassWrapper.cpp:954:45: error: no matching function for call to 'llvm::PassBuilder::buildThinLTODefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&, std::nullptr_t)'
  • error 10
  • warning: ../rustllvm/PassWrapper.cpp:957:41: error: no matching function for call to 'llvm::PassBuilder::buildLTODefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&, std::nullptr_t)'
  • error 11
  • warning: /usr/include/llvm/ADT/FunctionExtras.h:195:16: error: no match for call to '(LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>) (llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&)'
  • error 12
  • warning: /usr/include/llvm/ADT/FunctionExtras.h:195:16: error: no match for call to '(LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>) (llvm::StringRef, const llvm::PreservedAnalyses&)'
  • error 13
  • error: failed to run custom build command for `rustc_llvm v0.0.0 (/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/librustc_llvm)`
  • error 14
  • cargo:warning=../rustllvm/PassWrapper.cpp:679:7: error: 'class llvm::PassInstrumentationCallbacks' has no member named 'registerBeforePassCallback'; did you mean 'registerAfterPassCallback'?
  • error 15
  • cargo:warning=../rustllvm/PassWrapper.cpp:757:28: error: no matching function for call to 'llvm::StandardInstrumentations::StandardInstrumentations()'
  • error 16
  • cargo:warning=../rustllvm/PassWrapper.cpp:773:39: error: no matching function for call to 'llvm::PassBuilder::PassBuilder(llvm::TargetMachine*&, llvm::PipelineTuningOptions&, llvm::Optional<llvm::PGOOptions>&, llvm::PassInstrumentationCallbacks*)'
  • error 17
  • cargo:warning=../rustllvm/PassWrapper.cpp:782:58: error: invalid use of incomplete type 'class llvm::AAManager'
  • error 18
  • cargo:warning=../rustllvm/PassWrapper.cpp:917:34: error: no matching function for call to 'llvm::PassBuilder::addPGOInstrPassesForO0(llvm::ModulePassManager&, bool&, bool, bool, std::string&, std::string&)'
  • error 19
  • cargo:warning=../rustllvm/PassWrapper.cpp:924:44: error: cannot convert 'const std::function<void(llvm::PassManager<llvm::Module>&)>' to 'const std::function<void(llvm::PassManager<llvm::Module>&, llvm::PassBuilder::OptimizationLevel)>&'
  • error 20
  • cargo:warning=../rustllvm/PassWrapper.cpp:935:52: error: no matching function for call to 'llvm::PassBuilder::buildThinLTOPreLinkDefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&)'
  • error 21
  • cargo:warning=../rustllvm/PassWrapper.cpp:949:48: error: no matching function for call to 'llvm::PassBuilder::buildLTOPreLinkDefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&)'
  • error 22
  • cargo:warning=../rustllvm/PassWrapper.cpp:954:45: error: no matching function for call to 'llvm::PassBuilder::buildThinLTODefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&, std::nullptr_t)'
  • error 23
  • cargo:warning=../rustllvm/PassWrapper.cpp:957:41: error: no matching function for call to 'llvm::PassBuilder::buildLTODefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&, std::nullptr_t)'
  • error 24
  • cargo:warning=/usr/include/llvm/ADT/FunctionExtras.h:195:16: error: no match for call to '(LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>) (llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&)'
  • error 25
  • cargo:warning=/usr/include/llvm/ADT/FunctionExtras.h:195:16: error: no match for call to '(LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>) (llvm::StringRef, const llvm::PreservedAnalyses&)'
  • error 26
  • error: build failed
  • error 27
  • RuntimeError: failed to run: /tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/build/bootstrap/debug/bootstrap dist -j 4 --verbose
  • error 28
  • error: Bad exit status from /tmp/B.ShJcSe/BUILD/tmp/rpm-tmp.Fjc5Y0 (%build)
  • error 29
  • RPM build errors:
  • error 30
  • error: No files produced.

Content:

        < Llvm { target: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } }
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
running: "/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/rust-1.46.0-x86_64-unknown-linux-gnu/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "4" "--release" "--frozen" "--features" " llvm" "--manifest-path" "/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
   Compiling cfg-if v0.1.10
   Compiling libc v0.2.74
   Compiling autocfg v1.0.0
   Compiling lazy_static v1.4.0
   Compiling proc-macro2 v1.0.19
   Compiling scopeguard v1.1.0
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.38
   Compiling maybe-uninit v2.0.0
   Compiling byteorder v1.3.4
   Compiling semver-parser v0.7.0
   Compiling cc v1.0.58
   Compiling smallvec v1.4.2
   Compiling getrandom v0.1.14
   Compiling typenum v1.12.0
   Compiling log v0.4.11
   Compiling rustc-hash v1.1.0
   Compiling instant v0.1.6
   Compiling either v1.6.0
   Compiling bitflags v1.2.1
   Compiling rustc-rayon-core v0.3.0
   Compiling ppv-lite86 v0.2.8
   Compiling byte-tools v0.3.1
   Compiling arrayvec v0.5.1
   Compiling remove_dir_all v0.5.3
   Compiling stable_deref_trait v1.2.0
   Compiling rustc_graphviz v0.0.0 (/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/librustc_graphviz)
   Compiling opaque-debug v0.2.3
   Compiling fake-simd v0.1.2
   Compiling unicode-width v0.1.8
   Compiling scoped-tls v1.0.0
   Compiling termcolor v1.1.0
   Compiling annotate-snippets v0.8.0
   Compiling rustc_fs_util v0.0.0 (/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/librustc_fs_util)
   Compiling version_check v0.9.1
   Compiling datafrog v2.0.1
   Compiling tinyvec v0.3.4
   Compiling crc32fast v1.2.0
   Compiling adler v0.2.3
   Compiling serde v1.0.115
   Compiling build_helper v0.1.0 (/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/build_helper)
   Compiling regex-syntax v0.6.18
   Compiling fixedbitset v0.2.0
   Compiling unicode-script v0.5.2
   Compiling punycode v0.4.1
   Compiling ryu v1.0.5
   Compiling rustc-demangle v0.1.16
   Compiling serde_json v1.0.57
   Compiling pathdiff v0.2.0
   Compiling itoa v0.4.6
   Compiling ansi_term v0.12.1
   Compiling rustc_error_codes v0.0.0 (/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/librustc_error_codes)
   Compiling tracing-core v0.1.14
   Compiling crossbeam-utils v0.6.6
   Compiling log_settings v0.1.2
   Compiling thread_local v1.0.1
   Compiling sharded-slab v0.0.9
   Compiling lock_api v0.3.4
   Compiling lock_api v0.4.1
   Compiling semver v0.9.0
   Compiling hashbrown v0.8.2
   Compiling memoffset v0.5.5
   Compiling indexmap v1.5.1
   Compiling crossbeam-utils v0.7.2
   Compiling crossbeam-epoch v0.8.2
   Compiling itertools v0.8.2
   Compiling itertools v0.9.0
   Compiling block-padding v0.1.5
   Compiling getopts v0.2.21
   Compiling rustc_lexer v0.1.0 (/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/librustc_lexer)
   Compiling unicode-normalization v0.1.13
   Compiling miniz_oxide v0.4.0
   Compiling psm v0.1.11
   Compiling stacker v0.1.11
   Compiling rustc_llvm v0.0.0 (/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/librustc_llvm)
   Compiling regex v1.3.9
   Compiling crossbeam-queue v0.1.2
   Compiling rustc_version v0.2.3
   Compiling unicode-security v0.0.5
   Compiling smallvec v0.6.13
   Compiling parking_lot_core v0.8.0
   Compiling num_cpus v1.13.0
   Compiling parking_lot_core v0.7.2
   Compiling memmap v0.7.0
   Compiling jobserver v0.1.21
   Compiling atty v0.2.14
   Compiling termize v0.1.1
   Compiling quote v1.0.7
   Compiling parking_lot_core v0.6.2
   Compiling parking_lot v0.9.0
   Compiling ena v0.14.0
   Compiling polonius-engine v0.12.1
   Compiling regex-automata v0.1.9
The following warnings were emitted during compilation:

warning: ../rustllvm/PassWrapper.cpp: In function 'void LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)':
warning: ../rustllvm/PassWrapper.cpp:679:7: error: 'class llvm::PassInstrumentationCallbacks' has no member named 'registerBeforePassCallback'; did you mean 'registerAfterPassCallback'?
warning:   679 |   PIC.registerBeforePassCallback([LlvmSelfProfiler, BeforePassCallback](
warning:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
warning:       |       registerAfterPassCallback
warning: ../rustllvm/PassWrapper.cpp: In function 'void LLVMRustOptimizeWithNewPassManager(LLVMModuleRef, LLVMTargetMachineRef, LLVMRustPassBuilderOptLevel, LLVMRustOptStage, bool, bool, bool, bool, bool, bool, bool, bool, bool, LLVMRustSanitizerOptions*, const char*, const char*, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)':
warning: ../rustllvm/PassWrapper.cpp:757:28: error: no matching function for call to 'llvm::StandardInstrumentations::StandardInstrumentations()'
warning:   757 |   StandardInstrumentations SI;
warning:       |                            ^~
warning: In file included from ../rustllvm/PassWrapper.cpp:20:
warning: /usr/include/llvm/Passes/StandardInstrumentations.h:283:3: note: candidate: 'llvm::StandardInstrumentations::StandardInstrumentations(bool, bool)'
warning:   283 |   StandardInstrumentations(bool DebugLogging, bool VerifyEach = false);
warning:       |   ^~~~~~~~~~~~~~~~~~~~~~~~
warning: /usr/include/llvm/Passes/StandardInstrumentations.h:283:3: note:   candidate expects 2 arguments, 0 provided
warning: ../rustllvm/PassWrapper.cpp:773:39: error: no matching function for call to 'llvm::PassBuilder::PassBuilder(llvm::TargetMachine*&, llvm::PipelineTuningOptions&, llvm::Optional<llvm::PGOOptions>&, llvm::PassInstrumentationCallbacks*)'
warning:   773 |   PassBuilder PB(TM, PTO, PGOOpt, &PIC);
warning:       |                                       ^
warning: In file included from ../rustllvm/PassWrapper.cpp:18:
warning: /usr/include/llvm/Passes/PassBuilder.h:272:12: note: candidate: 'llvm::PassBuilder::PassBuilder(bool, llvm::TargetMachine*, llvm::PipelineTuningOptions, llvm::Optional<llvm::PGOOptions>, llvm::PassInstrumentationCallbacks*)'
warning:   272 |   explicit PassBuilder(bool DebugLogging = false, TargetMachine *TM = nullptr,
warning:       |            ^~~~~~~~~~~
warning: /usr/include/llvm/Passes/PassBuilder.h:272:66: note:   no known conversion for argument 2 from 'llvm::PipelineTuningOptions' to 'llvm::TargetMachine*'
warning:   272 |   explicit PassBuilder(bool DebugLogging = false, TargetMachine *TM = nullptr,
warning:       |                                                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~
warning: /usr/include/llvm/Passes/PassBuilder.h:141:7: note: candidate: 'llvm::PassBuilder::PassBuilder(const llvm::PassBuilder&)'
warning:   141 | class PassBuilder {
warning:       |       ^~~~~~~~~~~
warning: /usr/include/llvm/Passes/PassBuilder.h:141:7: note:   candidate expects 1 argument, 4 provided
warning: /usr/include/llvm/Passes/PassBuilder.h:141:7: note: candidate: 'llvm::PassBuilder::PassBuilder(llvm::PassBuilder&&)'
warning: /usr/include/llvm/Passes/PassBuilder.h:141:7: note:   candidate expects 1 argument, 4 provided
warning: ../rustllvm/PassWrapper.cpp: In lambda function:
warning: ../rustllvm/PassWrapper.cpp:782:58: error: invalid use of incomplete type 'class llvm::AAManager'
warning:   782 |   FAM.registerPass([&] { return PB.buildDefaultAAPipeline(); });
warning:       |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~^~
warning: In file included from ../rustllvm/rustllvm.h:25,
warning:                  from ../rustllvm/PassWrapper.cpp:6:
warning: /usr/include/llvm/Target/TargetMachine.h:29:7: note: forward declaration of 'class llvm::AAManager'
warning:    29 | class AAManager;
warning:       |       ^~~~~~~~~
warning: ../rustllvm/PassWrapper.cpp: In function 'void LLVMRustOptimizeWithNewPassManager(LLVMModuleRef, LLVMTargetMachineRef, LLVMRustPassBuilderOptLevel, LLVMRustOptStage, bool, bool, bool, bool, bool, bool, bool, bool, bool, LLVMRustSanitizerOptions*, const char*, const char*, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)':
warning: ../rustllvm/PassWrapper.cpp:917:34: error: no matching function for call to 'llvm::PassBuilder::addPGOInstrPassesForO0(llvm::ModulePassManager&, bool&, bool, bool, std::string&, std::string&)'
warning:   917 |         PB.addPGOInstrPassesForO0(
warning:       |         ~~~~~~~~~~~~~~~~~~~~~~~~~^
warning:   918 |             MPM, DebugPassManager, PGOOpt->Action == PGOOptions::IRInstr,
warning:       |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning:   919 |             /*IsCS=*/false, PGOOpt->ProfileFile, PGOOpt->ProfileRemappingFile);
warning:       |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from ../rustllvm/PassWrapper.cpp:18:
warning: /usr/include/llvm/Passes/PassBuilder.h:694:8: note: candidate: 'void llvm::PassBuilder::addPGOInstrPassesForO0(llvm::ModulePassManager&, bool, bool, std::string, std::string)'
warning:   694 |   void addPGOInstrPassesForO0(ModulePassManager &MPM, bool RunProfileGen,
warning:       |        ^~~~~~~~~~~~~~~~~~~~~~
warning: /usr/include/llvm/Passes/PassBuilder.h:694:8: note:   candidate expects 5 arguments, 6 provided
warning: ../rustllvm/PassWrapper.cpp:924:44: error: cannot convert 'const std::function<void(llvm::PassManager<llvm::Module>&)>' to 'const std::function<void(llvm::PassManager<llvm::Module>&, llvm::PassBuilder::OptimizationLevel)>&'
warning:   924 |         PB.registerPipelineStartEPCallback(C);
warning:       |                                            ^
warning:       |                                            |
warning:       |                                            const std::function<void(llvm::PassManager<llvm::Module>&)>
warning: In file included from ../rustllvm/PassWrapper.cpp:18:
warning: /usr/include/llvm/Passes/PassBuilder.h:608:74: note:   initializing argument 1 of 'void llvm::PassBuilder::registerPipelineStartEPCallback(const std::function<void(llvm::PassManager<llvm::Module>&, llvm::PassBuilder::OptimizationLevel)>&)'
warning:   608 |       const std::function<void(ModulePassManager &, OptimizationLevel)> &C) {
warning:       |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
warning: ../rustllvm/PassWrapper.cpp:935:52: error: no matching function for call to 'llvm::PassBuilder::buildThinLTOPreLinkDefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&)'
warning:   935 |         MPM = PB.buildThinLTOPreLinkDefaultPipeline(OptLevel, DebugPassManager);
warning:       |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from ../rustllvm/PassWrapper.cpp:18:
warning: /usr/include/llvm/Passes/PassBuilder.h:400:21: note: candidate: 'llvm::ModulePassManager llvm::PassBuilder::buildThinLTOPreLinkDefaultPipeline(llvm::PassBuilder::OptimizationLevel)'
warning:   400 |   ModulePassManager buildThinLTOPreLinkDefaultPipeline(OptimizationLevel Level);
warning:       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /usr/include/llvm/Passes/PassBuilder.h:400:21: note:   candidate expects 1 argument, 2 provided
warning: ../rustllvm/PassWrapper.cpp:949:48: error: no matching function for call to 'llvm::PassBuilder::buildLTOPreLinkDefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&)'
warning:   949 |         MPM = PB.buildLTOPreLinkDefaultPipeline(OptLevel, DebugPassManager);
warning:       |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from ../rustllvm/PassWrapper.cpp:18:
warning: /usr/include/llvm/Passes/PassBuilder.h:429:21: note: candidate: 'llvm::ModulePassManager llvm::PassBuilder::buildLTOPreLinkDefaultPipeline(llvm::PassBuilder::OptimizationLevel)'
warning:   429 |   ModulePassManager buildLTOPreLinkDefaultPipeline(OptimizationLevel Level);
warning:       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /usr/include/llvm/Passes/PassBuilder.h:429:21: note:   candidate expects 1 argument, 2 provided
warning: ../rustllvm/PassWrapper.cpp:954:45: error: no matching function for call to 'llvm::PassBuilder::buildThinLTODefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&, std::nullptr_t)'
warning:   954 |         MPM = PB.buildThinLTODefaultPipeline(OptLevel, DebugPassManager, nullptr);
warning:       |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from ../rustllvm/PassWrapper.cpp:18:
warning: /usr/include/llvm/Passes/PassBuilder.h:414:3: note: candidate: 'llvm::ModulePassManager llvm::PassBuilder::buildThinLTODefaultPipeline(llvm::PassBuilder::OptimizationLevel, const llvm::ModuleSummaryIndex*)'
warning:   414 |   buildThinLTODefaultPipeline(OptimizationLevel Level,
warning:       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /usr/include/llvm/Passes/PassBuilder.h:414:3: note:   candidate expects 2 arguments, 3 provided
warning: ../rustllvm/PassWrapper.cpp:957:41: error: no matching function for call to 'llvm::PassBuilder::buildLTODefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&, std::nullptr_t)'
warning:   957 |         MPM = PB.buildLTODefaultPipeline(OptLevel, DebugPassManager, nullptr);
warning:       |               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from ../rustllvm/PassWrapper.cpp:18:
warning: /usr/include/llvm/Passes/PassBuilder.h:442:21: note: candidate: 'llvm::ModulePassManager llvm::PassBuilder::buildLTODefaultPipeline(llvm::PassBuilder::OptimizationLevel, llvm::ModuleSummaryIndex*)'
warning:   442 |   ModulePassManager buildLTODefaultPipeline(OptimizationLevel Level,
warning:       |                     ^~~~~~~~~~~~~~~~~~~~~~~
warning: /usr/include/llvm/Passes/PassBuilder.h:442:21: note:   candidate expects 2 arguments, 3 provided
warning: In file included from /usr/include/llvm/IR/PassInstrumentation.h:53,
warning:                  from /usr/include/llvm/IR/PassManager.h:47,
warning:                  from /usr/include/llvm/Analysis/Lint.h:22,
warning:                  from ../rustllvm/rustllvm.h:8,
warning:                  from ../rustllvm/PassWrapper.cpp:6:
warning: /usr/include/llvm/ADT/FunctionExtras.h: In instantiation of 'static ReturnT llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::CallImpl(void*, llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::AdjustedParamT<ParamTs>...) [with CalledAsT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>; ReturnT = void; ParamTs = {llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&}]':
warning: /usr/include/llvm/ADT/FunctionExtras.h:330:5:   required from 'llvm::detail::UniqueFunctionBase<void, llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&>::TrivialCallback llvm::detail::UniqueFunctionBase<void, llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&>::CallbacksHolder<LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>, LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>, void>::Callbacks'
warning: /usr/include/llvm/ADT/FunctionExtras.h:253:9:   required from 'llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::UniqueFunctionBase(CallableT, llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::CalledAs<CalledAsT>) [with CallableT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>; CalledAsT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>; ReturnT = void; ParamTs = {llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&}]'
warning: /usr/include/llvm/ADT/FunctionExtras.h:351:59:   required from 'llvm::unique_function<R(P ...)>::unique_function(CallableT) [with CallableT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>; R = void; P = {llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&}]'
warning: /usr/include/llvm/ADT/SmallVector.h:912:5:   required from 'llvm::SmallVectorImpl<T>::reference llvm::SmallVectorImpl<T>::emplace_back(ArgTypes&& ...) [with ArgTypes = {LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>}; T = llvm::unique_function<void(llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&)>; llvm::SmallVectorImpl<T>::reference = llvm::unique_function<void(llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&)>&]'
warning: /usr/include/llvm/IR/PassInstrumentation.h:108:36:   required from 'void llvm::PassInstrumentationCallbacks::registerAfterPassCallback(CallableT) [with CallableT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>]'
warning: ../rustllvm/PassWrapper.cpp:687:32:   required from here
warning: /usr/include/llvm/ADT/FunctionExtras.h:195:16: error: no match for call to '(LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>) (llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&)'
warning:   195 |     return Func(std::forward<ParamTs>(Params)...);
warning:       |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: ../rustllvm/PassWrapper.cpp:688:7: note: candidate: 'LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>'
warning:   688 |       [LlvmSelfProfiler, AfterPassCallback](StringRef Pass, llvm::Any Ir) {
warning:       |       ^
warning: ../rustllvm/PassWrapper.cpp:688:7: note:   candidate expects 2 arguments, 3 provided
warning: In file included from /usr/include/llvm/IR/PassInstrumentation.h:53,
warning:                  from /usr/include/llvm/IR/PassManager.h:47,
warning:                  from /usr/include/llvm/Analysis/Lint.h:22,
warning:                  from ../rustllvm/rustllvm.h:8,
warning:                  from ../rustllvm/PassWrapper.cpp:6:
warning: /usr/include/llvm/ADT/FunctionExtras.h: In instantiation of 'static ReturnT llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::CallImpl(void*, llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::AdjustedParamT<ParamTs>...) [with CalledAsT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>; ReturnT = void; ParamTs = {llvm::StringRef, const llvm::PreservedAnalyses&}]':
warning: /usr/include/llvm/ADT/FunctionExtras.h:330:5:   required from 'llvm::detail::UniqueFunctionBase<void, llvm::StringRef, const llvm::PreservedAnalyses&>::TrivialCallback llvm::detail::UniqueFunctionBase<void, llvm::StringRef, const llvm::PreservedAnalyses&>::CallbacksHolder<LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>, LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>, void>::Callbacks'
warning: /usr/include/llvm/ADT/FunctionExtras.h:253:9:   required from 'llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::UniqueFunctionBase(CallableT, llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::CalledAs<CalledAsT>) [with CallableT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>; CalledAsT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>; ReturnT = void; ParamTs = {llvm::StringRef, const llvm::PreservedAnalyses&}]'
warning: /usr/include/llvm/ADT/FunctionExtras.h:351:59:   required from 'llvm::unique_function<R(P ...)>::unique_function(CallableT) [with CallableT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>; R = void; P = {llvm::StringRef, const llvm::PreservedAnalyses&}]'
warning: /usr/include/llvm/ADT/SmallVector.h:912:5:   required from 'llvm::SmallVectorImpl<T>::reference llvm::SmallVectorImpl<T>::emplace_back(ArgTypes&& ...) [with ArgTypes = {LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>}; T = llvm::unique_function<void(llvm::StringRef, const llvm::PreservedAnalyses&)>; llvm::SmallVectorImpl<T>::reference = llvm::unique_function<void(llvm::StringRef, const llvm::PreservedAnalyses&)>&]'
warning: /usr/include/llvm/IR/PassInstrumentation.h:113:47:   required from 'void llvm::PassInstrumentationCallbacks::registerAfterPassInvalidatedCallback(CallableT) [with CallableT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>]'
warning: ../rustllvm/PassWrapper.cpp:692:43:   required from here
warning: /usr/include/llvm/ADT/FunctionExtras.h:195:16: error: no match for call to '(LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>) (llvm::StringRef, const llvm::PreservedAnalyses&)'
warning:   195 |     return Func(std::forward<ParamTs>(Params)...);
warning:       |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: ../rustllvm/PassWrapper.cpp:693:7: note: candidate: 'LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>'
warning:   693 |       [LlvmSelfProfiler, AfterPassCallback](StringRef Pass) {
warning:       |       ^
warning: ../rustllvm/PassWrapper.cpp:693:7: note:   candidate expects 1 argument, 2 provided

error: failed to run custom build command for `rustc_llvm v0.0.0 (/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/librustc_llvm)`

Caused by:
  process didn't exit successfully: `/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/release/build/rustc_llvm-ca04812eb6d6bb20/build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-env-changed=RUST_CHECK
  cargo:rerun-if-env-changed=REAL_LIBRARY_PATH_VAR
  cargo:rerun-if-env-changed=REAL_LIBRARY_PATH
  cargo:rerun-if-env-changed=LLVM_CONFIG
  cargo:rerun-if-changed=/usr/bin/llvm-config
  cargo:rustc-cfg=llvm_component="aarch64"
  cargo:rustc-cfg=llvm_component="amdgpu"
  cargo:rustc-cfg=llvm_component="arm"
  cargo:rustc-cfg=llvm_component="asmparser"
  cargo:rustc-cfg=llvm_component="avr"
  cargo:rustc-cfg=llvm_component="bitreader"
  cargo:rustc-cfg=llvm_component="bitwriter"
  cargo:rustc-cfg=llvm_component="coverage"
  cargo:rustc-cfg=llvm_component="hexagon"
  cargo:rustc-cfg=llvm_component="instrumentation"
  cargo:rustc-cfg=llvm_component="ipo"
  cargo:rustc-cfg=llvm_component="linker"
  cargo:rustc-cfg=llvm_component="lto"
  cargo:rustc-cfg=llvm_component="mips"
  cargo:rustc-cfg=llvm_component="msp430"
  cargo:rustc-cfg=llvm_component="nvptx"
  cargo:rustc-cfg=llvm_component="powerpc"
  cargo:rustc-cfg=llvm_component="riscv"
  cargo:rustc-cfg=llvm_component="sparc"
  cargo:rustc-cfg=llvm_component="systemz"
  cargo:rustc-cfg=llvm_component="webassembly"
  cargo:rustc-cfg=llvm_component="x86"
  cargo:rustc-cfg=llvm_has_msp430_asm_parser
  cargo:rerun-if-env-changed=LLVM_RUSTLLVM
  cargo:rerun-if-env-changed=LLVM_NDEBUG
  cargo:rerun-if-changed=../rustllvm/RustWrapper.cpp
  cargo:rerun-if-changed=../rustllvm/PassWrapper.cpp
  cargo:rerun-if-changed=../rustllvm/CoverageMappingWrapper.cpp
  cargo:rerun-if-changed=../rustllvm/ArchiveWrapper.cpp
  cargo:rerun-if-changed=../rustllvm/Linker.cpp
  cargo:rerun-if-changed=../rustllvm/rustllvm.h
  cargo:rerun-if-changed=../rustllvm/.editorconfig
  cargo:rerun-if-changed=../rustllvm/README
  TARGET = Some("x86_64-unknown-linux-gnu")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-unknown-linux-gnu")
  CXX_x86_64-unknown-linux-gnu = Some("c++")
  CXXFLAGS_x86_64-unknown-linux-gnu = Some("-ffunction-sections -fdata-sections -fPIC -m64")
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,mmx,sse,sse2")
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I/usr/include" "-std=c++14" "-fno-exceptions" "-D_GNU_SOURCE" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DLLVM_COMPONENT_AARCH64" "-DLLVM_COMPONENT_AMDGPU" "-DLLVM_COMPONENT_ARM" "-DLLVM_COMPONENT_ASMPARSER" "-DLLVM_COMPONENT_AVR" "-DLLVM_COMPONENT_BITREADER" "-DLLVM_COMPONENT_BITWRITER" "-DLLVM_COMPONENT_COVERAGE" "-DLLVM_COMPONENT_HEXAGON" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_MIPS" "-DLLVM_COMPONENT_MSP430" "-DLLVM_COMPONENT_NVPTX" "-DLLVM_COMPONENT_POWERPC" "-DLLVM_COMPONENT_RISCV" "-DLLVM_COMPONENT_SPARC" "-DLLVM_COMPONENT_SYSTEMZ" "-DLLVM_COMPONENT_WEBASSEMBLY" "-DLLVM_COMPONENT_X86" "-DNDEBUG" "-o" "/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/rustc_llvm-415851ffe130b051/out/../rustllvm/PassWrapper.o" "-c" "../rustllvm/PassWrapper.cpp"
  cargo:warning=../rustllvm/PassWrapper.cpp: In function 'void LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)':
  cargo:warning=../rustllvm/PassWrapper.cpp:679:7: error: 'class llvm::PassInstrumentationCallbacks' has no member named 'registerBeforePassCallback'; did you mean 'registerAfterPassCallback'?
  cargo:warning=  679 |   PIC.registerBeforePassCallback([LlvmSelfProfiler, BeforePassCallback](
  cargo:warning=      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |       registerAfterPassCallback
  cargo:warning=../rustllvm/PassWrapper.cpp: In function 'void LLVMRustOptimizeWithNewPassManager(LLVMModuleRef, LLVMTargetMachineRef, LLVMRustPassBuilderOptLevel, LLVMRustOptStage, bool, bool, bool, bool, bool, bool, bool, bool, bool, LLVMRustSanitizerOptions*, const char*, const char*, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)':
  cargo:warning=../rustllvm/PassWrapper.cpp:757:28: error: no matching function for call to 'llvm::StandardInstrumentations::StandardInstrumentations()'
  cargo:warning=  757 |   StandardInstrumentations SI;
  cargo:warning=      |                            ^~
  cargo:warning=In file included from ../rustllvm/PassWrapper.cpp:20:
  cargo:warning=/usr/include/llvm/Passes/StandardInstrumentations.h:283:3: note: candidate: 'llvm::StandardInstrumentations::StandardInstrumentations(bool, bool)'
  cargo:warning=  283 |   StandardInstrumentations(bool DebugLogging, bool VerifyEach = false);
  cargo:warning=      |   ^~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/usr/include/llvm/Passes/StandardInstrumentations.h:283:3: note:   candidate expects 2 arguments, 0 provided
  cargo:warning=../rustllvm/PassWrapper.cpp:773:39: error: no matching function for call to 'llvm::PassBuilder::PassBuilder(llvm::TargetMachine*&, llvm::PipelineTuningOptions&, llvm::Optional<llvm::PGOOptions>&, llvm::PassInstrumentationCallbacks*)'
  cargo:warning=  773 |   PassBuilder PB(TM, PTO, PGOOpt, &PIC);
  cargo:warning=      |                                       ^
  cargo:warning=In file included from ../rustllvm/PassWrapper.cpp:18:
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:272:12: note: candidate: 'llvm::PassBuilder::PassBuilder(bool, llvm::TargetMachine*, llvm::PipelineTuningOptions, llvm::Optional<llvm::PGOOptions>, llvm::PassInstrumentationCallbacks*)'
  cargo:warning=  272 |   explicit PassBuilder(bool DebugLogging = false, TargetMachine *TM = nullptr,
  cargo:warning=      |            ^~~~~~~~~~~
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:272:66: note:   no known conversion for argument 2 from 'llvm::PipelineTuningOptions' to 'llvm::TargetMachine*'
  cargo:warning=  272 |   explicit PassBuilder(bool DebugLogging = false, TargetMachine *TM = nullptr,
  cargo:warning=      |                                                   ~~~~~~~~~~~~~~~^~~~~~~~~~~~
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:141:7: note: candidate: 'llvm::PassBuilder::PassBuilder(const llvm::PassBuilder&)'
  cargo:warning=  141 | class PassBuilder {
  cargo:warning=      |       ^~~~~~~~~~~
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:141:7: note:   candidate expects 1 argument, 4 provided
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:141:7: note: candidate: 'llvm::PassBuilder::PassBuilder(llvm::PassBuilder&&)'
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:141:7: note:   candidate expects 1 argument, 4 provided
  cargo:warning=../rustllvm/PassWrapper.cpp: In lambda function:
  cargo:warning=../rustllvm/PassWrapper.cpp:782:58: error: invalid use of incomplete type 'class llvm::AAManager'
  cargo:warning=  782 |   FAM.registerPass([&] { return PB.buildDefaultAAPipeline(); });
  cargo:warning=      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~^~
  cargo:warning=In file included from ../rustllvm/rustllvm.h:25,
  cargo:warning=                 from ../rustllvm/PassWrapper.cpp:6:
  cargo:warning=/usr/include/llvm/Target/TargetMachine.h:29:7: note: forward declaration of 'class llvm::AAManager'
  cargo:warning=   29 | class AAManager;
  cargo:warning=      |       ^~~~~~~~~
  cargo:warning=../rustllvm/PassWrapper.cpp: In function 'void LLVMRustOptimizeWithNewPassManager(LLVMModuleRef, LLVMTargetMachineRef, LLVMRustPassBuilderOptLevel, LLVMRustOptStage, bool, bool, bool, bool, bool, bool, bool, bool, bool, LLVMRustSanitizerOptions*, const char*, const char*, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)':
  cargo:warning=../rustllvm/PassWrapper.cpp:917:34: error: no matching function for call to 'llvm::PassBuilder::addPGOInstrPassesForO0(llvm::ModulePassManager&, bool&, bool, bool, std::string&, std::string&)'
  cargo:warning=  917 |         PB.addPGOInstrPassesForO0(
  cargo:warning=      |         ~~~~~~~~~~~~~~~~~~~~~~~~~^
  cargo:warning=  918 |             MPM, DebugPassManager, PGOOpt->Action == PGOOptions::IRInstr,
  cargo:warning=      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=  919 |             /*IsCS=*/false, PGOOpt->ProfileFile, PGOOpt->ProfileRemappingFile);
  cargo:warning=      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=In file included from ../rustllvm/PassWrapper.cpp:18:
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:694:8: note: candidate: 'void llvm::PassBuilder::addPGOInstrPassesForO0(llvm::ModulePassManager&, bool, bool, std::string, std::string)'
  cargo:warning=  694 |   void addPGOInstrPassesForO0(ModulePassManager &MPM, bool RunProfileGen,
  cargo:warning=      |        ^~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:694:8: note:   candidate expects 5 arguments, 6 provided
  cargo:warning=../rustllvm/PassWrapper.cpp:924:44: error: cannot convert 'const std::function<void(llvm::PassManager<llvm::Module>&)>' to 'const std::function<void(llvm::PassManager<llvm::Module>&, llvm::PassBuilder::OptimizationLevel)>&'
  cargo:warning=  924 |         PB.registerPipelineStartEPCallback(C);
  cargo:warning=      |                                            ^
  cargo:warning=      |                                            |
  cargo:warning=      |                                            const std::function<void(llvm::PassManager<llvm::Module>&)>
  cargo:warning=In file included from ../rustllvm/PassWrapper.cpp:18:
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:608:74: note:   initializing argument 1 of 'void llvm::PassBuilder::registerPipelineStartEPCallback(const std::function<void(llvm::PassManager<llvm::Module>&, llvm::PassBuilder::OptimizationLevel)>&)'
  cargo:warning=  608 |       const std::function<void(ModulePassManager &, OptimizationLevel)> &C) {
  cargo:warning=      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  cargo:warning=../rustllvm/PassWrapper.cpp:935:52: error: no matching function for call to 'llvm::PassBuilder::buildThinLTOPreLinkDefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&)'
  cargo:warning=  935 |         MPM = PB.buildThinLTOPreLinkDefaultPipeline(OptLevel, DebugPassManager);
  cargo:warning=      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=In file included from ../rustllvm/PassWrapper.cpp:18:
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:400:21: note: candidate: 'llvm::ModulePassManager llvm::PassBuilder::buildThinLTOPreLinkDefaultPipeline(llvm::PassBuilder::OptimizationLevel)'
  cargo:warning=  400 |   ModulePassManager buildThinLTOPreLinkDefaultPipeline(OptimizationLevel Level);
  cargo:warning=      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:400:21: note:   candidate expects 1 argument, 2 provided
  cargo:warning=../rustllvm/PassWrapper.cpp:949:48: error: no matching function for call to 'llvm::PassBuilder::buildLTOPreLinkDefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&)'
  cargo:warning=  949 |         MPM = PB.buildLTOPreLinkDefaultPipeline(OptLevel, DebugPassManager);
  cargo:warning=      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=In file included from ../rustllvm/PassWrapper.cpp:18:
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:429:21: note: candidate: 'llvm::ModulePassManager llvm::PassBuilder::buildLTOPreLinkDefaultPipeline(llvm::PassBuilder::OptimizationLevel)'
  cargo:warning=  429 |   ModulePassManager buildLTOPreLinkDefaultPipeline(OptimizationLevel Level);
  cargo:warning=      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:429:21: note:   candidate expects 1 argument, 2 provided
  cargo:warning=../rustllvm/PassWrapper.cpp:954:45: error: no matching function for call to 'llvm::PassBuilder::buildThinLTODefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&, std::nullptr_t)'
  cargo:warning=  954 |         MPM = PB.buildThinLTODefaultPipeline(OptLevel, DebugPassManager, nullptr);
  cargo:warning=      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=In file included from ../rustllvm/PassWrapper.cpp:18:
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:414:3: note: candidate: 'llvm::ModulePassManager llvm::PassBuilder::buildThinLTODefaultPipeline(llvm::PassBuilder::OptimizationLevel, const llvm::ModuleSummaryIndex*)'
  cargo:warning=  414 |   buildThinLTODefaultPipeline(OptimizationLevel Level,
  cargo:warning=      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:414:3: note:   candidate expects 2 arguments, 3 provided
  cargo:warning=../rustllvm/PassWrapper.cpp:957:41: error: no matching function for call to 'llvm::PassBuilder::buildLTODefaultPipeline(llvm::PassBuilder::OptimizationLevel&, bool&, std::nullptr_t)'
  cargo:warning=  957 |         MPM = PB.buildLTODefaultPipeline(OptLevel, DebugPassManager, nullptr);
  cargo:warning=      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=In file included from ../rustllvm/PassWrapper.cpp:18:
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:442:21: note: candidate: 'llvm::ModulePassManager llvm::PassBuilder::buildLTODefaultPipeline(llvm::PassBuilder::OptimizationLevel, llvm::ModuleSummaryIndex*)'
  cargo:warning=  442 |   ModulePassManager buildLTODefaultPipeline(OptimizationLevel Level,
  cargo:warning=      |                     ^~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/usr/include/llvm/Passes/PassBuilder.h:442:21: note:   candidate expects 2 arguments, 3 provided
  cargo:warning=In file included from /usr/include/llvm/IR/PassInstrumentation.h:53,
  cargo:warning=                 from /usr/include/llvm/IR/PassManager.h:47,
  cargo:warning=                 from /usr/include/llvm/Analysis/Lint.h:22,
  cargo:warning=                 from ../rustllvm/rustllvm.h:8,
  cargo:warning=                 from ../rustllvm/PassWrapper.cpp:6:
  cargo:warning=/usr/include/llvm/ADT/FunctionExtras.h: In instantiation of 'static ReturnT llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::CallImpl(void*, llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::AdjustedParamT<ParamTs>...) [with CalledAsT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>; ReturnT = void; ParamTs = {llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&}]':
  cargo:warning=/usr/include/llvm/ADT/FunctionExtras.h:330:5:   required from 'llvm::detail::UniqueFunctionBase<void, llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&>::TrivialCallback llvm::detail::UniqueFunctionBase<void, llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&>::CallbacksHolder<LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>, LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>, void>::Callbacks'
  cargo:warning=/usr/include/llvm/ADT/FunctionExtras.h:253:9:   required from 'llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::UniqueFunctionBase(CallableT, llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::CalledAs<CalledAsT>) [with CallableT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>; CalledAsT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>; ReturnT = void; ParamTs = {llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&}]'
  cargo:warning=/usr/include/llvm/ADT/FunctionExtras.h:351:59:   required from 'llvm::unique_function<R(P ...)>::unique_function(CallableT) [with CallableT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>; R = void; P = {llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&}]'
  cargo:warning=/usr/include/llvm/ADT/SmallVector.h:912:5:   required from 'llvm::SmallVectorImpl<T>::reference llvm::SmallVectorImpl<T>::emplace_back(ArgTypes&& ...) [with ArgTypes = {LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>}; T = llvm::unique_function<void(llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&)>; llvm::SmallVectorImpl<T>::reference = llvm::unique_function<void(llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&)>&]'
  cargo:warning=/usr/include/llvm/IR/PassInstrumentation.h:108:36:   required from 'void llvm::PassInstrumentationCallbacks::registerAfterPassCallback(CallableT) [with CallableT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>]'
  cargo:warning=../rustllvm/PassWrapper.cpp:687:32:   required from here
  cargo:warning=/usr/include/llvm/ADT/FunctionExtras.h:195:16: error: no match for call to '(LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>) (llvm::StringRef, llvm::Any, const llvm::PreservedAnalyses&)'
  cargo:warning=  195 |     return Func(std::forward<ParamTs>(Params)...);
  cargo:warning=      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=../rustllvm/PassWrapper.cpp:688:7: note: candidate: 'LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef, llvm::Any)>'
  cargo:warning=  688 |       [LlvmSelfProfiler, AfterPassCallback](StringRef Pass, llvm::Any Ir) {
  cargo:warning=      |       ^
  cargo:warning=../rustllvm/PassWrapper.cpp:688:7: note:   candidate expects 2 arguments, 3 provided
  cargo:warning=In file included from /usr/include/llvm/IR/PassInstrumentation.h:53,
  cargo:warning=                 from /usr/include/llvm/IR/PassManager.h:47,
  cargo:warning=                 from /usr/include/llvm/Analysis/Lint.h:22,
  cargo:warning=                 from ../rustllvm/rustllvm.h:8,
  cargo:warning=                 from ../rustllvm/PassWrapper.cpp:6:
  cargo:warning=/usr/include/llvm/ADT/FunctionExtras.h: In instantiation of 'static ReturnT llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::CallImpl(void*, llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::AdjustedParamT<ParamTs>...) [with CalledAsT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>; ReturnT = void; ParamTs = {llvm::StringRef, const llvm::PreservedAnalyses&}]':
  cargo:warning=/usr/include/llvm/ADT/FunctionExtras.h:330:5:   required from 'llvm::detail::UniqueFunctionBase<void, llvm::StringRef, const llvm::PreservedAnalyses&>::TrivialCallback llvm::detail::UniqueFunctionBase<void, llvm::StringRef, const llvm::PreservedAnalyses&>::CallbacksHolder<LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>, LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>, void>::Callbacks'
  cargo:warning=/usr/include/llvm/ADT/FunctionExtras.h:253:9:   required from 'llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::UniqueFunctionBase(CallableT, llvm::detail::UniqueFunctionBase<ReturnT, ParamTs>::CalledAs<CalledAsT>) [with CallableT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>; CalledAsT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>; ReturnT = void; ParamTs = {llvm::StringRef, const llvm::PreservedAnalyses&}]'
  cargo:warning=/usr/include/llvm/ADT/FunctionExtras.h:351:59:   required from 'llvm::unique_function<R(P ...)>::unique_function(CallableT) [with CallableT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>; R = void; P = {llvm::StringRef, const llvm::PreservedAnalyses&}]'
  cargo:warning=/usr/include/llvm/ADT/SmallVector.h:912:5:   required from 'llvm::SmallVectorImpl<T>::reference llvm::SmallVectorImpl<T>::emplace_back(ArgTypes&& ...) [with ArgTypes = {LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>}; T = llvm::unique_function<void(llvm::StringRef, const llvm::PreservedAnalyses&)>; llvm::SmallVectorImpl<T>::reference = llvm::unique_function<void(llvm::StringRef, const llvm::PreservedAnalyses&)>&]'
  cargo:warning=/usr/include/llvm/IR/PassInstrumentation.h:113:47:   required from 'void llvm::PassInstrumentationCallbacks::registerAfterPassInvalidatedCallback(CallableT) [with CallableT = LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>]'
  cargo:warning=../rustllvm/PassWrapper.cpp:692:43:   required from here
  cargo:warning=/usr/include/llvm/ADT/FunctionExtras.h:195:16: error: no match for call to '(LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>) (llvm::StringRef, const llvm::PreservedAnalyses&)'
  cargo:warning=  195 |     return Func(std::forward<ParamTs>(Params)...);
  cargo:warning=      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=../rustllvm/PassWrapper.cpp:693:7: note: candidate: 'LLVMSelfProfileInitializeCallbacks(llvm::PassInstrumentationCallbacks&, void*, LLVMRustSelfProfileBeforePassCallback, LLVMRustSelfProfileAfterPassCallback)::<lambda(llvm::StringRef)>'
  cargo:warning=  693 |       [LlvmSelfProfiler, AfterPassCallback](StringRef Pass) {
  cargo:warning=      |       ^
  cargo:warning=../rustllvm/PassWrapper.cpp:693:7: note:   candidate expects 1 argument, 2 provided
  exit code: 1

  --- stderr


  error occurred: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I/usr/include" "-std=c++14" "-fno-exceptions" "-D_GNU_SOURCE" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-DLLVM_COMPONENT_AARCH64" "-DLLVM_COMPONENT_AMDGPU" "-DLLVM_COMPONENT_ARM" "-DLLVM_COMPONENT_ASMPARSER" "-DLLVM_COMPONENT_AVR" "-DLLVM_COMPONENT_BITREADER" "-DLLVM_COMPONENT_BITWRITER" "-DLLVM_COMPONENT_COVERAGE" "-DLLVM_COMPONENT_HEXAGON" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_MIPS" "-DLLVM_COMPONENT_MSP430" "-DLLVM_COMPONENT_NVPTX" "-DLLVM_COMPONENT_POWERPC" "-DLLVM_COMPONENT_RISCV" "-DLLVM_COMPONENT_SPARC" "-DLLVM_COMPONENT_SYSTEMZ" "-DLLVM_COMPONENT_WEBASSEMBLY" "-DLLVM_COMPONENT_X86" "-DNDEBUG" "-o" "/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/rustc_llvm-415851ffe130b051/out/../rustllvm/PassWrapper.o" "-c" "../rustllvm/PassWrapper.cpp" with args "c++" did not execute successfully (status code exit code: 1).


warning: build failed, waiting for other jobs to finish...
error: build failed
command did not execute successfully: "/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/rust-1.46.0-x86_64-unknown-linux-gnu/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "4" "--release" "--frozen" "--features" " llvm" "--manifest-path" "/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
expected success, got: exit code: 101
Traceback (most recent call last):
  File "./x.py", line 11, in <module>
    bootstrap.main()
  File "/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/bootstrap/bootstrap.py", line 1009, in main
    bootstrap(help_triggered)
  File "/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/bootstrap/bootstrap.py", line 995, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File "/tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/src/bootstrap/bootstrap.py", line 143, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /tmp/B.ShJcSe/BUILD/rustc-1.47.0-src/build/bootstrap/debug/bootstrap dist -j 4 --verbose
error: Bad exit status from /tmp/B.ShJcSe/BUILD/tmp/rpm-tmp.Fjc5Y0 (%build)


RPM build errors:
    Could not canonicalize hostname: ymir
    Bad exit status from /tmp/B.ShJcSe/BUILD/tmp/rpm-tmp.Fjc5Y0 (%build)
ended at: Tue May 25 09:41:48 2021, done in 0:06:54.730483
error: No files produced.
+ chmod -R u+rwX /tmp/B.ShJcSe/BUILD
+ rm -rf /tmp/B.ShJcSe/tmp /tmp/B.ShJcSe/BUILD
+ rm -rf /tmp/B.ShJcSe
Begin-PLD-Builder-Info
Build-Time: user:1260.59s sys:58.16s real:449.55s (faults io:373 non-io:4671954)

End-PLD-Builder-Info
[Back to list of logs] [View rpm -qa of builder]