Skip to content

Instantly share code, notes, and snippets.

@vadorovsky
Created January 13, 2023 05:10
Show Gist options
  • Save vadorovsky/c9a3892a85ea4425082d91a729ffcfb2 to your computer and use it in GitHub Desktop.
Save vadorovsky/c9a3892a85ea4425082d91a729ffcfb2 to your computer and use it in GitHub Desktop.
rustc core::sync::atomic failure on bpfel-unknown-none
Building stage1 library artifacts (x86_64-unknown-linux-gnu -> bpfel-unknown-none)
Compiling core v0.0.0 (/home/vadorovsky/repos/rust/library/core)
Compiling compiler_builtins v0.1.85
error: cannot find macro `atomic_int` in this scope
--> library/core/src/sync/atomic.rs:2821:1
|
2821 | atomic_int! {
| ^^^^^^^^^^
error: cannot find macro `atomic_int` in this scope
--> library/core/src/sync/atomic.rs:2841:1
|
2841 | atomic_int! {
| ^^^^^^^^^^
error: cannot find macro `atomic_int` in this scope
--> library/core/src/sync/atomic.rs:2905:9
|
2901 | / macro_rules! atomic_int_ptr_sized {
2902 | | ( $($target_pointer_width:literal $align:literal)* ) => { $(
2903 | | #[cfg(target_has_atomic_load_store = "ptr")]
2904 | | #[cfg(target_pointer_width = $target_pointer_width)]
2905 | | atomic_int! {
| | ^^^^^^^^^^
... |
2945 | | )* };
2946 | | }
| |_- in this expansion of `atomic_int_ptr_sized!`
2947 |
2948 | / atomic_int_ptr_sized! {
2949 | | "16" 2
2950 | | "32" 4
2951 | | "64" 8
2952 | | }
| |_- in this macro invocation
error: cannot find macro `atomic_int` in this scope
--> library/core/src/sync/atomic.rs:2926:9
|
2901 | / macro_rules! atomic_int_ptr_sized {
2902 | | ( $($target_pointer_width:literal $align:literal)* ) => { $(
2903 | | #[cfg(target_has_atomic_load_store = "ptr")]
2904 | | #[cfg(target_pointer_width = $target_pointer_width)]
... |
2926 | | atomic_int! {
| | ^^^^^^^^^^
... |
2945 | | )* };
2946 | | }
| |_- in this expansion of `atomic_int_ptr_sized!`
2947 |
2948 | / atomic_int_ptr_sized! {
2949 | | "16" 2
2950 | | "32" 4
2951 | | "64" 8
2952 | | }
| |_- in this macro invocation
error[E0412]: cannot find type `AtomicIsize` in module `crate::sync::atomic`
--> library/core/src/panic/unwind_safe.rs:206:45
|
206 | impl RefUnwindSafe for crate::sync::atomic::AtomicIsize {}
| ^^^^^^^^^^^ not found in `crate::sync::atomic`
error[E0412]: cannot find type `AtomicI64` in module `crate::sync::atomic`
--> library/core/src/panic/unwind_safe.rs:218:45
|
218 | impl RefUnwindSafe for crate::sync::atomic::AtomicI64 {}
| ^^^^^^^^^ help: a struct with a similar name exists: `AtomicPtr`
|
::: library/core/src/sync/atomic.rs:176:1
|
176 | pub struct AtomicPtr<T> {
| ----------------------- similarly named struct `AtomicPtr` defined here
error[E0412]: cannot find type `AtomicUsize` in module `crate::sync::atomic`
--> library/core/src/panic/unwind_safe.rs:225:45
|
225 | impl RefUnwindSafe for crate::sync::atomic::AtomicUsize {}
| ^^^^^^^^^^^ not found in `crate::sync::atomic`
error[E0412]: cannot find type `AtomicU64` in module `crate::sync::atomic`
--> library/core/src/panic/unwind_safe.rs:237:45
|
237 | impl RefUnwindSafe for crate::sync::atomic::AtomicU64 {}
| ^^^^^^^^^ help: a struct with a similar name exists: `AtomicPtr`
|
::: library/core/src/sync/atomic.rs:176:1
|
176 | pub struct AtomicPtr<T> {
| ----------------------- similarly named struct `AtomicPtr` defined here
error[E0425]: cannot find function `atomic_swap` in this scope
--> library/core/src/sync/atomic.rs:1253:18
|
1253 | unsafe { atomic_swap(self.p.get(), ptr, order) }
...
2983 | unsafe fn atomic_load<T: Copy>(dst: *const T, order: Ordering) -> T {
| ------------------------------------------------------------------- similarly named function `atomic_load` defined here
error[E0425]: cannot find function `strongest_failure_ordering` in this scope
--> library/core/src/sync/atomic.rs:1308:58
|
1308 | match self.compare_exchange(current, new, order, strongest_failure_ordering(order)) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `atomic_compare_exchange` in this scope
--> library/core/src/sync/atomic.rs:1355:18
|
1355 | unsafe { atomic_compare_exchange(self.p.get(), current, new, success, failure) }
| ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `atomic_compare_exchange_weak` in this scope
--> library/core/src/sync/atomic.rs:1407:18
|
1407 | unsafe { atomic_compare_exchange_weak(self.p.get(), current, new, success, failure) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `atomic_add` in this scope
--> library/core/src/sync/atomic.rs:1603:18
|
1603 | unsafe { atomic_add(self.p.get(), core::ptr::invalid_mut(val), order).cast() }
| ^^^^^^^^^^ help: a function with a similar name exists: `atomic_load`
...
2983 | unsafe fn atomic_load<T: Copy>(dst: *const T, order: Ordering) -> T {
| ------------------------------------------------------------------- similarly named function `atomic_load` defined here
error[E0425]: cannot find function `atomic_sub` in this scope
--> library/core/src/sync/atomic.rs:1638:18
|
1638 | unsafe { atomic_sub(self.p.get(), core::ptr::invalid_mut(val), order).cast() }
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `atomic_or` in this scope
--> library/core/src/sync/atomic.rs:1689:18
|
1689 | unsafe { atomic_or(self.p.get(), core::ptr::invalid_mut(val), order).cast() }
| ^^^^^^^^^ help: a function with a similar name exists: `atomic_load`
...
2983 | unsafe fn atomic_load<T: Copy>(dst: *const T, order: Ordering) -> T {
| ------------------------------------------------------------------- similarly named function `atomic_load` defined here
error[E0425]: cannot find function `atomic_and` in this scope
--> library/core/src/sync/atomic.rs:1739:18
|
1739 | unsafe { atomic_and(self.p.get(), core::ptr::invalid_mut(val), order).cast() }
| ^^^^^^^^^^ help: a function with a similar name exists: `atomic_load`
...
2983 | unsafe fn atomic_load<T: Copy>(dst: *const T, order: Ordering) -> T {
| ------------------------------------------------------------------- similarly named function `atomic_load` defined here
error[E0425]: cannot find function `atomic_xor` in this scope
--> library/core/src/sync/atomic.rs:1787:18
|
1787 | unsafe { atomic_xor(self.p.get(), core::ptr::invalid_mut(val), order).cast() }
| ^^^^^^^^^^ help: a function with a similar name exists: `atomic_load`
...
2983 | unsafe fn atomic_load<T: Copy>(dst: *const T, order: Ordering) -> T {
| ------------------------------------------------------------------- similarly named function `atomic_load` defined here
Some errors have detailed explanations: E0412, E0425.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `core` due to 17 previous errors
Build completed unsuccessfully in 0:04:2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment