Closed balta2ar closed 1 year ago
same issue here (on another Linux distro), and while previous release installs without any issue:
cargo install --version 0.32.0 difftastic --force
Yeah, I'm seeing this too. It's failing on my personal laptop (Arch Linux, rustc 1.62) as well, although CI is green.
This was probably broken by #329. I think newer versions of rustc are broken after this change.
Getting the build.rs working reliably on latest Rust stable, as well as the version specified in rust-toolchain.toml, for both Linux and Windows, is proving very tricky.
I've added the latest stable to GitHub CI in 94ee57036 but CI is still passing fine. I wonder what's different about my local machine, maybe it's a C compiler thing?
It looks like CI is using pinned in the rust-toolchain rust version 1.57, but when you run cargo install
it uses your, more recent, version.
If you check out and build locally with cargo install --path . --force
it should work.
We just bumped the version in Arch Linux by patching: specifically reverting 003cbb2.
https://github.com/archlinux/svntogit-community/commit/4474b6ec73031a4a365c1c142c7e7d01914744ba
I noticed that I can reproduce this with rustc 1.63, but not with 1.58.1.
Based on https://github.com/rust-lang/rust/issues/95561 I think the build needs to set whole-archive.
Getting the same issue with WSL2 for Oracle Linux 7.9. I did updated the gcc to latest 11. Trying to build by downloading the source (0.34) also fails with the same error message. Trying below works
cargo install --version 0.32.0 difftastic --force
Please fix it for latest version
Please specify the syntax to set +whole-archive
versions
I tried installing these tree-sitter packages but it didn't help: