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

cargo install deno - fails #9524

Closed
dejannenov opened this issue Feb 17, 2021 · 6 comments
Closed

cargo install deno - fails #9524

dejannenov opened this issue Feb 17, 2021 · 6 comments
Labels
needs info needs further information to be properly triaged

Comments

@dejannenov
Copy link

dejannenov commented Feb 17, 2021

error: aborting due to 3 previous errors

Click to expand
C:\Users\d>cargo install deno
    Updating crates.io index
  Downloaded deno v1.7.2
  Downloaded 1 crate (2.3 MB) in 4.05s
  Installing deno v1.7.2
  Downloaded Inflector v0.11.4
  Downloaded aho-corasick v0.7.15
  Downloaded alloc-stdlib v0.2.1
  Downloaded ast_node v0.7.1
  Downloaded arrayvec v0.5.2
  Downloaded brotli-decompressor v2.3.1
  Downloaded base64 v0.12.3
  Downloaded cfg-if v1.0.0
  Downloaded bytes v1.0.1
  Downloaded crossbeam-utils v0.8.1
  Downloaded deno_crypto v0.12.0
  Downloaded crossbeam-channel v0.5.0
  Downloaded deno_lint v0.2.18
  Downloaded deno_runtime v0.8.0
  Downloaded dprint-core v0.35.1
  Downloaded env_logger v0.8.3
  Downloaded fs2 v0.4.3
  Downloaded from_variant v0.1.2
  Downloaded enum_kind v0.2.0
  Downloaded futures-io v0.3.12
  Downloaded futures-executor v0.3.12
  Downloaded getrandom v0.2.2
  Downloaded httpdate v0.3.2
  Downloaded heck v0.3.2
  Downloaded ident_case v1.0.1
  Downloaded idna v0.2.1
  Downloaded is-macro v0.1.8
  Downloaded lexical-core v0.7.5
  Downloaded lru-cache v0.1.2
  Downloaded lspower-macros v0.2.0
  Downloaded mio v0.7.7
  Downloaded miniz_oxide v0.4.3
  Downloaded opaque-debug v0.3.0
  Downloaded num-integer v0.1.44
  Downloaded percent-encoding v2.1.0
  Downloaded pest v2.1.3
  Downloaded pin-utils v0.1.0
  Downloaded pin-project-lite v0.2.4
  Downloaded proc-macro-nested v0.1.7
  Downloaded proc-macro2 v0.4.30
  Downloaded radix_fmt v1.0.0
  Downloaded rand v0.8.3
  Downloaded reqwest v0.11.0
  Downloaded rustyline-derive v0.4.0
  Downloaded ring v0.16.20
  Downloaded serde_repr v0.1.6
  Downloaded spin v0.5.2
  Downloaded smallvec v1.6.1
  Downloaded string_cache v0.8.1
  Downloaded string_cache_codegen v0.5.1
  Downloaded swc_ecma_codegen v0.43.8
  Downloaded swc_ecma_parser v0.45.6
  Downloaded swc_ecma_transforms_base v0.3.0
  Downloaded swc_ecma_visit v0.23.3
  Downloaded swc_ecma_transforms_typescript v0.3.9
  Downloaded swc_eq_ignore_macros v0.1.0
  Downloaded tempfile v3.2.0
  Downloaded tap v1.0.1
  Downloaded tinyvec_macros v0.1.0
  Downloaded tokio-rustls v0.22.0
  Downloaded toml v0.5.8
  Downloaded tracing-futures v0.2.5
  Downloaded ucd-trie v0.1.3
  Downloaded unicode-normalization v0.1.17
  Downloaded untrusted v0.7.1
  Downloaded uuid v0.8.2
  Downloaded which v4.0.2
  Downloaded widestring v0.4.3
  Downloaded anymap v0.12.1
  Downloaded anyhow v1.0.38
  Downloaded base64 v0.13.0
  Downloaded base64 v0.11.0
  Downloaded cc v1.0.66
  Downloaded clap v2.33.3
  Downloaded darling_macro v0.10.2
  Downloaded digest v0.9.0
  Downloaded derive_more v0.99.11
  Downloaded either v1.6.1
  Downloaded dprint-swc-ecma-ast-view v0.5.0
  Downloaded fslock v0.1.6
  Downloaded futures-util v0.3.12
  Downloaded funty v1.1.0
  Downloaded getrandom v0.1.16
  Downloaded http-body v0.4.0
  Downloaded http v0.2.3
  Downloaded instant v0.1.9
  Downloaded input_buffer v0.4.0
  Downloaded log v0.4.14
  Downloaded lock_api v0.4.2
  Downloaded miow v0.3.6
  Downloaded notify v5.0.0-pre.5
  Downloaded owning_ref v0.4.1
  Downloaded parking_lot v0.11.1
  Downloaded pin-project-internal v1.0.5
  Downloaded pin-project v1.0.5
  Downloaded quote v1.0.9
  Downloaded proc-macro2 v1.0.24
  Downloaded rand_pcg v0.2.1
  Downloaded regex v1.4.3
  Downloaded scoped-tls v1.0.0
  Downloaded serde_urlencoded v0.7.0
  Downloaded rusty_v8 v0.16.0
  Downloaded shell-escape v0.1.5
  Downloaded siphasher v0.3.3
  Downloaded string_enum v0.3.0
  Downloaded swc_ecma_ast v0.37.3
  Downloaded swc_ecma_transforms_optimization v0.3.8
  Downloaded swc_common v0.10.9
  Downloaded swc_macros_common v0.3.1
  Downloaded swc_visit v0.2.2
  Downloaded swc_ecma_utils v0.28.0
  Downloaded thiserror-impl v1.0.23
  Downloaded sys-info v0.7.0
  Downloaded tokio-stream v0.1.3
  Downloaded try-lock v0.2.3
  Downloaded tracing v0.1.23
  Downloaded unicode-width v0.1.8
  Downloaded unicode-segmentation v1.7.1
  Downloaded adler v0.2.3
  Downloaded winreg v0.7.0
  Downloaded autocfg v1.0.1
  Downloaded async-compression v0.3.7
  Downloaded build_const v0.2.1
  Downloaded brotli v3.3.0
  Downloaded data-encoding v2.3.2
  Downloaded darling_core v0.10.2
  Downloaded dissimilar v1.0.2
  Downloaded encoding_rs v0.8.28
  Downloaded dprint-plugin-typescript v0.38.5
  Downloaded futures v0.3.12
  Downloaded generic-array v0.14.4
  Downloaded hyper v0.14.4
  Downloaded h2 v0.3.0
  Downloaded libc v0.2.86
  Downloaded mime v0.3.16
  Downloaded parking_lot_core v0.8.3
  Downloaded once_cell v1.5.2
  Downloaded phf_shared v0.8.0
  Downloaded jsonc-parser v0.15.1
  Downloaded pmutil v0.5.3
  Downloaded regex-syntax v0.6.22
  Downloaded radium v0.5.3
  Downloaded rustyline v7.1.0
  Downloaded rustc_version v0.2.3
  Downloaded sourcemap v6.0.1
  Downloaded socket2 v0.3.19
  Downloaded swc_ecma_codegen_macros v0.5.1
  Downloaded swc_ecma_ast v0.38.0
  Downloaded swc_ecma_utils v0.27.3
  Downloaded swc_ecma_transforms_react v0.3.7
  Downloaded text-size v1.1.0
  Downloaded termcolor v1.1.2
  Downloaded tokio-util v0.6.3
  Downloaded tower-service v0.3.1
  Downloaded unicode-xid v0.2.1
  Downloaded webpki v0.21.4
  Downloaded unicode-xid v0.1.0
  Downloaded winreg v0.6.2
  Downloaded winapi v0.3.9
  Downloaded byteorder v1.4.2
  Downloaded dprint-plugin-markdown v0.5.1
  Downloaded cargo_gn v0.0.15
  Downloaded deno_fetch v0.21.0
  Downloaded deno_doc v0.1.22
  Downloaded form_urlencoded v1.0.0
  Downloaded flate2 v1.0.20
  Downloaded hostname v0.3.1
  Downloaded hashbrown v0.9.1
  Downloaded itoa v0.4.7
  Downloaded ipnet v2.3.0
  Downloaded memchr v2.3.4
  Downloaded nom v6.1.2
  Downloaded phf_macros v0.8.0
  Downloaded phf_generator v0.8.0
  Downloaded quick-error v1.2.3
  Downloaded rustls v0.19.0
  Downloaded relative-path v1.3.2
  Downloaded sha-1 v0.9.4
  Downloaded semver-parser v0.10.2
  Downloaded strsim v0.9.3
  Downloaded swc_atoms v0.2.5
  Downloaded swc_ecma_visit v0.24.0
  Downloaded swc_ecmascript v0.18.8
  Downloaded tokio-tungstenite v0.13.0
  Downloaded tinyvec v1.1.1
  Downloaded unicase v2.6.0
  Downloaded winres v0.1.11
  Downloaded utf-8 v0.7.5
  Downloaded bitvec v0.19.4
  Downloaded crc v1.8.1
  Downloaded dashmap v4.0.2
  Downloaded enum-as-inner v0.3.3
  Downloaded futures-channel v0.3.12
  Downloaded hyper-rustls v0.22.1
  Downloaded fwdansi v1.1.0
  Downloaded filetime v0.2.14
  Downloaded new_debug_unreachable v1.0.4
  Downloaded indexmap v1.6.1
  Downloaded lspower v0.6.1
  Downloaded num-bigint v0.2.6
  Downloaded proc-macro-error v1.0.4
  Downloaded pulldown-cmark v0.8.0
  Downloaded resolv-conf v0.7.0
  Downloaded static_assertions v1.1.0
  Downloaded swc_bundler v0.20.9
  Downloaded syn v0.15.44
  Downloaded tokio-macros v1.1.0
  Downloaded swc_ecma_transforms_base v0.2.9
  Downloaded unicode-bidi v0.3.4
  Downloaded tungstenite v0.12.0
  Downloaded async-trait v0.1.42
  Downloaded auto_impl v0.4.1
  Downloaded deno_websocket v0.4.0
  Downloaded futures-sink v0.3.12
  Downloaded deno_web v0.29.0
  Downloaded humantime v2.1.0
  Downloaded if_chain v1.0.1
  Downloaded phf v0.8.0
  Downloaded petgraph v0.5.1
  Downloaded serde_derive v1.0.123
  Downloaded rand_core v0.6.2
  Downloaded swc_ecma_parser v0.46.0
  Downloaded swc_ecma_transforms v0.33.8
  Downloaded thiserror v1.0.23
  Downloaded want v0.3.0
  Downloaded version_check v0.9.2
  Downloaded cpuid-bool v0.1.2
  Downloaded crc32fast v1.2.1
  Downloaded futures-macro v0.3.12
  Downloaded httparse v1.3.5
  Downloaded matches v0.1.8
  Downloaded ppv-lite86 v0.2.10
  Downloaded serde v1.0.123
  Downloaded rand_chacha v0.3.0
  Downloaded serde_json v1.0.62
  Downloaded swc_visit_macros v0.2.2
  Downloaded swc_ecmascript v0.20.0
  Downloaded deno_core v0.78.0
  Downloaded wyz v0.2.0
  Downloaded webpki-roots v0.21.0
  Downloaded futures-core v0.3.12
  Downloaded fixedbitset v0.2.0
  Downloaded proc-macro-error-attr v1.0.4
  Downloaded ntapi v0.3.6
  Downloaded slab v0.4.2
  Downloaded swc_ecma_transforms v0.34.0
  Downloaded trust-dns-proto v0.20.0
  Downloaded trust-dns-resolver v0.20.0
  Downloaded dlopen v0.1.8
  Downloaded match_cfg v0.1.0
  Downloaded retain_mut v0.1.2
  Downloaded lsp-types v0.86.0
  Downloaded url v2.2.0
  Downloaded alloc-no-stdlib v2.0.1
  Downloaded ipconfig v0.2.2
  Downloaded thread_local v1.1.3
  Downloaded num-traits v0.2.14
  Downloaded swc_ecma_dep_graph v0.12.5
  Downloaded swc_ecma_transforms_proposal v0.3.7
  Downloaded fxhash v0.2.1
  Downloaded sct v0.6.0
  Downloaded dlopen_derive v0.1.4
  Downloaded tracing-core v0.1.17
  Downloaded precomputed-hash v0.1.1
  Downloaded darling v0.10.2
  Downloaded linked-hash-map v0.5.4
  Downloaded block-buffer v0.9.0
  Downloaded stable_deref_trait v1.2.0
  Downloaded bumpalo v3.6.0
  Downloaded futures-task v0.3.12
  Downloaded syn v1.0.60
  Downloaded proc-macro-hack v0.5.19
  Downloaded tokio v1.2.0
  Downloaded quote v0.6.13
  Downloaded 274 crates (32.5 MB) in 48.31s (largest was `rusty_v8` at 10.6 MB)
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.60
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.0.1
   Compiling serde_derive v1.0.123
   Compiling serde v1.0.123
   Compiling memchr v2.3.4
   Compiling once_cell v1.5.2
   Compiling winapi v0.3.9
   Compiling log v0.4.14
   Compiling lazy_static v1.4.0
   Compiling matches v0.1.8
   Compiling itoa v0.4.7
   Compiling tinyvec_macros v0.1.0
   Compiling ppv-lite86 v0.2.10
   Compiling percent-encoding v2.1.0
   Compiling fnv v1.0.7
   Compiling hashbrown v0.9.1
   Compiling ryu v1.0.5
   Compiling libc v0.2.86
   Compiling smallvec v1.6.1
   Compiling proc-macro-hack v0.5.19
   Compiling serde_json v1.0.62
   Compiling getrandom v0.1.16
   Compiling regex-syntax v0.6.22
   Compiling siphasher v0.3.3
   Compiling byteorder v1.4.2
   Compiling unicode-width v0.1.8
   Compiling strsim v0.9.3
   Compiling ident_case v1.0.1
   Compiling version_check v0.9.2
   Compiling pin-project-lite v0.2.4
   Compiling new_debug_unreachable v1.0.4
   Compiling precomputed-hash v0.1.1
   Compiling stable_deref_trait v1.2.0
   Compiling either v1.6.1
   Compiling bitflags v1.2.1
   Compiling if_chain v1.0.1
   Compiling base64 v0.11.0
   Compiling cfg-if v0.1.10
   Compiling futures-core v0.3.12
   Compiling scoped-tls v1.0.0
   Compiling proc-macro-nested v0.1.7
   Compiling bytes v1.0.1
   Compiling futures-sink v0.3.12
   Compiling scopeguard v1.1.0
   Compiling ntapi v0.3.6
   Compiling futures-io v0.3.12
   Compiling pin-utils v0.1.0
   Compiling slab v0.4.2
   Compiling cc v1.0.66
   Compiling getrandom v0.2.2
   Compiling spin v0.5.2
   Compiling untrusted v0.7.1
   Compiling anyhow v1.0.38
   Compiling httparse v1.3.5
   Compiling typenum v1.12.0
   Compiling cargo_gn v0.0.15
   Compiling base64 v0.13.0
   Compiling crc32fast v1.2.1
   Compiling alloc-no-stdlib v2.0.1
   Compiling adler v0.2.3
   Compiling try-lock v0.2.3
   Compiling tower-service v0.3.1
   Compiling ipnet v2.3.0
   Compiling encoding_rs v0.8.28
   Compiling httpdate v0.3.2
   Compiling cpuid-bool v0.1.2
   Compiling opaque-debug v0.3.0
   Compiling utf-8 v0.7.5
   Compiling unicode-segmentation v1.7.1
   Compiling mime v0.3.16
   Compiling proc-macro2 v0.4.30
   Compiling unicode-xid v0.1.0
   Compiling retain_mut v0.1.2
   Compiling syn v0.15.44
   Compiling radium v0.5.3
   Compiling build_const v0.2.1
   Compiling lexical-core v0.7.5
   Compiling ipconfig v0.2.2
   Compiling bumpalo v3.6.0
   Compiling match_cfg v0.1.0
   Compiling arrayvec v0.5.2
   Compiling widestring v0.4.3
   Compiling quick-error v1.2.3
   Compiling linked-hash-map v0.5.4
   Compiling wyz v0.2.0
   Compiling funty v1.1.0
   Compiling tap v1.0.1
   Compiling static_assertions v1.1.0
   Compiling pulldown-cmark v0.8.0
   Compiling data-encoding v2.3.2
   Compiling base64 v0.12.3
   Compiling ucd-trie v0.1.3
   Compiling swc_bundler v0.20.9
   Compiling humantime v2.1.0
   Compiling fixedbitset v0.2.0
   Compiling anymap v0.12.1
   Compiling relative-path v1.3.2
   Compiling radix_fmt v1.0.0
   Compiling strsim v0.8.0
   Compiling shell-escape v0.1.5
   Compiling vec_map v0.8.2
   Compiling text-size v1.1.0
   Compiling jsonc-parser v0.15.1
   Compiling dissimilar v1.0.2
   Compiling instant v0.1.9
   Compiling unicode-bidi v0.3.4
   Compiling owning_ref v0.4.1
   Compiling tinyvec v1.1.1
   Compiling futures-channel v0.3.12
   Compiling thread_local v1.1.3
   Compiling futures-task v0.3.12
   Compiling lock_api v0.4.2
   Compiling phf_shared v0.8.0
   Compiling tracing-core v0.1.17
   Compiling textwrap v0.11.0
   Compiling form_urlencoded v1.0.0
   Compiling fxhash v0.2.1
   Compiling alloc-stdlib v0.2.1
   Compiling http v0.2.3
   Compiling input_buffer v0.4.0
   Compiling lru-cache v0.1.2
   Compiling heck v0.3.2
   Compiling pest v2.1.3
   Compiling crc v1.8.1
   Compiling brotli-decompressor v2.3.1
   Compiling tracing v0.1.23
   Compiling indexmap v1.6.1
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling num-bigint v0.2.6
   Compiling tokio v1.2.0
   Compiling miniz_oxide v0.4.3
   Compiling crossbeam-utils v0.8.1
   Compiling generic-array v0.14.4
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling unicase v2.6.0
   Compiling nom v6.1.2
   Compiling unicode-normalization v0.1.17
   Compiling semver-parser v0.10.2
   Compiling http-body v0.4.0
   Compiling ring v0.16.20
   Compiling sys-info v0.7.0
   Compiling num_cpus v1.13.0
   Compiling rand_core v0.6.2
   Compiling uuid v0.8.2
   Compiling rand_core v0.5.1
   Compiling bitvec v0.19.4
   Compiling aho-corasick v0.7.15
   Compiling quote v1.0.9
   Compiling quote v0.6.13
   Compiling dashmap v4.0.2
   Compiling idna v0.2.1
   Compiling rand_chacha v0.3.0
   Compiling rand_pcg v0.2.1
   Compiling rand_chacha v0.2.2
   Compiling brotli v3.3.0
   Compiling regex v1.4.3
   Compiling crossbeam-channel v0.5.0
   Compiling rand v0.8.3
   Compiling rand v0.7.3
   Compiling petgraph v0.5.1
   Compiling flate2 v1.0.20
   Compiling digest v0.9.0
   Compiling block-buffer v0.9.0
   Compiling sha-1 v0.9.4
   Compiling Inflector v0.11.4
   Compiling phf_generator v0.8.0
   Compiling string_cache_codegen v0.5.1
   Compiling swc_atoms v0.2.5
   Compiling dlopen_derive v0.1.4
   Compiling pmutil v0.5.3
   Compiling darling_core v0.10.2
   Compiling swc_macros_common v0.3.1
   Compiling socket2 v0.3.19
   Compiling parking_lot_core v0.8.3
   Compiling fslock v0.1.6
   Compiling winapi-util v0.1.5
   Compiling winreg v0.7.0
   Compiling winreg v0.6.2
   Compiling hostname v0.3.1
   Compiling atty v0.2.14
   Compiling filetime v0.2.14
   Compiling fs2 v0.4.3
   Compiling remove_dir_all v0.5.3
   Compiling resolv-conf v0.7.0
   Compiling clap v2.33.3
   Compiling dlopen v0.1.8
   Compiling tempfile v3.2.0
   Compiling termcolor v1.1.2
   Compiling same-file v1.0.6
   Compiling miow v0.3.6
   Compiling parking_lot v0.11.1
   Compiling walkdir v2.3.1
   Compiling fwdansi v1.1.0
   Compiling notify v5.0.0-pre.5
   Compiling webpki v0.21.4
   Compiling sct v0.6.0
   Compiling webpki-roots v0.21.0
   Compiling darling_macro v0.10.2
   Compiling swc_visit_macros v0.2.2
   Compiling from_variant v0.1.2
   Compiling swc_eq_ignore_macros v0.1.0
   Compiling string_enum v0.3.0
   Compiling is-macro v0.1.8
   Compiling futures-macro v0.3.12
   Compiling tokio-macros v1.1.0
   Compiling thiserror-impl v1.0.23
   Compiling enum_kind v0.2.0
   Compiling pin-project-internal v1.0.5
   Compiling phf_macros v0.8.0
   Compiling swc_ecma_codegen_macros v0.5.1
   Compiling async-trait v0.1.42
   Compiling enum-as-inner v0.3.3
   Compiling serde_repr v0.1.6
   Compiling lspower-macros v0.2.0
   Compiling auto_impl v0.4.1
   Compiling rustyline-derive v0.4.0
   Compiling derive_more v0.99.11
   Compiling phf v0.8.0
   Compiling thiserror v1.0.23
   Compiling which v4.0.2
   Compiling rusty_v8 v0.16.0
   Compiling pin-project v1.0.5
   Compiling tracing-futures v0.2.5
   Compiling swc_visit v0.2.2
   Compiling futures-util v0.3.12
error[E0658]: the `#[track_caller]` attribute is an experimental feature
   --> C:\Users\d\.cargo\registry\src\github.com-1ecc6299db9ec823\rusty_v8-0.16.0\src\support.rs:231:3
    |
231 |   #[track_caller]
    |   ^^^^^^^^^^^^^^^
    |
    = note: see issue #47809 <https://github.com/rust-lang/rust/issues/47809> for more information

error[E0658]: the `#[track_caller]` attribute is an experimental feature
   --> C:\Users\d\.cargo\registry\src\github.com-1ecc6299db9ec823\rusty_v8-0.16.0\src\support.rs:298:3
    |
298 |   #[track_caller]
    |   ^^^^^^^^^^^^^^^
    |
    = note: see issue #47809 <https://github.com/rust-lang/rust/issues/47809> for more information

error[E0658]: the `#[track_caller]` attribute is an experimental feature
   --> C:\Users\d\.cargo\registry\src\github.com-1ecc6299db9ec823\rusty_v8-0.16.0\src\support.rs:335:1
    |
335 | #[track_caller]
    | ^^^^^^^^^^^^^^^
    |
    = note: see issue #47809 <https://github.com/rust-lang/rust/issues/47809> for more information

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `rusty_v8`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `deno v1.7.2`, intermediate artifacts can be found at `C:\Users\d\AppData\Local\Temp\cargo-installVuIWx4`

Caused by:
  build failed
@kitsonk kitsonk added the needs info needs further information to be properly triaged label Feb 17, 2021
@kitsonk
Copy link
Contributor

kitsonk commented Feb 17, 2021

What is the output of?

$ rustc --version

@dejannenov
Copy link
Author

dejannenov commented Feb 18, 2021

upgraded to latest rustc
rustc --version:

C:\Users\d>rustc --version
rustc 1.50.0 (cb75ad5db 2021-02-10)

the error is now:

Another big dump of text that isn't useful
C:\Users\d>cargo install deno
    Updating crates.io index
  Installing deno v1.7.2
  Downloaded mio v0.7.8
  Downloaded tracing v0.1.24
  Downloaded 2 crates (151.8 KB) in 2.06s
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.60
   Compiling autocfg v1.0.1
   Compiling serde_derive v1.0.123
   Compiling serde v1.0.123
   Compiling winapi v0.3.9
   Compiling memchr v2.3.4
   Compiling log v0.4.14
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.86
   Compiling once_cell v1.5.2
   Compiling ryu v1.0.5
   Compiling proc-macro-hack v0.5.19
   Compiling lazy_static v1.4.0
   Compiling serde_json v1.0.62
   Compiling matches v0.1.8
   Compiling ppv-lite86 v0.2.10
   Compiling itoa v0.4.7
   Compiling fnv v1.0.7
   Compiling tinyvec_macros v0.1.0
   Compiling percent-encoding v2.1.0
   Compiling hashbrown v0.9.1
   Compiling proc-macro-nested v0.1.7
   Compiling smallvec v1.6.1
   Compiling getrandom v0.1.16
   Compiling ntapi v0.3.6
   Compiling version_check v0.9.2
   Compiling bitflags v1.2.1
   Compiling regex-syntax v0.6.22
   Compiling siphasher v0.3.3
   Compiling byteorder v1.4.2
   Compiling cc v1.0.66
   Compiling ident_case v1.0.1
   Compiling unicode-width v0.1.8
   Compiling strsim v0.9.3
   Compiling new_debug_unreachable v1.0.4
   Compiling precomputed-hash v0.1.1
   Compiling stable_deref_trait v1.2.0
   Compiling either v1.6.1
   Compiling getrandom v0.2.2
   Compiling if_chain v1.0.1
   Compiling base64 v0.11.0
   Compiling scoped-tls v1.0.0
   Compiling cfg-if v0.1.10
   Compiling pin-project-lite v0.2.4
   Compiling httparse v1.3.5
   Compiling typenum v1.12.0
   Compiling futures-core v0.3.12
   Compiling anyhow v1.0.38
   Compiling bytes v1.0.1
   Compiling futures-sink v0.3.12
   Compiling cargo_gn v0.0.15
   Compiling scopeguard v1.1.0
   Compiling futures-io v0.3.12
   Compiling slab v0.4.2
   Compiling pin-utils v0.1.0
   Compiling crc32fast v1.2.1
   Compiling spin v0.5.2
   Compiling untrusted v0.7.1
   Compiling base64 v0.13.0
   Compiling encoding_rs v0.8.28
   Compiling alloc-no-stdlib v2.0.1
   Compiling try-lock v0.2.3
   Compiling adler v0.2.3
   Compiling tower-service v0.3.1
   Compiling opaque-debug v0.3.0
   Compiling httpdate v0.3.2
   Compiling cpuid-bool v0.1.2
   Compiling utf-8 v0.7.5
   Compiling ipnet v2.3.0
   Compiling mime v0.3.16
   Compiling unicode-segmentation v1.7.1
   Compiling proc-macro2 v0.4.30
   Compiling retain_mut v0.1.2
   Compiling unicode-xid v0.1.0
   Compiling syn v0.15.44
   Compiling radium v0.5.3
   Compiling match_cfg v0.1.0
   Compiling ipconfig v0.2.2
   Compiling bumpalo v3.6.0
   Compiling lexical-core v0.7.5
   Compiling build_const v0.2.1
   Compiling data-encoding v2.3.2
   Compiling funty v1.1.0
   Compiling wyz v0.2.0
   Compiling arrayvec v0.5.2
   Compiling tap v1.0.1
   Compiling linked-hash-map v0.5.4
   Compiling pulldown-cmark v0.8.0
   Compiling quick-error v1.2.3
   Compiling static_assertions v1.1.0
   Compiling widestring v0.4.3
   Compiling humantime v2.1.0
   Compiling base64 v0.12.3
   Compiling anymap v0.12.1
   Compiling swc_bundler v0.20.9
   Compiling ucd-trie v0.1.3
   Compiling fixedbitset v0.2.0
   Compiling radix_fmt v1.0.0
   Compiling strsim v0.8.0
   Compiling shell-escape v0.1.5
   Compiling vec_map v0.8.2
   Compiling relative-path v1.3.2
   Compiling text-size v1.1.0
   Compiling dissimilar v1.0.2
   Compiling jsonc-parser v0.15.1
   Compiling instant v0.1.9
   Compiling unicode-bidi v0.3.4
   Compiling tracing-core v0.1.17
   Compiling tinyvec v1.1.1
   Compiling thread_local v1.1.3
   Compiling futures-task v0.3.12
   Compiling form_urlencoded v1.0.0
   Compiling owning_ref v0.4.1
   Compiling textwrap v0.11.0
   Compiling phf_shared v0.8.0
   Compiling futures-channel v0.3.12
   Compiling lock_api v0.4.2
   Compiling fxhash v0.2.1
   Compiling indexmap v1.6.1
   Compiling tokio v1.2.0
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling num-bigint v0.2.6
   Compiling miniz_oxide v0.4.3
   Compiling crossbeam-utils v0.8.1
   Compiling generic-array v0.14.4
   Compiling proc-macro-error-attr v1.0.4
   Compiling unicase v2.6.0
   Compiling proc-macro-error v1.0.4
   Compiling nom v6.1.2
   Compiling alloc-stdlib v0.2.1
   Compiling http v0.2.3
   Compiling input_buffer v0.4.0
   Compiling pest v2.1.3
   Compiling lru-cache v0.1.2
   Compiling crc v1.8.1
   Compiling heck v0.3.2
   Compiling tracing v0.1.24
   Compiling unicode-normalization v0.1.17
   Compiling ring v0.16.20
   Compiling sys-info v0.7.0
   Compiling brotli-decompressor v2.3.1
   Compiling rand_core v0.5.1
   Compiling num_cpus v1.13.0
   Compiling rand_core v0.6.2
   Compiling uuid v0.8.2
   Compiling semver-parser v0.10.2
   Compiling idna v0.2.1
   Compiling aho-corasick v0.7.15
   Compiling bitvec v0.19.4
   Compiling quote v1.0.9
   Compiling quote v0.6.13
   Compiling dashmap v4.0.2
   Compiling rand_chacha v0.2.2
   Compiling rand_pcg v0.2.1
   Compiling rand_chacha v0.3.0
   Compiling http-body v0.4.0
   Compiling petgraph v0.5.1
   Compiling flate2 v1.0.20
   Compiling rand v0.8.3
   Compiling rand v0.7.3
   Compiling crossbeam-channel v0.5.0
   Compiling regex v1.4.3
   Compiling brotli v3.3.0
   Compiling block-buffer v0.9.0
   Compiling digest v0.9.0
   Compiling sha-1 v0.9.4
   Compiling phf_generator v0.8.0
   Compiling string_cache_codegen v0.5.1
   Compiling swc_atoms v0.2.5
   Compiling Inflector v0.11.4
   Compiling dlopen_derive v0.1.4
   Compiling pmutil v0.5.3
   Compiling darling_core v0.10.2
   Compiling fslock v0.1.6
   Compiling socket2 v0.3.19
   Compiling parking_lot_core v0.8.3
   Compiling winreg v0.7.0
   Compiling winapi-util v0.1.5
   Compiling atty v0.2.14
   Compiling winreg v0.6.2
   Compiling hostname v0.3.1
   Compiling fs2 v0.4.3
   Compiling filetime v0.2.14
   Compiling remove_dir_all v0.5.3
   Compiling dlopen v0.1.8
   Compiling swc_macros_common v0.3.1
   Compiling resolv-conf v0.7.0
   Compiling clap v2.33.3
   Compiling tempfile v3.2.0
   Compiling miow v0.3.6
   Compiling termcolor v1.1.2
   Compiling same-file v1.0.6
   Compiling parking_lot v0.11.1
   Compiling walkdir v2.3.1
   Compiling fwdansi v1.1.0
   Compiling notify v5.0.0-pre.5
   Compiling futures-macro v0.3.12
   Compiling tokio-macros v1.1.0
   Compiling pin-project-internal v1.0.5
   Compiling swc_visit_macros v0.2.2
   Compiling thiserror-impl v1.0.23
   Compiling from_variant v0.1.2
   Compiling swc_eq_ignore_macros v0.1.0
   Compiling string_enum v0.3.0
   Compiling is-macro v0.1.8
   Compiling enum_kind v0.2.0
   Compiling phf_macros v0.8.0
   Compiling swc_ecma_codegen_macros v0.5.1
   Compiling async-trait v0.1.42
   Compiling enum-as-inner v0.3.3
   Compiling serde_repr v0.1.6
   Compiling auto_impl v0.4.1
   Compiling rustyline-derive v0.4.0
   Compiling derive_more v0.99.11
   Compiling lspower-macros v0.2.0
   Compiling webpki v0.21.4
   Compiling sct v0.6.0
   Compiling phf v0.8.0
   Compiling webpki-roots v0.21.0
   Compiling futures-util v0.3.12
   Compiling darling_macro v0.10.2
   Compiling thiserror v1.0.23
   Compiling which v4.0.2
   Compiling pin-project v1.0.5
   Compiling darling v0.10.2
   Compiling rusty_v8 v0.16.0
   Compiling tracing-futures v0.2.5
   Compiling swc_visit v0.2.2
   Compiling ast_node v0.7.1
   Compiling futures-executor v0.3.12
   Compiling futures v0.3.12
   Compiling url v2.2.0
   Compiling string_cache v0.8.1
   Compiling serde_urlencoded v0.7.0
   Compiling dprint-core v0.35.1
   Compiling toml v0.5.8
   Compiling mio v0.7.8
   Compiling rustls v0.19.0
   Compiling want v0.3.0
   Compiling env_logger v0.8.3
   Compiling rustyline v7.1.0
   Compiling tungstenite v0.12.0
   Compiling sourcemap v6.0.1
   Compiling lsp-types v0.86.0
   Compiling winres v0.1.11
   Compiling swc_common v0.10.9
   Compiling dprint-plugin-markdown v0.5.1
   Compiling deno_core v0.78.0
   Compiling swc_ecma_ast v0.37.3
   Compiling swc_ecma_ast v0.38.0
   Compiling deno_crypto v0.12.0
   Compiling deno_web v0.29.0
   Compiling tokio-util v0.6.3
   Compiling tokio-rustls v0.22.0
   Compiling async-compression v0.3.7
   Compiling trust-dns-proto v0.20.0
   Compiling tokio-tungstenite v0.13.0
   Compiling tokio-stream v0.1.3
   Compiling deno_websocket v0.4.0
   Compiling h2 v0.3.0
   Compiling trust-dns-resolver v0.20.0
   Compiling hyper v0.14.4
   Compiling lspower v0.6.1
   Compiling hyper-rustls v0.22.1
   Compiling reqwest v0.11.0
   Compiling deno_fetch v0.21.0
   Compiling deno_runtime v0.8.0
   Compiling deno v1.7.2
   Compiling swc_ecma_visit v0.24.0
   Compiling swc_ecma_visit v0.23.3
   Compiling swc_ecma_utils v0.28.0
   Compiling swc_ecma_parser v0.46.0
   Compiling swc_ecma_parser v0.45.6
   Compiling swc_ecma_utils v0.27.3
   Compiling swc_ecma_dep_graph v0.12.5
   Compiling swc_ecma_transforms_base v0.3.0
   Compiling swc_ecma_transforms_base v0.2.9
   Compiling swc_ecma_codegen v0.43.8
   Compiling swc_ecma_transforms v0.34.0
   Compiling swc_ecma_transforms_optimization v0.3.8
   Compiling swc_ecma_transforms_typescript v0.3.9
   Compiling swc_ecma_transforms_proposal v0.3.7
   Compiling swc_ecma_transforms_react v0.3.7
   Compiling swc_ecmascript v0.20.0
   Compiling deno_doc v0.1.22
   Compiling deno_lint v0.2.18
   Compiling swc_ecma_transforms v0.33.8
   Compiling swc_ecmascript v0.18.8
   Compiling dprint-swc-ecma-ast-view v0.5.0
   Compiling dprint-plugin-typescript v0.38.5
