Skip to content

Conversation

Prabhuk
Copy link

@Prabhuk Prabhuk commented Sep 24, 2025

No description provided.

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 24, 2025
@rustbot
Copy link
Collaborator

rustbot commented Sep 24, 2025

r? @cuviper

rustbot has assigned @cuviper.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@cuviper
Copy link
Member

cuviper commented Sep 24, 2025

Such changes need to be version-sensitive, and this is already in progress in #146905. Perhaps you can take a look at my last question about cleanup there?

In any case, closing so we don't duplicate effort.

@cuviper cuviper closed this Sep 24, 2025
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 24, 2025
@rust-log-analyzer
Copy link
Collaborator

The job aarch64-gnu-llvm-20-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
warning: [email protected]: llvm-wrapper/RustWrapper.cpp: In function 'void LLVMRustContextConfigureDiagnosticHandler(LLVMContextRef, LLVMDiagnosticHandlerTy, void*, bool, const char* const*, size_t, const char*, bool)':
warning: [email protected]: llvm-wrapper/RustWrapper.cpp:1782:60: error: no matching function for call to 'createRemarkSerializer(llvm::remarks::Format, llvm::raw_fd_ostream&)'
warning: [email protected]:  1782 |     auto RemarkSerializer = remarks::createRemarkSerializer(
warning: [email protected]:       |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
warning: [email protected]:  1783 |         llvm::remarks::Format::YAML, RemarkFile->os());
warning: [email protected]:       |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      
warning: [email protected]: llvm-wrapper/RustWrapper.cpp:1782:60: note: there are 2 candidates
warning: [email protected]: In file included from llvm-wrapper/RustWrapper.cpp:29:
warning: [email protected]: /usr/lib/llvm-20/include/llvm/Remarks/RemarkSerializer.h:81:1: note: candidate 1: 'llvm::Expected<std::unique_ptr<llvm::remarks::RemarkSerializer> > llvm::remarks::createRemarkSerializer(Format, SerializerMode, llvm::raw_ostream&)'
warning: [email protected]:    81 | createRemarkSerializer(Format RemarksFormat, SerializerMode Mode,
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: /usr/lib/llvm-20/include/llvm/Remarks/RemarkSerializer.h:81:1: note: candidate expects 3 arguments, 2 provided
warning: [email protected]: /usr/lib/llvm-20/include/llvm/Remarks/RemarkSerializer.h:86:1: note: candidate 2: 'llvm::Expected<std::unique_ptr<llvm::remarks::RemarkSerializer> > llvm::remarks::createRemarkSerializer(Format, SerializerMode, llvm::raw_ostream&, StringTable)'
warning: [email protected]:    86 | createRemarkSerializer(Format RemarksFormat, SerializerMode Mode,
warning: [email protected]:       | ^~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: /usr/lib/llvm-20/include/llvm/Remarks/RemarkSerializer.h:86:1: note: candidate expects 4 arguments, 2 provided
error: failed to run custom build command for `rustc_llvm v0.0.0 (/checkout/compiler/rustc_llvm)`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/release/build/rustc_llvm-01cf7560b29ae03c/build-script-build` (exit status: 1)
  --- stdout
  cargo:rustc-check-cfg=cfg(llvm_component,values("ipo"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("bitreader"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("bitwriter"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("linker"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("asmparser"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("lto"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("coverage"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("instrumentation"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("x86"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("arm"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("aarch64"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("amdgpu"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("avr"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("loongarch"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("m68k"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("csky"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("mips"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("powerpc"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("systemz"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("webassembly"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("msp430"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("sparc"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("nvptx"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("hexagon"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("riscv"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("xtensa"))
  cargo:rustc-check-cfg=cfg(llvm_component,values("bpf"))
  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/lib/llvm-20/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="bpf"
  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="loongarch"
  cargo:rustc-cfg=llvm_component="lto"
  cargo:rustc-cfg=llvm_component="m68k"
  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_component="xtensa"
  cargo:rerun-if-env-changed=LLVM_ENZYME
  cargo:rerun-if-env-changed=LLVM_RUSTLLVM
  cargo:rerun-if-env-changed=LLVM_ASSERTIONS
  cargo:rerun-if-changed=llvm-wrapper/PassWrapper.cpp
  cargo:rerun-if-changed=llvm-wrapper/README
  cargo:rerun-if-changed=llvm-wrapper/LLVMWrapper.h
  cargo:rerun-if-changed=llvm-wrapper/SuppressLLVMWarnings.h
  cargo:rerun-if-changed=llvm-wrapper/.editorconfig
  cargo:rerun-if-changed=llvm-wrapper/RustWrapper.cpp
  cargo:rerun-if-changed=llvm-wrapper/SymbolWrapper.cpp
  cargo:rerun-if-changed=llvm-wrapper/CoverageMappingWrapper.cpp
  cargo:rerun-if-changed=llvm-wrapper/Linker.cpp
  OUT_DIR = Some(/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/build/rustc_llvm-989b261cbf85b59d/out)
  OPT_LEVEL = Some(3)
  TARGET = Some(aarch64-unknown-linux-gnu)
  HOST = Some(aarch64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CXX_aarch64-unknown-linux-gnu
  CXX_aarch64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CXX_aarch64_unknown_linux_gnu
  CXX_aarch64_unknown_linux_gnu = Some(sccache c++)
  cargo:rerun-if-env-changed=CC_KNOWN_WRAPPER_CUSTOM
  CC_KNOWN_WRAPPER_CUSTOM = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(false)
  CARGO_CFG_TARGET_FEATURE = Some(neon)
  cargo:rerun-if-env-changed=CXXFLAGS
---
  cargo:rerun-if-env-changed=CC_SHELL_ESCAPED_FLAGS
  CC_SHELL_ESCAPED_FLAGS = None
  cargo:rerun-if-env-changed=CXXFLAGS_aarch64-unknown-linux-gnu
  CXXFLAGS_aarch64-unknown-linux-gnu = None
  CARGO_ENCODED_RUSTFLAGS = Some(--cfg=bootstrap--cfg=windows_raw_dylib-Csymbol-mangling-version=v0-Zrandomize-layout-Zunstable-options--check-cfg=cfg(bootstrap)-Zmacro-backtrace-Csplit-debuginfo=off-Cllvm-args=-import-instr-limit=10-Clink-args=-Wl,-z,origin-Clink-args=-Wl,-rpath,$ORIGIN/../lib-Alinker-messages-Zon-broken-pipe=kill)
  cargo:warning=llvm-wrapper/RustWrapper.cpp: In function 'void LLVMRustContextConfigureDiagnosticHandler(LLVMContextRef, LLVMDiagnosticHandlerTy, void*, bool, const char* const*, size_t, const char*, bool)':
  cargo:warning=llvm-wrapper/RustWrapper.cpp:1782:60: error: no matching function for call to 'createRemarkSerializer(llvm::remarks::Format, llvm::raw_fd_ostream&)'
  cargo:warning= 1782 |     auto RemarkSerializer = remarks::createRemarkSerializer(
  cargo:warning=      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  cargo:warning= 1783 |         llvm::remarks::Format::YAML, RemarkFile->os());
  cargo:warning=      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      
  cargo:warning=llvm-wrapper/RustWrapper.cpp:1782:60: note: there are 2 candidates
  cargo:warning=In file included from llvm-wrapper/RustWrapper.cpp:29:
  cargo:warning=/usr/lib/llvm-20/include/llvm/Remarks/RemarkSerializer.h:81:1: note: candidate 1: 'llvm::Expected<std::unique_ptr<llvm::remarks::RemarkSerializer> > llvm::remarks::createRemarkSerializer(Format, SerializerMode, llvm::raw_ostream&)'
  cargo:warning=   81 | createRemarkSerializer(Format RemarksFormat, SerializerMode Mode,
  cargo:warning=      | ^~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/usr/lib/llvm-20/include/llvm/Remarks/RemarkSerializer.h:81:1: note: candidate expects 3 arguments, 2 provided
  cargo:warning=/usr/lib/llvm-20/include/llvm/Remarks/RemarkSerializer.h:86:1: note: candidate 2: 'llvm::Expected<std::unique_ptr<llvm::remarks::RemarkSerializer> > llvm::remarks::createRemarkSerializer(Format, SerializerMode, llvm::raw_ostream&, StringTable)'
  cargo:warning=   86 | createRemarkSerializer(Format RemarksFormat, SerializerMode Mode,
  cargo:warning=      | ^~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/usr/lib/llvm-20/include/llvm/Remarks/RemarkSerializer.h:86:1: note: candidate expects 4 arguments, 2 provided

  --- stderr


  error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" "sccache" "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-Werror" "-I/usr/lib/llvm-20/include" "-std=c++17" "-fno-exceptions" "-funwind-tables" "-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_BPF" "-DLLVM_COMPONENT_COVERAGE" "-DLLVM_COMPONENT_HEXAGON" "-DLLVM_COMPONENT_INSTRUMENTATION" "-DLLVM_COMPONENT_IPO" "-DLLVM_COMPONENT_LINKER" "-DLLVM_COMPONENT_LOONGARCH" "-DLLVM_COMPONENT_LTO" "-DLLVM_COMPONENT_M68K" "-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" "-DLLVM_COMPONENT_XTENSA" "-o" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/build/rustc_llvm-989b261cbf85b59d/out/ef10e86dc40538c1-RustWrapper.o" "-c" "llvm-wrapper/RustWrapper.cpp"


warning: build failed, waiting for other jobs to finish...
[RUSTC-TIMING] rustc_hir_typeck test:false 59.741
[RUSTC-TIMING] nix test:false 1.517

@Prabhuk
Copy link
Author

Prabhuk commented Sep 24, 2025

Such changes need to be version-sensitive, and this is already in progress in #146905. Perhaps you can take a look at my last question about cleanup there?

In any case, closing so we don't duplicate effort.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants