Compiling std v0.0.0 (/root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std)error[E0432]: unresolved imports `super::key::Key`, `super::key::LazyKey`, `super::key::get`, `super::key::set` --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/thread_local/os.rs:1:18 |1 | use super::key::{Key, LazyKey, get, set}; | ^^^ ^^^^^^^ ^^^ ^^^ no `set` in `sys::thread_local::key` | | | | | | | no `get` in `sys::thread_local::key` | | no `LazyKey` in `sys::thread_local::key` | no `Key` in `sys::thread_local::key` | = help: consider importing this struct instead: libc::Keynote: module `crate::collections::hash::set` exists but is inaccessible --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/collections/hash/mod.rs:4:1 |4 | pub mod set; | ^^^^^^^^^^^^ not accessibleerror[E0432]: unresolved imports `crate::sys::thread_local::key::LazyKey`, `crate::sys::thread_local::key::set` --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/thread_local/guard/key.rs:6:37 |6 | use crate::sys::thread_local::key::{LazyKey, set}; | ^^^^^^^ ^^^ no `set` in `sys::thread_local::key` | | | no `LazyKey` in `sys::thread_local::key` |note: module `crate::collections::hash::set` exists but is inaccessible --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/collections/hash/mod.rs:4:1 |4 | pub mod set; | ^^^^^^^^^^^^ not accessibleerror[E0425]: cannot find function `fill_bytes` in module `sys` --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/random.rs:67:14 |67 | sys::fill_bytes(bytes) | ^^^^^^^^^^ not found in `sys`error[E0277]: the trait bound `System: core::alloc::GlobalAlloc` is not satisfied --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/alloc/mod.rs:59:42 |59 | let new_ptr = GlobalAlloc::alloc(alloc, new_layout); | ------------------ ^^^^^ the trait `core::alloc::GlobalAlloc` is not implemented for `System` | | | required by a bound introduced by this callerror[E0277]: the trait bound `System: core::alloc::GlobalAlloc` is not satisfied --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/alloc/mod.rs:63:34 |63 | GlobalAlloc::dealloc(alloc, ptr, old_layout); | -------------------- ^^^^^ the trait `core::alloc::GlobalAlloc` is not implemented for `System` | | | required by a bound introduced by this callerror[E0425]: cannot find function `fill_bytes` in this scope --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/random/mod.rs:97:5 |97 | fill_bytes(&mut buf); | ^^^^^^^^^^ not found in this scopeerror[E0277]: the trait bound `System: core::alloc::GlobalAlloc` is not satisfied --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/alloc.rs:142:47 |142 | GlobalAlloc::alloc_zeroed(self, layout) | ------------------------- ^^^^ the trait `core::alloc::GlobalAlloc` is not implemented for `System` | | | required by a bound introduced by this callerror[E0277]: the trait bound `System: core::alloc::GlobalAlloc` is not satisfied --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/alloc.rs:144:40 |144 | GlobalAlloc::alloc(self, layout) | ------------------ ^^^^ the trait `core::alloc::GlobalAlloc` is not implemented for `System` | | | required by a bound introduced by this callerror[E0277]: the trait bound `System: core::alloc::GlobalAlloc` is not satisfied --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/alloc.rs:178:52 |178 | let raw_ptr = GlobalAlloc::realloc(self, ptr.as_ptr(), old_layout, new_size); | -------------------- ^^^^ the trait `core::alloc::GlobalAlloc` is not implemented for `System` | | | required by a bound introduced by this callerror[E0277]: the trait bound `System: core::alloc::GlobalAlloc` is not satisfied --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/alloc.rs:220:43 |220 | unsafe { GlobalAlloc::dealloc(self, ptr.as_ptr(), layout) } | -------------------- ^^^^ the trait `core::alloc::GlobalAlloc` is not implemented for `System` | | | required by a bound introduced by this callerror[E0277]: the trait bound `System: core::alloc::GlobalAlloc` is not satisfied --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/alloc.rs:270:52 |270 | let raw_ptr = GlobalAlloc::realloc(self, ptr.as_ptr(), old_layout, new_size); | -------------------- ^^^^ the trait `core::alloc::GlobalAlloc` is not implemented for `System` | | | required by a bound introduced by this callerror[E0599]: no method named `alloc` found for struct `System` in the current scope --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/alloc.rs:402:20 |132 | pub struct System; | ----------------- method `alloc` not found for this struct...402 | System.alloc(layout) | ^^^^^ | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `alloc`, perhaps you need to implement it: candidate #1: `core::alloc::GlobalAlloc`help: there is a method `allocate` with a similar name |402 | System.allocate(layout) | +++error[E0599]: no method named `dealloc` found for struct `System` in the current scope --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/alloc.rs:410:25 |132 | pub struct System; | ----------------- method `dealloc` not found for this struct...410 | unsafe { System.dealloc(ptr, Layout::from_size_align_unchecked(size, align)) } | ^^^^^^^ | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `dealloc`, perhaps you need to implement it: candidate #1: `core::alloc::GlobalAlloc`help: there is a method `deallocate` with a similar name |410 | unsafe { System.deallocate(ptr, Layout::from_size_align_unchecked(size, align)) } | +++error[E0599]: no method named `realloc` found for struct `System` in the current scope --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/alloc.rs:424:20 |132 | pub struct System; | ----------------- method `realloc` not found for this struct...424 | System.realloc(ptr, old_layout, new_size) | ^^^^^^^ method not found in `System` | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `realloc`, perhaps you need to implement it: candidate #1: `core::alloc::GlobalAlloc`error[E0599]: no method named `alloc_zeroed` found for struct `System` in the current scope --> /root/.rustup/toolchains/nightly-2025-04-03-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/alloc.rs:434:20 |132 | pub struct System; | ----------------- method `alloc_zeroed` not found for this struct...434 | System.alloc_zeroed(layout) | ^^^^^^^^^^^^ | = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `alloc_zeroed`, perhaps you need to implement it: candidate #1: `core::alloc::GlobalAlloc`help: there is a method `allocate_zeroed` with a similar name |434 | System.allocate_zeroed(layout) | +++Some errors have detailed explanations: E0277, E0425, E0432, E0599.For more information about an error, try `rustc --explain E0277`.error: could not compile `std` (lib) due to 15 previous errors