linked-list-allocator
linked-list-allocator copied to clipboard
Can't use the crate for the target riscv32i-unknown-none-elf
I don't know if this is an issue and I would like to apologize for that. (It is my first issue that i wrote. )
What I did was only include the linked_list_allocator in the Cargo.toml .
/* Cargo.toml */
[dependencies]
linked_list_allocator = "0.10.4"
Terminal Output:
error[E0432]: unresolved import `core::sync::atomic::AtomicUsize`
--> /home/user123/.cargo/registry/src/github.com-1ecc6299db9ec823/lock_api-0.4.9/src/remutex.rs:19:20
|
19 | sync::atomic::{AtomicUsize, Ordering},
| ^^^^^^^^^^^ no `AtomicUsize` in `sync::atomic`
The problem is that the Riscv32i does not contain an atomic instruction set (A) and that is why the error occurs.
I do not know if I have forgotten something or if it is a bug.