Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to build on macos 10.12 #44

Closed
rileytg opened this issue Dec 30, 2019 · 5 comments · Fixed by #66
Closed

failed to build on macos 10.12 #44

rileytg opened this issue Dec 30, 2019 · 5 comments · Fixed by #66

Comments

@rileytg
Copy link

rileytg commented Dec 30, 2019

Some errors occurred: E0432, E0658.
For more information about an error, try `rustc --explain E0432`.
error: Could not compile `futures-core`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `bandwhich v0.6.0`, intermediate artifacts can be found at `/var/folders/37/jbt828fj49932z8nspl09nc00000gn/T/cargo-installz0gwr1`

@rileytg
Copy link
Author

rileytg commented Dec 30, 2019

full output:

   Compiling futures-core v0.3.1
error[E0432]: unresolved import `core::task::Context`
 --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:5:18
  |
5 | use core::task::{Context, Poll};
  |                  ^^^^^^^ no `Context` in `task`

error[E0432]: unresolved import `core::task::Context`
 --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/stream.rs:5:18
  |
5 | use core::task::{Context, Poll};
  |                  ^^^^^^^ no `Context` in `task`

error[E0432]: unresolved imports `core::task::Context`, `core::task::RawWaker`, `core::task::RawWakerVTable`
 --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/task/mod.rs:9:22
  |
9 | pub use core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};
  |                      ^^^^^^^               ^^^^^^^^  ^^^^^^^^^^^^^^ no `RawWakerVTable` in `task`
  |                      |                     |
  |                      |                     no `RawWaker` in `task`
  |                      no `Context` in `task`

error[E0658]: use of unstable library feature 'alloc': this library is unlikely to be stabilized in its current form or name (see issue #27783)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/lib.rs:20:1
   |
20 | extern crate alloc;
   | ^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/lib.rs:23:39
   |
23 | #[doc(hidden)] pub use self::future::{Future, FusedFuture, TryFuture};
   |                                       ^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
 --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:5:27
  |
5 | use core::task::{Context, Poll};
  |                           ^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
 --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:7:9
  |
7 | pub use core::future::Future;
  |         ^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:12:55
   |
12 | pub type BoxFuture<'a, T> = Pin<alloc::boxed::Box<dyn Future<Output = T> + Send + 'a>>;
   |                                                       ^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:16:60
   |
16 | pub type LocalBoxFuture<'a, T> = Pin<alloc::boxed::Box<dyn Future<Output = T> + 'a>>;
   |                                                            ^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:26:24
   |
26 | pub trait FusedFuture: Future {
   |                        ^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:57:22
   |
57 | pub trait TryFuture: Future + private_try_future::Sealed {
   |                      ^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:76:23
   |
76 |     where F: ?Sized + Future<Output = Result<T, E>>
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:72:10
   |
72 |     ) -> Poll<Result<Self::Ok, Self::Error>>;
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:82:64
   |
82 |     fn try_poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<F::Output> {
   |                                                                ^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:48:9
   |
48 |     use super::Future;
   |         ^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:52:50
   |
52 |     impl<F, T, E> Sealed for F where F: ?Sized + Future<Output = Result<T, E>> {}
   |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
 --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/stream.rs:5:27
  |
5 | use core::task::{Context, Poll};
  |                           ^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/stream.rs:61:10
   |
61 |     ) -> Poll<Option<Self::Item>>;
   |          ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
   --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/stream.rs:181:12
    |
181 |         -> Poll<Option<Result<Self::Ok, Self::Error>>>;
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
   --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/stream.rs:101:10
    |
101 |     ) -> Poll<Option<Self::Item>> {
    |          ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
   --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/stream.rs:120:10
    |
120 |     ) -> Poll<Option<Self::Item>> {
    |          ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
   --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/stream.rs:191:12
    |
191 |         -> Poll<Option<Result<Self::Ok, Self::Error>>>
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
   --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/stream.rs:208:14
    |
208 |         ) -> Poll<Option<Self::Item>> {
    |              ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
   --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/stream.rs:224:14
    |
224 |         ) -> Poll<Option<S::Item>> {
    |              ^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
 --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/task/mod.rs:9:31
  |
9 | pub use core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};
  |                               ^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
 --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/task/mod.rs:9:37
  |
9 | pub use core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};
  |                                     ^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
 --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/task/__internal/atomic_waker.rs:5:5
  |
5 | use core::task::Waker;
  |     ^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/task/__internal/atomic_waker.rs:91:30
   |
91 |     waker: UnsafeCell<Option<Waker>>,
   |                              ^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
   --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/task/__internal/atomic_waker.rs:203:29
    |
203 |         impl AssertSync for Waker {}
    |                             ^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
   --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/task/__internal/atomic_waker.rs:261:36
    |
261 |     pub fn register(&self, waker: &Waker) {
    |                                    ^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
   --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/task/__internal/atomic_waker.rs:367:34
    |
367 |     pub fn take(&self) -> Option<Waker> {
    |                                  ^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:12:62
   |
12 | pub type BoxFuture<'a, T> = Pin<alloc::boxed::Box<dyn Future<Output = T> + Send + 'a>>;
   |                                                              ^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:16:67
   |
16 | pub type LocalBoxFuture<'a, T> = Pin<alloc::boxed::Box<dyn Future<Output = T> + 'a>>;
   |                                                                   ^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:76:30
   |
76 |     where F: ?Sized + Future<Output = Result<T, E>>
   |                              ^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:82:69
   |
82 |     fn try_poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<F::Output> {
   |                                                                     ^^^^^^^^^

error[E0658]: use of unstable library feature 'futures_api': futures in libcore are unstable (see issue #50547)
  --> /Users/rileytg/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.1/src/future.rs:52:57
   |
52 |     impl<F, T, E> Sealed for F where F: ?Sized + Future<Output = Result<T, E>> {}
   |                                                         ^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 36 previous errors

Some errors occurred: E0432, E0658.
For more information about an error, try `rustc --explain E0432`.
error: Could not compile `futures-core`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `bandwhich v0.6.0`, intermediate artifacts can be found at `/var/folders/37/jbt828fj49932z8nspl09nc00000gn/T/cargo-installz0gwr1`

Caused by:
  build failed

@ebroto
Copy link
Collaborator

ebroto commented Dec 30, 2019

What is the output of

rustc --version

I suspect you are using an old version of rust, futures_api was stabilized in 1.36.0.

We should put the minimal compatible version in the README, will fix it.

@cxyfreedom
Copy link

rustup update your rust version, the problem will fix it

@Zeal-Zhu
Copy link

Zeal-Zhu commented Jan 1, 2020

I got the same errors, but rustup update works on me.

@ebroto
Copy link
Collaborator

ebroto commented Jan 1, 2020

Hey @rileytg, can you confirm if updating rust worked for you so we can close this issue?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants