Action failed: shim//third-party/rust:backtrace-0.3.73 (rustc metadata [pic]) Local command returned non-zero exit code 1 Reproduce locally: `env -- 'BUCK_SCRATCH_PATH=buck-out/v2/tmp/shim/7ee685b46ae2051b/rustc/_buck_481ea049fc278ae1' /usr/b ...... -party/rust/__backtrace-0.3.73__/rlib-pic-static_pic-metadata-full/backtrace-metadata-full-diag.args (run `buck2 log what-failed` to get the full command)` stdout: stderr: error[E0786]: found invalid metadata files for crate `rustc_demangle` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:13:5 | 13 | use rustc_demangle::{try_demangle, Demangle}; | ^^^^^^^^^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__rustc-demangle-0.1.24__/rlib-pic-static_pic-metadata-full/librustc_demangle-5cdca807.rlib error[E0432]: unresolved imports `super::BacktraceFrame`, `super::BacktraceSymbol` --> shim/third-party/rust/backtrace-0.3.73.crate/src/print.rs:2:13 | 2 | use super::{BacktraceFrame, BacktraceSymbol}; | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ no `BacktraceSymbol` in the root | | | no `BacktraceFrame` in the root | = help: consider importing this struct instead: std::backtrace::BacktraceFrame help: a similar name exists in the module | 2 | use super::{BacktraceFmt, BacktraceSymbol}; | ~~~~~~~~~~~~ help: a similar name exists in the module | 2 | use super::{BacktraceFrame, BacktraceFmt}; | ~~~~~~~~~~~~ error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/backtrace/mod.rs:166:1 | 166 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:3:1 | 3 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:280:1 | 280 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:431:1 | 431 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:3:1 | 3 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/lib.rs:126:1 | 126 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/lib.rs:135:1 | 135 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0412]: cannot find type `FrameImp` in this scope --> shim/third-party/rust/backtrace-0.3.73.crate/src/backtrace/mod.rs:77:23 | 77 | pub(crate) inner: FrameImp, | ^^^^^^^^ not found in this scope error[E0412]: cannot find type `Path` in this scope --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:251:39 | 251 | pub fn filename(&self) -> Option<&Path> { | ^^^^ not found in this scope | help: consider importing this struct | 1 + use std::path::Path; | error[E0412]: cannot find type `Cow` in this scope --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:33:35 | 33 | pub fn to_str_lossy(&self) -> Cow<'a, str> { | ^^^ not found in this scope | help: consider importing one of these items | 3 + use alloc::borrow::Cow; | 3 + use std::borrow::Cow; | error[E0433]: failed to resolve: use of undeclared type `String` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:37:30 | 37 | &Bytes(slice) => String::from_utf8_lossy(slice), | ^^^^^^ use of undeclared type `String` | help: consider importing one of these items | 3 + use alloc::string::String; | 3 + use std::string::String; | error[E0433]: failed to resolve: use of undeclared type `Cow` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:38:28 | 38 | &Wide(wide) => Cow::Owned(String::from_utf16_lossy(wide)), | ^^^ use of undeclared type `Cow` | help: consider importing one of these items | 3 + use alloc::borrow::Cow; | 3 + use std::borrow::Cow; | error[E0433]: failed to resolve: use of undeclared type `String` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:38:39 | 38 | &Wide(wide) => Cow::Owned(String::from_utf16_lossy(wide)), | ^^^^^^ use of undeclared type `String` | help: consider importing one of these items | 3 + use alloc::string::String; | 3 + use std::string::String; | error[E0412]: cannot find type `PathBuf` in this scope --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:48:35 | 48 | pub fn into_path_buf(self) -> PathBuf { | ^^^^^^^ not found in this scope | help: consider importing this struct | 3 + use std::path::PathBuf; | error[E0433]: failed to resolve: use of undeclared type `PathBuf` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:55:24 | 55 | return PathBuf::from(OsStr::from_bytes(slice)); | ^^^^^^^ use of undeclared type `PathBuf` | help: consider importing this struct | 3 + use std::path::PathBuf; | error[E0433]: failed to resolve: use of undeclared type `PathBuf` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:71:24 | 71 | return PathBuf::from(s); | ^^^^^^^ use of undeclared type `PathBuf` | help: consider importing this struct | 3 + use std::path::PathBuf; | error[E0433]: failed to resolve: use of undeclared crate or module `fmt` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:79:10 | 79 | impl<'a> fmt::Display for BytesOrWideString<'a> { | ^^^ use of undeclared crate or module `fmt` | help: consider importing one of these items | 3 + use alloc::fmt; | 3 + use core::fmt; | 3 + use std::fmt; | error[E0433]: failed to resolve: use of undeclared crate or module `fmt` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:80:27 | 80 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ^^^ use of undeclared crate or module `fmt` | help: consider importing one of these items | 3 + use alloc::fmt; | 3 + use core::fmt; | 3 + use std::fmt; | error[E0433]: failed to resolve: use of undeclared crate or module `fmt` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:80:50 | 80 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ^^^ use of undeclared crate or module `fmt` | help: consider importing one of these items | 3 + use alloc::fmt; | 3 + use core::fmt; | 3 + use std::fmt; | error[E0433]: failed to resolve: use of undeclared crate or module `imp` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:162:5 | 162 | imp::resolve(ResolveWhat::Address(addr), &mut cb) | ^^^ use of undeclared crate or module `imp` error[E0433]: failed to resolve: use of undeclared crate or module `imp` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:178:5 | 178 | imp::resolve(ResolveWhat::Frame(frame), &mut cb) | ^^^ use of undeclared crate or module `imp` error[E0433]: failed to resolve: use of undeclared crate or module `imp` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:194:12 | 194 | inner: imp::Symbol<'static>, | ^^^ use of undeclared crate or module `imp` error[E0433]: failed to resolve: use of undeclared crate or module `imp` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:427:9 | 427 | imp::clear_symbol_cache(); | ^^^ use of undeclared crate or module `imp` error[E0425]: cannot find function `trace_imp` in this scope --> shim/third-party/rust/backtrace-0.3.73.crate/src/backtrace/mod.rs:66:5 | 66 | trace_imp(&mut cb) | ^^^^^^^^^ not found in this scope error: aborting due to 26 previous errors Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0786. For more information about an error, try `rustc --explain E0412`. Action failed: shim//third-party/rust:backtrace-0.3.73 (rustc rlib [pic]) Local command returned non-zero exit code 1 Reproduce locally: `env -- 'BUCK_SCRATCH_PATH=buck-out/v2/tmp/shim/8ad954182a267928/rustc/_buck_81501bf045367204' /usr/b ...... 31f735703749/third-party/rust/__backtrace-0.3.73__/rlib-pic-static_pic-link/backtrace-link-diag.args (run `buck2 log what-failed` to get the full command)` stdout: stderr: error[E0786]: found invalid metadata files for crate `rustc_demangle` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:13:5 | 13 | use rustc_demangle::{try_demangle, Demangle}; | ^^^^^^^^^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__rustc-demangle-0.1.24__/rlib-pic-static_pic-metadata-full/librustc_demangle-5cdca807.rlib error[E0432]: unresolved imports `super::BacktraceFrame`, `super::BacktraceSymbol` --> shim/third-party/rust/backtrace-0.3.73.crate/src/print.rs:2:13 | 2 | use super::{BacktraceFrame, BacktraceSymbol}; | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ no `BacktraceSymbol` in the root | | | no `BacktraceFrame` in the root | = help: consider importing this struct instead: std::backtrace::BacktraceFrame help: a similar name exists in the module | 2 | use super::{BacktraceFmt, BacktraceSymbol}; | ~~~~~~~~~~~~ help: a similar name exists in the module | 2 | use super::{BacktraceFrame, BacktraceFmt}; | ~~~~~~~~~~~~ error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/backtrace/mod.rs:166:1 | 166 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:3:1 | 3 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:280:1 | 280 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:431:1 | 431 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:3:1 | 3 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/lib.rs:126:1 | 126 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0786]: found invalid metadata files for crate `cfg_if` --> shim/third-party/rust/backtrace-0.3.73.crate/src/lib.rs:135:1 | 135 | cfg_if::cfg_if! { | ^^^^^^ | = note: corrupt metadata encountered in /home/ubuntu/workspace/buck2/buck-out/v2/gen/shim/904931f735703749/third-party/rust/__cfg-if-1.0.0__/rlib-pic-static_pic-metadata-full/libcfg_if-1e47349c.rlib error[E0412]: cannot find type `FrameImp` in this scope --> shim/third-party/rust/backtrace-0.3.73.crate/src/backtrace/mod.rs:77:23 | 77 | pub(crate) inner: FrameImp, | ^^^^^^^^ not found in this scope error[E0412]: cannot find type `Path` in this scope --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:251:39 | 251 | pub fn filename(&self) -> Option<&Path> { | ^^^^ not found in this scope | help: consider importing this struct | 1 + use std::path::Path; | error[E0412]: cannot find type `Cow` in this scope --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:33:35 | 33 | pub fn to_str_lossy(&self) -> Cow<'a, str> { | ^^^ not found in this scope | help: consider importing one of these items | 3 + use alloc::borrow::Cow; | 3 + use std::borrow::Cow; | error[E0433]: failed to resolve: use of undeclared type `String` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:37:30 | 37 | &Bytes(slice) => String::from_utf8_lossy(slice), | ^^^^^^ use of undeclared type `String` | help: consider importing one of these items | 3 + use alloc::string::String; | 3 + use std::string::String; | error[E0433]: failed to resolve: use of undeclared type `Cow` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:38:28 | 38 | &Wide(wide) => Cow::Owned(String::from_utf16_lossy(wide)), | ^^^ use of undeclared type `Cow` | help: consider importing one of these items | 3 + use alloc::borrow::Cow; | 3 + use std::borrow::Cow; | error[E0433]: failed to resolve: use of undeclared type `String` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:38:39 | 38 | &Wide(wide) => Cow::Owned(String::from_utf16_lossy(wide)), | ^^^^^^ use of undeclared type `String` | help: consider importing one of these items | 3 + use alloc::string::String; | 3 + use std::string::String; | error[E0412]: cannot find type `PathBuf` in this scope --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:48:35 | 48 | pub fn into_path_buf(self) -> PathBuf { | ^^^^^^^ not found in this scope | help: consider importing this struct | 3 + use std::path::PathBuf; | error[E0433]: failed to resolve: use of undeclared type `PathBuf` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:55:24 | 55 | return PathBuf::from(OsStr::from_bytes(slice)); | ^^^^^^^ use of undeclared type `PathBuf` | help: consider importing this struct | 3 + use std::path::PathBuf; | error[E0433]: failed to resolve: use of undeclared type `PathBuf` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:71:24 | 71 | return PathBuf::from(s); | ^^^^^^^ use of undeclared type `PathBuf` | help: consider importing this struct | 3 + use std::path::PathBuf; | error[E0433]: failed to resolve: use of undeclared crate or module `fmt` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:79:10 | 79 | impl<'a> fmt::Display for BytesOrWideString<'a> { | ^^^ use of undeclared crate or module `fmt` | help: consider importing one of these items | 3 + use alloc::fmt; | 3 + use core::fmt; | 3 + use std::fmt; | error[E0433]: failed to resolve: use of undeclared crate or module `fmt` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:80:27 | 80 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ^^^ use of undeclared crate or module `fmt` | help: consider importing one of these items | 3 + use alloc::fmt; | 3 + use core::fmt; | 3 + use std::fmt; | error[E0433]: failed to resolve: use of undeclared crate or module `fmt` --> shim/third-party/rust/backtrace-0.3.73.crate/src/types.rs:80:50 | 80 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ^^^ use of undeclared crate or module `fmt` | help: consider importing one of these items | 3 + use alloc::fmt; | 3 + use core::fmt; | 3 + use std::fmt; | error[E0433]: failed to resolve: use of undeclared crate or module `imp` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:162:5 | 162 | imp::resolve(ResolveWhat::Address(addr), &mut cb) | ^^^ use of undeclared crate or module `imp` error[E0433]: failed to resolve: use of undeclared crate or module `imp` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:178:5 | 178 | imp::resolve(ResolveWhat::Frame(frame), &mut cb) | ^^^ use of undeclared crate or module `imp` error[E0433]: failed to resolve: use of undeclared crate or module `imp` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:194:12 | 194 | inner: imp::Symbol<'static>, | ^^^ use of undeclared crate or module `imp` error[E0433]: failed to resolve: use of undeclared crate or module `imp` --> shim/third-party/rust/backtrace-0.3.73.crate/src/symbolize/mod.rs:427:9 | 427 | imp::clear_symbol_cache(); | ^^^ use of undeclared crate or module `imp` error[E0425]: cannot find function `trace_imp` in this scope --> shim/third-party/rust/backtrace-0.3.73.crate/src/backtrace/mod.rs:66:5 | 66 | trace_imp(&mut cb) | ^^^^^^^^^ not found in this scope error: aborting due to 26 previous errors Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0786. For more information about an error, try `rustc --explain E0412`. Build ID: 764164df-eb54-42dd-831f-77a7752719b4 Network: Up: 0B Down: 44MiB (GRPC-SESSION-ID) re_uploads : 40 in progress, 1735 success, 176 error re_downloads : 6 in progress, 3238 success, 0 error re_action_cache : 0 in progress, 0 success, 1969 error re_executes : 44 in progress, 1622 success, 69 error re_materializes : 0 in progress, 101 success, 0 error http_download_bytes : 46125091 bytes Jobs completed: 7084. Time elapsed: 2:35.9s. Cache hits: 0%. Commands: 1882 (cached: 0, remote: 998, local: 884). Fallback: 868/1882 BUILD FAILED Failed to build 'shim//third-party/rust:backtrace-0.3.73 (prelude//platforms:default#904931f735703749)'