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

Đang mở
#721 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
build-system

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Starlark
Star
958
Fork
582
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bazelbuild/examples

Tất cả issue của bazelbuild/examples

Issue tương tự

Thêm issue về Build System

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.