[Bazel CI] rules examples fail on macOS arm64: wrapped_clang aborts with "dyld: missing LC_UUID load command" (Bazel 6.5.0)

Aperta
#721 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
build-system

Direzione di ricerca

Start with rules/.bazelversion and the failing rules/aspect and rules/expand_template targets; reproduce on macOS arm64 with Bazel 6.5.0 using the steps in the issue. Compare the failure with the passing basics_macos_lts task on the same platform and inspect the wrapped compiler behavior. Done when bazel build //... succeeds for the affected rules examples on the failing CI environment.

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

Descrizione

CI: https://buildkite.com/bazel/bazel-bazel-examples/builds/5630#01a1ebfd-0601-4b72-af8b-5a19f92e6e51

Platform: macOS arm64

Failing tasks:

  • rules (basics_macos_latest)

Logs:

(01:10:16) ERROR: .../rules/aspect/BUILD:4:11: Compiling aspect/lib.cc failed: (Aborted): wrapped_clang_pp failed: error executing command (from target //aspect:lib)
dyld[18624]: missing LC_UUID load command in .../external/bazel_tools~cc_configure_extension~local_config_cc/wrapped_clang
dyld[18624]: missing LC_UUID load command
(01:10:16) ERROR: .../rules/expand_template/BUILD:10:10: Compiling expand_template/hello_john_src.cc failed: (Aborted): wrapped_clang_pp failed: error executing command (from target //expand_template:hello)
dyld[18625]: missing LC_UUID load command in .../external/bazel_tools~cc_configure_extension~local_config_cc/wrapped_clang
dyld[18625]: missing LC_UUID load command

Culprit: Not an examples change. This task runs Bazel 6.5.0 (rules/.bazelversion contains 6.5.0). The job now runs on macOS 26.7.3 with Xcode 26.6, where dyld aborts Bazel 6.5.0's wrapped_clang. It last passed on macOS 15.8.2 with Xcode 26.0. On the same macOS and Xcode, rules (basics_macos_lts) passes with Bazel 9.3.2.

Steps:

git clone https://github.com/bazelbuild/examples.git
git reset efab5bd4660ebfe720bd52efaeeccefaf00ee4ad --hard
export USE_BAZEL_VERSION=6.5.0
cd rules
bazel build //...

CC Greenteam @fweikert

Lingua principale
Starlark
Stelle
958
Fork
582
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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.

Altre issue di bazelbuild/examples

Tutte le issue di bazelbuild/examples

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.