Closed lscorcia closed 1 year ago
Ah yeah, so we're using AtomicU64
which apparently your target doesn't have. I'd be open to polyfilling that with a Mutex<u64>
somehow but I probably won't be motivated to write that code myself.
I've been able to continue the compilation process by patching indicatif to use atomic-shim, but I had to slightly alter that in order to support the arm
platform. Later I found out about https://docs.rs/tokio/0.2.4/src/tokio/loom/std/atomic_u64.rs.html which seems simpler, but already includes the arm
platform.
Could you borrow the implementation from those?
The loom is an internal implementation detail for Tokio that is used to help them test. Relying on atomic-shim for these platforms seems correct, probably submit a PR their way to add arm support?
Sent PR at https://github.com/bltavares/atomic-shim/pull/5 . Let's wait and see!
Opened #484 to use portable-atomic
.
Hi, totally a rust noob so I apologize if I'm misreading what the rust compiler is telling me. I'm trying to build homeassistant on an embedded armv5tel NAS (32-bit). I'm stuck at building maturin, which requires indicatif v0.17.0. While building, I get the following error:
Some info about my environment:
It seems like
AtomicU64
is not defined on all architectures (I've seen similar reports for PowerPC, i.e. https://github.com/tikv/rust-prometheus/issues/315). Can you please provide a fix/workaround?