databricks / click

The "Command Line Interactive Controller for Kubernetes"
Apache License 2.0
1.49k stars 84 forks source link

Installation fails #123

Closed jjangga0214 closed 4 years ago

jjangga0214 commented 4 years ago

cargo install click fails.

System info: ubuntu 19.04, 64 bits, rustc 1.33.0 (2aa4c46cf 2019-02-28)

Downloaded click v0.4.2
  Downloaded 1 crates (60.2 KB) in 2.48s
  Installing click v0.4.2
  Downloaded ctrlc v3.1.3
  Downloaded dirs v1.0.5
  Downloaded lazy_static v0.2.11
  Downloaded atty v0.2.13
  Downloaded untrusted v0.6.2
  Downloaded term v0.4.6
  Downloaded serde_json v1.0.44
  Downloaded regex v0.2.11
  Downloaded hyper v0.10.16
  Downloaded tempdir v0.3.7
  Downloaded unicode-width v0.1.7
  Downloaded bitflags v1.2.1
  Downloaded serde_derive v1.0.104
  Downloaded serde_yaml v0.8.11
  Downloaded humantime v1.3.0
  Downloaded serde v1.0.104
  Downloaded chrono v0.4.10
  Downloaded rustls v0.14.0
  Downloaded os_pipe v0.5.1
  Downloaded duct_sh v0.1.0
  Downloaded ring v0.13.5
  Downloaded rustyline v5.0.5
  Downloaded ansi_term v0.9.0
  Downloaded atomicwrites v0.2.5
  Downloaded webpki v0.18.1
  Downloaded prettytable-rs v0.6.7
  Downloaded base64 v0.5.2
  Downloaded hyper-sync-rustls v0.3.0-rc.4
  Downloaded der-parser v0.3.5
  Downloaded duct v0.12.0
  Downloaded proc-macro2 v1.0.6
  Downloaded typeable v0.1.2
  Downloaded memchr v2.2.1
  Downloaded aho-corasick v0.6.10
  Downloaded thread_local v0.3.6
  Downloaded cc v1.0.48
  Downloaded unicase v1.4.2
  Downloaded regex-syntax v0.5.6
  Downloaded syn v1.0.11
  Downloaded log v0.3.9
  Downloaded rand v0.4.6
  Downloaded lazy_static v1.4.0
  Downloaded num-integer v0.1.41
  Downloaded dtoa v0.4.4
  Downloaded utf8-ranges v1.0.4
  Downloaded num-traits v0.2.10
  Downloaded linked-hash-map v0.5.2
  Downloaded httparse v1.3.4
  Downloaded itoa v0.4.4
  Downloaded yaml-rust v0.4.3
  Downloaded quote v1.0.2
  Downloaded cfg-if v0.1.10
  Downloaded libc v0.2.66
  Downloaded language-tags v0.2.2
  Downloaded url v1.7.2
  Downloaded nix v0.14.1
  Downloaded ryu v1.0.2
  Downloaded base64 v0.9.3
  Downloaded encode_unicode v0.3.6
  Downloaded mime v0.2.6
  Downloaded num_cpus v1.11.1
  Downloaded traitobject v0.1.0
  Downloaded quick-error v1.2.2
  Downloaded log v0.4.8
  Downloaded remove_dir_all v0.5.2
  Downloaded dirs v2.0.2
  Downloaded utf8parse v0.1.1
  Downloaded sct v0.4.0
  Downloaded unicode-segmentation v1.6.0
  Downloaded csv v0.15.0
  Downloaded void v1.0.2
  Downloaded dirs-sys v0.3.4
  Downloaded version_check v0.1.5
  Downloaded duct v0.13.3
  Downloaded shared_child v0.3.4
  Downloaded os_pipe v0.8.2
  Downloaded nix v0.8.1
  Downloaded matches v0.1.8
  Downloaded byteorder v1.3.2
  Downloaded nom v2.2.1
  Downloaded autocfg v0.1.7
  Downloaded safemem v0.3.3
  Downloaded percent-encoding v1.0.1
  Downloaded unicode-xid v0.2.0
  Downloaded lazycell v1.2.1
  Downloaded rusticata-macros v0.3.3
  Downloaded idna v0.1.5
  Downloaded ucd-util v0.1.5
  Downloaded once_cell v1.2.0
  Downloaded webpki-roots v0.15.0
  Downloaded os_pipe v0.9.1
  Downloaded rustc-serialize v0.3.24
  Downloaded bitflags v0.7.0
  Downloaded nix v0.15.0
  Downloaded memchr v1.0.2
  Downloaded nom v3.2.1
  Downloaded unicode-normalization v0.1.11
  Downloaded smallvec v1.1.0
  Downloaded unicode-bidi v0.3.4
   Compiling cc v1.0.48
   Compiling libc v0.2.66
   Compiling log v0.4.8
   Compiling proc-macro2 v1.0.6
   Compiling smallvec v1.1.0
   Compiling version_check v0.1.5
