You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.
seems does not compile on any windows i686 targets
error[E0412]: cannot find type `Ordering` in this scope
--> C:\Users\appveyor\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-timer-0.2.0\src\atomic.rs:64:42
|
64 | pub fn store(&self, val: u64, _: Ordering) {
| ^^^^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
|
46 | use std::cmp::Ordering;
|
46 | use std::sync::atomic::Ordering;
|
The text was updated successfully, but these errors were encountered:
After running into this on an ARM system, I was able to fix this quite simply by going into tokio-timer-0.2.0\src\atomic.rs and fixing the missing use; appears this wasn't properly tested on a 64bit system.
add the following line at line 47: use std::sync::atomic::{AtomicUsize, Ordering};
like in the following snippet:
#[cfg(not(target_pointer_width = "64"))]
mod imp { use std::sync::Mutex; use std::sync::atomic::{AtomicUsize, Ordering};
and you should then be able to compile. Sorry for not having any diff or pull request, didn't want to fiddle around with github just for letting people know how this might get fixed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
seems does not compile on any windows i686 targets
The text was updated successfully, but these errors were encountered: