-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outdated dependencies causing build failure on rustc ≥1.71 #12
Comments
Running
|
I tried to recreate this and get the same compile error when using the Which is honestly not completely surprising as nightly is explicitly While I do agree that the dependencies should be updated, (especially Also it might be a good idea to use rustup to manage your different rust |
Oh, I thought 1.71 would be stable, with the main website stating 1.71.1 to be the latest stable? Sorry, I'm not too familiar with Rust yet. To clarify a bit, I am alright with build failures when using the 1.73 git build, that's expected. That is why I installed 1.71 alongside, and tried 1.70 in a Nix env, for comparison. When running So is the bin-1.71.0 one not nightly? And if so, I find it weird 1.71.0 doesn't compile, but 1.71.1 for you does. |
1.71 is definitely stable. 1.71.1 is too, but is a patch version that I tried running cargo with both My only guess why that could be is that your cargo version for 1.71.0 |
LD_LIBRARY_PATH='/home/kir68k/Documents/Git/Dissociated/colorgen-nvim/target/debug/deps:/usr/lib/rust/9999/lib' rustc
I still think updating depends will help for compiling in the future, though, if 1.73 releases as stable and this error will appear, provided that version doesn't get changes making it go away. Due to that I'm not sure if this should be closed for now. EDIT After setting that, the project compiles fine using 1.71.0. Apologies for any confusion :D |
No worries. Rust's stability guaranties say that something built in Rust 1.* will |
Didn't know of that, I retract my statement about future versions then. Anyhow, have a nice day, I think this can be closed after dependencies are updated. |
Hi, I wanted to package this program for my distribution and personal package repository, but when trying to build, it fails to compile due to a dependency.
System info
~ ¥ rustc -V rustc 1.73.0-nightly (b3df56a65 2023-07-31) (gentoo)
Ebuild for colorgen-nvim
I at first thought maybe it's due to making the ebuild file wrong, so I cloned the repository locally and ran
cargo build
while in it, giving the same failure as through the distro package manager:I noticed a few of the dependencies in Cargo.lock are outdated, so I ran
cargo update
.After
cargo update
, I rancargo build
which could build the project correctly:Doing
git reset --hard HEAD
and building again causes the failure as expected.Since my primary rustc is built from the most recent git commit, hence v1.73, I installed
rust-bin
alongside to test if it works on v1.71, the most recent version in my distro's repositories, and the latest release on GitHub.I also tried rustc v1.70 through
nix shell nixpkgs#{rustc,cargo}
, and on that version it builds fine, so this is an issue starting on v1.71, fixed by bumping proc-macro2 to v1.0.66.The text was updated successfully, but these errors were encountered: