Open tschwinge opened 3 months ago
I have two small WIP patches to make this work; will share later. :smile:
(b) what is the minimum versions of cargo and rustc that GCC/Rust requires? Let's please document this in
gcc/doc/install.texi
, as, for example, @rorth had also been requesting in inbox.sourceware.org/yddh6g0be4y.fsf@CeBiTec.Uni-Bielefeld.DE "Re: [PATCH] build: Check for cargo when building rust language".
Yeah, the cargo
requirement in particular is a major problem, as a lot of the machines on GCC's compile farm are either missing it entirely, or have a version that doesn't recognize the --config
flag...
I've finally submitted upstream: https://inbox.sourceware.org/87jzctww34.fsf@dem-tschwing-1.schwinge.ddns.net "Rust: Work around 'error[E0658]: let...else
statements are unstable'" and https://inbox.sourceware.org/87h67xwvpz.fsf@dem-tschwing-1.schwinge.ddns.net "Rust: Work around 'error[E0599]: no method named leak
found for struct std::string::String
in the current scope'".
This already was mentioned a while ago in https://inbox.sourceware.org/87msrjghwy.fsf@euler.schwinge.ddns.net "Re: ☠ Buildbot (Sourceware): gccrust - failed compile (failure) (master)", but as of the 2024-08-01 push of GCC/Rust changes to GCC upstream (#2965 "[upstream] 2024-04-23"), I'm now no longer able to build GCC/Rust on one of my standard testing systems:
This is Debian GNU/Linux 12 (bookworm):
Is there (a) any (reasonable) way to keep the GCC/Rust build working with that version of rustc, and/or (b) what is the minimum versions of cargo and rustc that GCC/Rust requires? Let's please document this in
gcc/doc/install.texi
, as, for example, @rorth had also been requesting in https://inbox.sourceware.org/yddh6g0be4y.fsf@CeBiTec.Uni-Bielefeld.DE "Re: [PATCH] build: Check for cargo when building rust language".Aha, and in that latter thread, in the next message by @CohenArthur: "We currently depend on Rust version 1.72", but "The goal is to reduce that Rust version further soon anyway - we are going to target Rust version 1.49" -- which would resolve my issue. What's the status of that?
I understand correctly this issue is different from the recent https://gcc-rust.zulipchat.com/#narrow/stream/266897-general/topic/rustc.20nightly.20needed.20by.20default "rustc nightly needed by default" discussion, #3101 "Remove dependency on nightly Rust", which resolved the requirement of an even-newer (nightly) version of rustc?