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

オープン
#721 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
領域
build-system

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Starlark
スター
958
フォーク
582
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bazelbuild/examples のほかの issue

bazelbuild/examples の issue をすべて見る

似ている issue

Build System の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。