error[E0308]: mismatched types
   --> C:\Users\d\.cargo\registry\src\github.com-1ecc6299db9ec823\deno-1.7.2\main.rs:757:7
    |
757 |       syntax,
    |       ^^^^^^ expected enum `swc_ecma_parser::Syntax`, found enum `swc_ecmascript::swc_ecma_parser::Syntax`
    |
    = note: perhaps two different versions of crate `swc_ecma_parser` are being used?

error[E0308]: mismatched types
   --> C:\Users\d\.cargo\registry\src\github.com-1ecc6299db9ec823\deno-1.7.2\main.rs:767:60
    |
767 |       .parse_with_reexports(&module_specifier.to_string(), syntax)
    |                                                            ^^^^^^ expected enum `swc_ecma_parser::Syntax`, found enum `swc_ecmascript::swc_ecma_parser::Syntax`
    |
    = note: perhaps two different versions of crate `swc_ecma_parser` are being used?

error[E0308]: mismatched types
   --> C:\Users\d\.cargo\registry\src\github.com-1ecc6299db9ec823\deno-1.7.2\tools\lint.rs:132:13
    |
132 |     .syntax(syntax)
    |             ^^^^^^ expected enum `swc_ecma_parser::Syntax`, found enum `swc_ecmascript::swc_ecma_parser::Syntax`
    |
    = note: perhaps two different versions of crate `swc_ecma_parser` are being used?

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0308`.
error: failed to compile `deno v1.7.2`, intermediate artifacts can be found at `C:\Users\d\AppData\Local\Temp\cargo-installJjhx17`

Caused by:
  could not compile `deno``

