Bug: `--version` reports x86_64 on aarch64-musl binary (v1.0.0)
Author: gdf111Created Sep 21, 2026Updated Sep 29, 2026
LabelsquestionS-confirming
Description
The rustfs-linux-aarch64-musl-latest.zip (v1.0.0) binary is functionally correct and runs perfectly on aarch64, but the embedded version metadata incorrectly reports linux-x86_64 and stable-x86_64-unknown-linux-gnu.
Steps to Reproduce
- Download
rustfs-linux-aarch64-musl-latest.zipfor tag1.0.0 - Unzip and run
./rustfs --version
Actual Output
rustfs 1.0.0 build time : 2026-09-16 07:56:36 +00:00 build profile: release build os : linux-x86_64 <-- INCORRECT rust version : rustc 1.98.1 (48a229cea 2026-09-01) rust channel : stable-x86_64-unknown-linux-gnu <-- INCORRECT git commit : d47f54bfb2f39f48bd1adda334bd27e151fe85b8 git tag : 1.0.0
Expected Output
build os should be linux-aarch64 and rust channel should be stable-aarch64-unknown-linux-musl.
Verification That Binary Is Actually Correct ARM64
Despite the wrong version string, the binary itself is valid:
$ file rustfs
ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, stripped
$ ldd rustfs
not a dynamic executable
$ uname -m
aarch64
$ ./rustfs --help
# Works correctly, all subcommands functional
MD5 of the binary: bec97d402450c5937d95f12e798f792e
Probable Cause
This appears to be a CI/CD cross-compilation issue where the build metadata injection step inherits the host machine's arch info instead of the target triple during the aarch64-musl build.
Impact
Low — the binary works correctly. Only cosmetic/version reporting is affected.Source: rustfs/rustfs