[Pkg-rust-maintainers] problems trying to update rustc in raspbian, can you help?

peter green plugwash at p10link.net
Thu Sep 19 14:38:45 BST 2019


Hi, I maintain raspbian and have been trying to update rustc in raspbian bullseye to get it back in sync with Debian bullseye. Debian bullseye recently skipped forward from 0.34 to 0.37

The rustc package in raspbian is broadly the same as the one in Debian except we change the triplet (rust uses arm-unknown-linux-gnueabihf for armv6).

The upgrade from 1.34 to 1.35 went broadly as expected*, however trying to upgrade from 1.35 to 1.36 failed.

error: extern location for rustc does not exist: /rustc/build/arm-unknown-linux-gnueabihf/stage0-rustc/arm-unknown-linux-gnueabihf/release/deps/librustc-6cf22a64f23a8aef.so

> error[E0463]: can't find crate for `rustc`
>   --> src/librustc_incremental/lib.rs:13:14
> |
> 13 | #[macro_use] extern crate rustc;
>    |              ^^^^^^^^^^^^^^^^^^^ can't find crate
>
> error: aborting due to 2 previous errors
>
> For more information about this error, try `rustc --explain E0463`.
googling the error didn't turn up anything useful.

Full build log at http://plugwash.raspbian.org/rustc1.36.log

I then decided to try a different approach, setting up a "dirty" chroot that was mostly raspbian, but with rustc from debian armhf and using that to build a rustc 1.37 package for raspbian. That also failed with a similar but slightly different error.

> error[E0463]: can't find crate for `rustc_macros` which `rustc` depends on
>   --> src/librustc_codegen_llvm/lib.rs:34:14
> |
> 34 | #[macro_use] extern crate rustc;
>    |              ^^^^^^^^^^^^^^^^^^^ can't find crate
>
> error: aborting due to previous error
>
> For more information about this error, try `rustc --explain E0463`.
There was also an error earlier in the build about being unable to find STD while buliding "backtrace".

Googling the error turned up https://github.com/rust-lang/rust/issues/62447, but the hint there to add "|-C target-feature=-crt-static|" to RUSTFLAGS did not help.

A full log for that build can be found at http://plugwash.raspbian.org/rustc1.37.log

Any ideas on what is going wrong and how I can get an up to date rustc into raspbian bullseye?


* The long standing issue that fabricate livelocks on one of our build boxes was worked around by building on a different box. The cargo home issue was worked around by building in a non-sbuild environment.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20190919/feb1ef00/attachment.html>


More information about the Pkg-rust-maintainers mailing list