[Pkg-rust-maintainers] help required, rustc on raspbian.

peter green plugwash at p10link.net
Mon Mar 19 23:31:47 UTC 2018


On 17/03/18 08:52, peter green wrote:
> I have been trying to update the rustc package in raspbian buster from 1.23.0 to 1.24.1. Unfortunately I am getting the following error.
>
>      Running `/usr/bin/rustc --crate-name build_helper build_helper/lib.rs --crate-type lib --emit=dep-info,link -C debug-assertions=off -C overflow-checks=on -C metadata=bd106bb3930d3382 -C extra-filename=-bd106bb3930d3382 --out-dir '/rustc-1.24.1+dfsg1/build/bootstrap/debug/deps' -C 'incremental=/rustc-1.24.1+dfsg1/build/bootstrap/debug/incremental' -L 'dependency=/rustc-1.24.1+dfsg1/build/bootstrap/debug/deps' --extern 'filetime=/rustc-1.24.1+dfsg1/build/bootstrap/debug/deps/libfiletime-d18e7d8f38ba7fa7.rlib' -C link-args=-Wl,-z,relro '-Zremap-path-prefix-from=/rustc-1.24.1+dfsg1' -Zremap-path-prefix-to=/usr/src/rustc-1.24.1`
> error: unknown codegen option: `incremental`
<--snip-->
> Any thoughts on what the problem might be and how to fix it?
Thanks to infinity0 on irc for suggesting that the problem may be that the version of cargo I was using was too new for the old rustc.

I downgraded cargo to 0.24 and was able to successfully complete the build, unfortunately it came out armv7 contaminated but that is a separate issue.





More information about the Pkg-rust-maintainers mailing list