cargo-zigbuild icon indicating copy to clipboard operation
cargo-zigbuild copied to clipboard

zig: error: version '.2.17' in target triple 'x86_64-unknown-linux-gnu.2.17' is invalid

Open xcpky opened this issue 3 months ago • 1 comments

I try to use cargo-zigbuild to build helix by the following command

> helix/helix-term
cargo zigbuild --target x86_64-unknown-linux-gnu.2.17 --release

I get

warning: [email protected]: zig: error: version '.2.17' in target triple 'x86_64-unknown-linux-gnu.2.17' is invalid

The resulting binary has no problem though.

xcpky avatar Sep 14 '25 06:09 xcpky

I had the same issue with error messages about sccache:

Caused by: Failed to run zig linker wrapper
...
sccache: `SCCACHE_START_SERVER=1` can't be used with other commands

Setting SCCACHE_START_SERVER=0 during the build resolved it.

ChieloNewctle avatar Nov 12 '25 03:11 ChieloNewctle