[Bazel CI] Android Firebase Cloud Messaging fails on macOS arm64: zlib zutil.c does not compile with Xcode 26.6 (Bazel 7.2.0rc1)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- android, c, macos
- 领域
- build-system, ci-cd, mobile-dev
调研方向
Start with the failing target in android/firebase-cloud-messaging and reproduce with the listed steps on macOS arm64 using Bazel 7.2.0rc1. Read external/zlib/zutil.h around line 140, where fdopen is defined as a macro, alongside external/zlib/BUILD.bazel; compare with the macOS arm64 change in #716. Done means bazel build //app:app succeeds under Xcode 26.6 without breaking other zlib users.
由索引模型根据 Issue 内容生成。
描述
CI: https://buildkite.com/bazel/bazel-bazel-examples/builds/5640#01a21001-b43b-4d66-8a31-d33936c497f1
Platform: macOS arm64
Failing tasks:
- android (Android Firebase Cloud Messaging)
Logs:
(01:02:19) ERROR: .../external/zlib/BUILD.bazel:31:11: Compiling zutil.c [for tool] failed: (Exit 1): cc_wrapper.sh failed: error executing CppCompile command (from target @@zlib//:zlib)
In file included from external/zlib/zutil.c:10:
In file included from external/zlib/gzguts.h:21:
In file included from /Applications/Xcode26.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:61:
/Applications/Xcode26.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:322:7: error: expected identifier or '('
322 | FILE *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
external/zlib/zutil.h:140:33: note: expanded from macro 'fdopen'
140 | # define fdopen(fd,mode) NULL /* No fdopen() */
(01:02:20) ERROR: Build did NOT complete successfully
Culprit: This task runs on macos_arm64 since #716. There the job uses Xcode 26.6, and the zlib version this example pulls in defines fdopen as a macro, which breaks the SDK's _stdio.h.
Steps:
git clone https://github.com/bazelbuild/examples.git
git reset c511c5d8659148c4d6ef715f24864c90cc25a6ab --hard
export USE_BAZEL_VERSION=7.2.0rc1
cd android/firebase-cloud-messaging
bazel build //app:app
CC Greenteam @meteorcloudy
- 主要语言
- Starlark
- 星标
- 958
- 派生
- 582
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bazelbuild/examples 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 48/100
bazelbuild/examples#721 ·
-
[Bazel CI] ERROR: rules_rust_prost: implicit attribute defaults to @bazel_tools//tools/cpp:empty, fails single-file check (08-grpc-client-server)可能已有人在做 @deepalak56 于 45 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 64/100
bazelbuild/examples#710 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 30/100
bazelbuild/examples#650 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
bazelbuild/examples#642 ·
-
难度 2/5 1-3 小时 新手友好度 30/100
bazelbuild/examples#641 · 1 个 reaction ·
查看 bazelbuild/examples 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
bazelbuild/apple_support#707 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
-
out-of-date
难度 2/5 1-3 小时 新手友好度 68/100
CachyOS/CachyOS-PKGBUILDS#2232 ·
维护者通常 1 天内回复
-
blast/large refactor risk/low spend-dem
难度 2/5 1-3 小时 新手友好度 68/100
chriskelly/MusicWall#87 · 2 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
neilotoole/sq#1503 ·
维护者通常 1 天内回复