**_I noticed multiple references to different versions of same crates:

Compiling swc_ecma_visit v0.24.0
Compiling swc_ecma_visit v0.23.3
...
Compiling swc_ecma_parser v0.46.0
Compiling swc_ecma_parser v0.45.6
...
Compiling swc_ecma_transforms_base v0.3.0
Compiling swc_ecma_transforms_base v0.2.9_**

@kitsonk
Copy link
Contributor

kitsonk commented Feb 18, 2021

Now that you have upgraded your Rust toolchain, you should do a cargo clean before you do a cargo install.

Generally though using Cargo to install Deno isn't the best approach and really for advanced use cases. There are far easier ways documented here: https://deno.land/

@lucacasonato
Copy link
Member

The above error can be fixed with --locked.

@dejannenov
Copy link
Author

Now that you have upgraded your Rust toolchain, you should do a cargo clean before you do a cargo install.

Generally though using Cargo to install Deno isn't the best approach and really for advanced use cases. There are far easier ways documented here: https://deno.land/

In that case, IMHO, the rust - cargo installation option should probably be removed from the front page of dino installation options... We should either do it right or not do it at all..

@dejannenov
Copy link
Author

The above error can be fixed with --locked.

Thank you Sir - that solved the problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info needs further information to be properly triaged
Projects
None yet
Development

No branches or pull requests

3 participants