ziglang / zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
https://ziglang.org
MIT License
35.06k stars 2.56k forks source link

.rlib: unrecognized file extension #21819

Open i18nsite opened 3 weeks ago

i18nsite commented 3 weeks ago

Zig Version

zig-linux-x86_64-0.14.0-dev.2032+c563ba6b1

Steps to Reproduce and Observed Behavior

https://github.com/rust-cross/cargo-zigbuild/issues/290 https://github.com/ziglang/zig/pull/21700#issuecomment-2439677458

https://github.com/i18n-site/rust/actions/runs/11519713302/job/32069371843#step:9:494

+ RUSTFLAGS='--cfg reqwest_unstable -D warnings -C target-feature=+aes -C target-feature=+neon'
+ cargo zigbuild -p i18 -Z build-std=std,panic_abort --release --target aarch64-unknown-linux-gnu
...
error: linking with `/home/runner/.cache/cargo-zigbuild/0.19.3/zigcc-aarch64-unknown-linux-gnu-aef7.sh` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/runner/.rustup/toolchains/nightly-2024-09-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/runner/.rustup/toolchains/nightly-2024-09-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/runner/.rustup/toolchains/nightly-2024-09-26-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/hostedtoolcache/zig/master/x64:/opt/hostedtoolcache/protoc/v23.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" VSLANG="1033" "/home/runner/.cache/cargo-zigbuild/0.19.3/zigcc-aarch64-unknown-linux-gnu-aef7.sh" "/tmp/rustc1xVHGG/symbols.o" "/home/runner/work/rust/rust/target/aarch64-unknown-linux-gnu/release/deps/i18-a9d13ee857f8352f.i18.c41756c17b41297-cgu.0.rcgu.o" "-W
  = note: warning: ignoring deprecated linker optimization setting '1'
          error: /tmp/rustc1xVHGG/libblake3-716a40260c8329b7.rlib: unrecognized file extension

Expected Behavior

can build

agavrel commented 2 weeks ago

Same error here

mikebaldry commented 1 week ago

also seeing this issue