brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.94k stars 2.35k forks source link

[Android] Rust error messages can't find crate for core/std #42411

Closed AlexeyBarabash closed 1 day ago

AlexeyBarabash commented 1 day ago

Description

We have several rust related errors in a build logs, can't find crate for std/can't find crate for core for several latest releases.

The strange thing that the build is not aborted and the app works well.

[50 processes, 42302/57225 @ 13.0/s : 3243.636s ] ACTION //brave/third_party/rust/num_bigint/v0_4:num_bigint_lib_v0_4_build_script_output(//build/toolchain/android:android_clang_arm)
error[E0463]: can't find crate for `std` 
  |
  = note: the `armv7-linux-androideabi` target may not be installed 
  = help: consider adding the standard library to the sysroot with `x build library --target armv7-linux-androideabi`
  = help: consider building the standard library from source with `cargo build -Zbuild-std`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
error[E0463]: can't find crate for `core`
  |
  = note: the `armv7-linux-androideabi` target may not be installed 
  = help: consider adding the standard library to the sysroot with `x build library --target armv7-linux-androideabi`
  = help: consider building the standard library from source with `cargo build -Zbuild-std`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
warning: autocfg could not probe for `std`