From 79d225165e9279433e22beb5ca5f17ed6329d02c Mon Sep 17 00:00:00 2001 From: Heng-Yi Wu <2316687+henry40408@users.noreply.github.com> Date: Sun, 23 Aug 2026 19:07:20 +0800 Subject: [PATCH] fix(docker): bump cargo-zigbuild to 0.23.0 so the arm64 leg links again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 1.98 toolchain bump (#241) is green on every CI check and still breaks the image: `docker.yml` fires on tags and pushes to `main`, not on pull requests, so the first build to run it was v0.30.1's — and only the arm64 leg failed. Rust 1.98 passes `--fix-cortex-a53-843419` to the linker for aarch64 targets (rust-lang/rust#155453). Zig's linker rejects unknown arguments outright, so the wrapper cargo-zigbuild 0.22.3 generates fails with `unsupported linker arg: --fix-cortex-a53-843419` and `noadd` never links for aarch64-unknown-linux-musl. amd64 is unaffected — the argument is only emitted for aarch64. cargo-zigbuild 0.23.0 filters the argument in `filter_linker_arg` (rust-cross/cargo-zigbuild#452), alongside the two other arguments it already dropped for the same reason. The rest of the 0.22.3..0.23.0 range is a cargo-dist config update, a cargo-options bump, and dependabot commits. Zig stays on 0.14.1: the fix is in the wrapper, not the linker, and 0.15+ still brings the libc++-19 bindgen requirement this pin exists to avoid. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01RLF7TP74kER7Wcx8Th33qc --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cc0241b..10ceb37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,10 @@ RUN apt-get update \ # Zig 0.14.1 avoids the libc++-19 bindgen requirement that 0.15+ introduces. ARG ZIG_VERSION=0.14.1 -ARG ZIGBUILD_VERSION=0.22.3 +# 0.23.0 or newer: Rust 1.98 passes `--fix-cortex-a53-843419` to the linker on +# aarch64, which zig's does not accept. cargo-zigbuild filters it out as of +# rust-cross/cargo-zigbuild#452 — without that the arm64 leg fails to link. +ARG ZIGBUILD_VERSION=0.23.0 RUN cargo install cargo-zigbuild --version "${ZIGBUILD_VERSION}" --locked RUN set -eux; \ case "$(uname -m)" in \