Daily build broken since 2026-08-14: riscv64 community altjit fails -Werror,-Wformat

Aperta
#31 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cmake, cpp, shell

Direzione di ricerca

Inizia da build/build.sh:12 per comprendere la selezione di Clr.AllJitsCommunity, quindi esamina emitriscv64.cpp intorno alla riga 4775 e la build riscv64 altjit segnalata. Verifica se CE espone questo community altjit o se è necessario segnalare il fallimento della build upstream. Il lavoro è completato quando la build giornaliera ha esito positivo senza nascondere i target runtime previsti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The dotnet daily build has failed every day since 2026-08-14.

FAILED: jit/CMakeFiles/clrjit_unix_riscv64_x64.dir/emitriscv64.cpp.o
/root/dotnet/runtime/src/coreclr/jit/emitriscv64.cpp:4775:41: error: format specifies type 'int'
    but the argument has type 'emitter::MajorOpcode' [-Werror,-Wformat]
 4775 |             printf("MajorOpcode: %d\n", GetMajorOpcode(code));
      |                                  ~~     ^~~~~~~~~~~~~~~~~~~~
      |                                         static_cast<int>(   )
1 error generated.

GetMajorOpcode returns a scoped enum, which %d rejects under -Werror -Wformat with clang-18. I checked dotnet/runtime main today and the line is still unchanged, so this is not something that has quietly fixed itself upstream.

Why it only breaks us

build/build.sh:12 sets ALL_JITS_SUBSET="Clr.AllJitsCommunity", which turns on CLR_CMAKE_BUILD_COMMUNITY_ALTJITS=1 and builds the riscv64 altjit. Upstream CI builds Clr.AllJits, so the community altjits are not gated on and can rot without anyone noticing. We have effectively opted into code upstream does not build.

Effect

Silent, as usual for nightlies: no artifact means the old install stays. Newest tarball is dotnet-trunk-20260814.tar.xz, so the site's dotnet trunk has been frozen there for 10 days.

Options
  1. Wait for upstream, and accept the build staying red meanwhile.
  2. Report it upstream so the community altjits build clean again.
  3. Reconsider whether we need Clr.AllJitsCommunity rather than Clr.AllJits, if the community altjits are not actually surfaced in CE.

@hez2010 you know this build best. Is the riscv64 altjit something CE actually exposes, or would dropping back to Clr.AllJits be a reasonable way to stop upstream churn breaking us?

Lingua principale
C#
Stelle
14
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.