error[E0658]: use of unstable library feature 'alloc': this library is unlikely to be stabilized in its current form or name (see issue #27783)
  --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:35:1
   |
35 | extern crate alloc;
   | ^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
  --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:49:5
   |
49 | use core::mem::MaybeUninit;
   |     ^^^^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:294:12
    |
294 |     Inline(MaybeUninit<A>),
    |            ^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:315:28
    |
315 |     fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> {
    |                            ^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:319:36
    |
319 |     unsafe fn into_inline(self) -> MaybeUninit<A> {
    |                                    ^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:394:45
    |
394 |             data: SmallVecData::from_inline(MaybeUninit::uninit()),
    |                                             ^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:434:63
    |
434 |                 let mut data = SmallVecData::<A>::from_inline(MaybeUninit::uninit());
    |                                                               ^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:470:45
    |
470 |             data: SmallVecData::from_inline(MaybeUninit::new(buf)),
    |                                             ^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:489:55
    |
489 |         unsafe { SmallVec::from_buf_and_len_unchecked(MaybeUninit::new(buf), len) }
    |                                                       ^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:508:51
    |
508 |     pub unsafe fn from_buf_and_len_unchecked(buf: MaybeUninit<A>, len: usize) -> SmallVec<A> {
    |                                                   ^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:670:55
    |
670 |                 self.data = SmallVecData::from_inline(MaybeUninit::uninit());
    |                                                       ^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:737:55
    |
737 |                 self.data = SmallVecData::from_inline(MaybeUninit::uninit());
    |                                                       ^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
    --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:1078:52
     |
1078 |                     let mut data: MaybeUninit<A> = MaybeUninit::uninit();
     |                                                    ^^^^^^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
    --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:1078:35
     |
1078 |                     let mut data: MaybeUninit<A> = MaybeUninit::uninit();
     |                                   ^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:303:42
    |
303 |             SmallVecData::Inline(a) => a.as_ptr() as *const A::Item,
    |                                          ^^^^^^

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:310:42
    |
310 |             SmallVecData::Inline(a) => a.as_mut_ptr() as *mut A::Item,
    |                                          ^^^^^^^^^^

error[E0599]: no function or associated item named `uninit` found for type `core::mem::MaybeUninit<_>` in the current scope
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:394:58
    |
394 |             data: SmallVecData::from_inline(MaybeUninit::uninit()),
    |                                             -------------^^^^^^
    |                                             |
    |                                             function or associated item not found in `core::mem::MaybeUninit<_>`

error[E0599]: no function or associated item named `uninit` found for type `core::mem::MaybeUninit<_>` in the current scope
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:434:76
    |
434 |                 let mut data = SmallVecData::<A>::from_inline(MaybeUninit::uninit());
    |                                                               -------------^^^^^^
    |                                                               |
    |                                                               function or associated item not found in `core::mem::MaybeUninit<_>`

error[E0599]: no function or associated item named `uninit` found for type `core::mem::MaybeUninit<_>` in the current scope
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:670:68
    |
670 |                 self.data = SmallVecData::from_inline(MaybeUninit::uninit());
    |                                                       -------------^^^^^^
    |                                                       |
    |                                                       function or associated item not found in `core::mem::MaybeUninit<_>`

error[E0599]: no function or associated item named `uninit` found for type `core::mem::MaybeUninit<_>` in the current scope
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:737:68
    |
737 |                 self.data = SmallVecData::from_inline(MaybeUninit::uninit());
    |                                                       -------------^^^^^^
    |                                                       |
    |                                                       function or associated item not found in `core::mem::MaybeUninit<_>`

error[E0599]: no method named `assume_init` found for type `core::mem::MaybeUninit<A>` in the current scope
   --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:916:39
    |
916 |                 Ok(data.into_inline().assume_init())
    |                                       ^^^^^^^^^^^

error[E0599]: no function or associated item named `uninit` found for type `core::mem::MaybeUninit<_>` in the current scope
    --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:1078:65
     |
1078 |                     let mut data: MaybeUninit<A> = MaybeUninit::uninit();
     |                                                    -------------^^^^^^
     |                                                    |
     |                                                    function or associated item not found in `core::mem::MaybeUninit<_>`

error[E0658]: use of unstable library feature 'maybe_uninit' (see issue #53491)
    --> /home/gilchan/.cargo/registry/src/github.com-1ecc6299db9ec823/smallvec-1.1.0/lib.rs:1081:30
     |
1081 |                         data.as_mut_ptr() as *mut A::Item,
     |                              ^^^^^^^^^^

error: aborting due to 23 previous errors

Some errors occurred: E0599, E0658.
For more information about an error, try `rustc --explain E0599`.
error: Could not compile `smallvec`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `click v0.4.2`, intermediate artifacts can be found at `/tmp/cargo-installtRxDsT`

Caused by:
  build failed
nicklan commented 4 years ago

alloc has been stable since rust 1.36.0. (see here) Can you update your rust installation and try again?

nicklan commented 4 years ago

I'm gonna assume the update helps. If not, feel free to re-open this issue