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

Open
#721 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Domain
build-system

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
Starlark
Stars
958
Forks
582
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bazelbuild/examples

All issues in bazelbuild/examples

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.