crustio / crust

Official Rust implementation of the Crust protocol
https://crust.network
Apache License 2.0
505 stars 40 forks source link

Failed to build #558

Closed linmingren closed 3 years ago

linmingren commented 3 years ago

OS: WSL Ubuntu 20.04 Rust up show: installed toolchains

stable-x86_64-unknown-linux-gnu (default) nightly-x86_64-unknown-linux-gnu

installed targets for active toolchain

wasm32-unknown-unknown x86_64-unknown-linux-gnu

active toolchain

stable-x86_64-unknown-linux-gnu (default) rustc 1.51.0 (2fd73fabe 2021-03-23)

Git Commit: 88e86bc Command: cargo build --release

logs: Compiling libc v0.2.81 Compiling proc-macro2 v1.0.24 Compiling unicode-xid v0.2.1 Compiling syn v1.0.55 Compiling cfg-if v0.1.10 Compiling autocfg v1.0.1 Compiling cfg-if v1.0.0 Compiling log v0.4.11 Compiling serde_derive v1.0.118 Compiling serde v1.0.118 Compiling scopeguard v1.1.0 Compiling either v1.6.1 Compiling smallvec v1.5.1 Compiling lazy_static v1.4.0 Compiling byteorder v1.3.4 Compiling getrandom v0.1.15 Compiling version_check v0.9.2 Compiling memchr v2.3.4 Compiling typenum v1.12.0 Compiling ppv-lite86 v0.2.10 Compiling futures v0.1.30 Compiling slab v0.4.2 Compiling futures-core v0.3.8 Compiling futures-io v0.3.8 Compiling rustc-demangle v0.1.18 Compiling anyhow v1.0.36 Compiling adler v0.2.3 Compiling proc-macro-hack v0.5.19 Compiling gimli v0.23.0 Compiling object v0.22.0 Compiling futures-sink v0.3.8 Compiling subtle v2.4.0 Compiling proc-macro-nested v0.1.6 Compiling pin-utils v0.1.0 Compiling byte-tools v0.3.1 Compiling opaque-debug v0.3.0 Compiling fake-simd v0.1.2 Compiling opaque-debug v0.2.3 Compiling static_assertions v1.1.0 Compiling crunchy v0.2.2 Compiling itoa v0.4.6 Compiling block-padding v0.2.1 Compiling tinyvec_macros v0.1.0 Compiling regex-syntax v0.6.21 Compiling cpuid-bool v0.1.2 Compiling subtle v1.0.0 Compiling arrayref v0.3.6 Compiling ryu v1.0.5 Compiling serde_json v1.0.60 Compiling arrayvec v0.5.2 Compiling pin-project-lite v0.2.0 Compiling libm v0.2.1 Compiling radium v0.3.0 Compiling rustc-hash v1.1.0 Compiling byte-slice-cast v0.3.5 Compiling rustc-hex v2.1.0 Compiling keccak v0.1.0 Compiling ahash v0.3.8 Compiling sp-std v2.0.0 (https://github.com/paritytech/substrate?branch=master#3c5bfc05) Compiling parity-util-mem v0.7.0 Compiling ansi_term v0.12.1 Compiling arrayvec v0.4.12 Compiling parity-wasm v0.41.0 Compiling ahash v0.4.7 Compiling nodrop v0.1.14 Compiling hash-db v0.15.2 Compiling memory_units v0.3.0 Compiling constant_time_eq v0.1.5 Compiling environmental v1.1.2 Compiling tiny-keccak v2.0.2 Compiling dyn-clone v1.0.3 Compiling base58 v0.1.0 Compiling hex v0.4.2 Compiling bytes v0.5.6 Compiling failure_derive v0.1.8 Compiling fnv v1.0.7 Compiling unicode-segmentation v1.7.1 Compiling semver-parser v0.7.0 Compiling bitflags v1.2.1 Compiling remove_dir_all v0.5.3 Compiling fixedbitset v0.2.0 Compiling multimap v0.8.2 Compiling pin-project-internal v0.4.27 Compiling untrusted v0.7.1 Compiling spin v0.5.2 Compiling matches v0.1.8 Compiling percent-encoding v2.1.0 Compiling quick-error v1.2.3 Compiling data-encoding v2.3.1 Compiling bs58 v0.4.0 Compiling futures-timer v3.0.2 Compiling void v1.0.2 Compiling base64 v0.12.3 Compiling cache-padded v1.1.1 Compiling waker-fn v1.1.0 Compiling crc32fast v1.2.1 Compiling parking v2.0.0 Compiling fastrand v1.4.0 Compiling httparse v1.3.4 Compiling vec-arena v1.0.0 Compiling glob v0.3.0 Compiling pin-project-lite v0.1.11 Compiling event-listener v2.5.1 Compiling async-task v4.0.3 Compiling wasm-bindgen-shared v0.2.69 Compiling cpuid-bool v0.2.0 Compiling pkg-config v0.3.19 Compiling atomic-waker v1.0.0 Compiling bumpalo v3.4.0 Compiling try-lock v0.2.3 Compiling wasm-bindgen v0.2.69 Compiling termcolor v1.1.2 Compiling base64 v0.13.0 Compiling nohash-hasher v0.2.0 Compiling stable_deref_trait v1.2.0 Compiling cranelift-codegen-shared v0.66.0 Compiling ipnet v2.3.0 Compiling prometheus v0.10.0 Compiling target-lexicon v0.10.0 Compiling const_fn v0.4.4 Compiling tower-service v0.3.0 Compiling hex_fmt v0.3.0 Compiling parity-send-wrapper v0.1.0 Compiling fallible-iterator v0.2.0 Compiling lru_time_cache v0.11.3 Compiling httpdate v0.3.2 Compiling rayon-core v1.9.0 Compiling zstd-safe v2.0.6+zstd.1.4.7 Compiling wasmtime-environ v0.19.0 Compiling wasmparser v0.59.0 Compiling more-asserts v0.2.1 Compiling maybe-uninit v2.0.0 Compiling wasmparser v0.57.0 Compiling leb128 v0.2.4 Compiling object v0.19.0 Compiling scoped-tls v1.0.0 Compiling rawpointer v0.2.1 Compiling slog v2.7.0 Compiling linked-hash-map v0.5.3 Compiling arc-swap v0.4.8 Compiling ucd-trie v0.1.3 Compiling lazycell v1.3.0 Compiling take_mut v0.2.2 Compiling maplit v1.0.2 Compiling percent-encoding v1.0.1 Compiling unicode-width v0.1.8 Compiling futures-timer v2.0.2 Compiling ansi_term v0.11.0 Compiling strsim v0.8.0 Compiling vec_map v0.8.2 Compiling ip_network v0.3.4 Compiling radium v0.4.1 Compiling bindgen v0.54.0 Compiling shlex v0.1.1 Compiling peeking_take_while v0.1.2 Compiling retain_mut v0.1.1 Compiling sc-consensus-slots v0.8.0 (https://github.com/paritytech/substrate?branch=master#3c5bfc05) Compiling wyz v0.2.0 Compiling funty v1.0.1 Compiling winapi v0.3.9 Compiling mio-named-pipes v0.1.7 Compiling pdqselect v0.1.0 Compiling serde_no_std v1.0.117 (/mnt/d/project/crust/v0.11.0/crust-0.11.0/utils/serde_no_std) Compiling openssl-probe v0.1.2 Compiling serde_json_no_std v1.0.59 (/mnt/d/project/crust/v0.11.0/crust-0.11.0/utils/serde_json_no_std) Compiling names v0.11.0 Compiling same-file v1.0.6 Compiling safe-mix v1.0.1 Compiling quick-error v2.0.0 Compiling platforms v0.2.1 Compiling hex-literal v0.3.1 Compiling instant v0.1.9 Compiling lock_api v0.4.2 Compiling lock_api v0.3.4 Compiling itertools v0.8.2 Compiling itertools v0.9.0 Compiling miniz_oxide v0.4.3 Compiling num-traits v0.2.14 Compiling num-integer v0.1.44 Compiling hashbrown v0.8.2 Compiling num-bigint v0.2.6 Compiling num-rational v0.2.4 Compiling indexmap v1.6.1 Compiling crossbeam-utils v0.8.1 Compiling memoffset v0.5.6 Compiling memoffset v0.6.1 Compiling atomic v0.5.0 Compiling rayon v1.5.0 Compiling crossbeam-utils v0.7.2 Compiling num-complex v0.2.4 Compiling crossbeam-epoch v0.8.2 Compiling thread_local v1.0.1 Compiling tracing-core v0.1.17 Compiling sharded-slab v0.1.0 Compiling generic-array v0.14.4 Compiling proc-macro-error-attr v1.0.4 Compiling proc-macro-error v1.0.4 Compiling nom v5.1.2 Compiling unicase v2.6.0 Compiling futures-channel v0.3.8 Compiling tokio-service v0.1.0 Compiling block-padding v0.1.5 Compiling tinyvec v1.1.0 Compiling bitvec v0.17.4 Compiling addr2line v0.14.0 Compiling hashbrown v0.9.1 Compiling trie-root v0.16.0 Compiling tokio-sync v0.1.8 Compiling http v0.2.2 Compiling wasmi-validation v0.3.0 Compiling semver v0.9.0 Compiling semver v0.6.0 Compiling heck v0.3.1 Compiling unicode-bidi v0.3.4 Compiling form_urlencoded v1.0.0 Compiling humantime v1.3.0 Compiling concurrent-queue v1.2.2 Compiling quicksink v0.1.2 Compiling async-mutex v1.4.0 Compiling clang-sys v0.29.3 Compiling owning_ref v0.4.1 Compiling wast v30.0.0 Compiling matrixmultiply v0.2.4 Compiling linked_hash_set v0.1.4 Compiling pest v2.1.3 Compiling textwrap v0.11.0 Compiling walkdir v2.3.1 Compiling substrate-build-script-utils v2.0.0 (https://github.com/paritytech/substrate?branch=master#3c5bfc05) Compiling lru v0.6.3 Compiling unicode-normalization v0.1.16 Compiling rustc_version v0.2.3 Compiling build-helper v0.1.1 Compiling async-channel v1.5.1 Compiling http-body v0.3.1 Compiling tracing-log v0.1.1 Compiling kv-log-macro v1.0.7 Compiling want v0.3.0 Compiling regalloc v0.0.27 Compiling want v0.2.0 Compiling pest_meta v2.1.3 warning: unnecessary trailing semicolon --> utils/serde_no_std/src/de/impls.rs:1874:10 1874 }; ^ help: remove this semicolon
 = note: `#[warn(redundant_semicolons)]` on by default

Compiling num_cpus v1.13.0 Compiling parking_lot_core v0.8.1 Compiling parking_lot_core v0.7.2 Compiling jobserver v0.1.21 Compiling errno v0.2.7 Compiling time v0.1.44 Compiling iovec v0.1.4 Compiling net2 v0.2.37 Compiling signal-hook-registry v1.2.2 Compiling polling v2.0.2 Compiling nb-connect v1.0.2 Compiling atty v0.2.14 Compiling socket2 v0.3.18 Compiling if-addrs v0.6.5 Compiling dirs-sys v0.3.5 Compiling memmap v0.7.0 Compiling fs-swap v0.2.5 Compiling rand v0.4.6 Compiling fdlimit v0.2.1 Compiling rpassword v5.0.0 Compiling quote v1.0.8 Compiling aho-corasick v0.7.15 warning: 1 warning emitted

Compiling futures-lite v1.11.3 Compiling bstr v0.2.14 Compiling regex-automata v0.1.9 Compiling dns-parser v0.8.0 Compiling pwasm-utils v0.14.0 Compiling parity-wasm v0.32.0 Compiling uint v0.8.5 Compiling hash256-std-hasher v0.15.2 Compiling wat v1.0.31 Compiling generic-array v0.12.3 Compiling generic-array v0.13.2 Compiling blake2-rfc v0.2.18 Compiling region v2.2.0 Compiling snow v0.7.2 Compiling parking_lot_core v0.6.2 Compiling parking_lot v0.9.0 Compiling hyper v0.12.35 Compiling idna v0.2.0 Compiling idna v0.1.5 Compiling paste-impl v0.1.18 Compiling smallvec v0.6.13 Compiling bitvec v0.18.4 Compiling rand_core v0.5.1 Compiling futures-cpupool v0.1.8 Compiling threadpool v1.8.1 Compiling parking_lot v0.11.1 Compiling parking_lot v0.10.2 Compiling cc v1.0.66 Compiling bytes v0.4.12 Compiling signal-hook v0.1.16 Compiling mio v0.6.23 Compiling clap v2.33.3 Compiling miow v0.3.6 Compiling directories v2.0.2 Compiling directories v3.0.1 Compiling rand v0.3.23 Compiling backtrace v0.3.55 Compiling trie-db v0.22.1 Compiling crossbeam-epoch v0.9.1 Compiling crossbeam-channel v0.5.0 Compiling regex v1.4.2 Compiling matchers v0.0.1 Compiling tokio-executor v0.1.10 Compiling crossbeam-queue v0.2.3 Compiling wasm-gc-api v0.1.11 Compiling digest v0.9.0 Compiling block-buffer v0.9.0 Compiling crypto-mac v0.8.0 Compiling block-cipher v0.8.0 Compiling universal-hash v0.4.0 Compiling aead v0.3.2 Compiling crypto-mac v0.9.1 Compiling digest v0.8.1 Compiling block-buffer v0.7.3 Compiling crypto-mac v0.7.0 Compiling cexpr v0.4.0 Compiling integer-sqrt v0.1.5 Compiling approx v0.3.2 Compiling url v2.2.0 Compiling url v1.7.2 Compiling rand_chacha v0.2.2 Compiling rand_pcg v0.2.1 Compiling once_cell v1.5.2 Compiling paste v0.1.18 Compiling parity-db v0.1.2 Compiling tokio-io v0.1.13 Compiling http v0.1.21 Compiling tokio-buf v0.1.1 Compiling string v0.2.1 Compiling mio-uds v0.6.8 Compiling mio-extras v2.0.6 Compiling ff v0.8.0 Compiling sp-panic-handler v2.0.0 (https://github.com/paritytech/substrate?branch=master#3c5bfc05) Compiling crossbeam-deque v0.8.0 Compiling ring v0.16.19 Compiling libz-sys v1.1.2 Compiling zstd-sys v1.4.18+zstd.1.4.7 Compiling raw-cpuid v7.0.3 Compiling wasmtime-runtime v0.19.0 Compiling libloading v0.5.2 Compiling tokio-current-thread v0.1.7 Compiling tokio-timer v0.2.13 Compiling crossbeam-deque v0.7.3 Compiling Inflector v0.11.4 Compiling env_logger v0.7.1 Compiling globset v0.4.6 Compiling signature v1.2.2 Compiling sha2 v0.9.2 Compiling sha-1 v0.9.2 Compiling sha3 v0.9.1 Compiling hmac v0.8.1 Compiling pbkdf2 v0.4.0 Compiling blake2 v0.9.1 Compiling stream-cipher v0.7.1 Compiling aes-soft v0.5.0 Compiling polyval v0.4.3 Compiling poly1305 v0.6.2 Compiling hmac v0.9.0 Compiling sha2 v0.8.2 Compiling sha-1 v0.8.2 Compiling hmac v0.7.1 Compiling pbkdf2 v0.3.0 Compiling chrono v0.4.19 Compiling synstructure v0.12.4 Compiling wasm-bindgen-backend v0.2.69 Compiling pest_generator v2.1.3 Compiling rand v0.7.3 Compiling simba v0.1.5 Compiling futures-task v0.3.8 Compiling async-io v1.3.1 Compiling async-executor v1.4.0 Compiling blocking v1.0.2 Compiling tokio-codec v0.1.2 Compiling group v0.8.0 Compiling http-body v0.1.0 Compiling tokio-threadpool v0.1.18 Compiling file-per-thread-logger v0.1.4 Compiling ed25519 v1.0.3 Compiling salsa20 v0.6.0 Compiling ghash v0.3.0 Compiling aes v0.5.0 Compiling hmac-drbg v0.2.0 Compiling pin-project-internal v1.0.2 Compiling futures-macro v0.3.8 Compiling thiserror-impl v1.0.22 Compiling tracing-attributes v0.1.11 Compiling impl-trait-for-tuples v0.1.3 Compiling sp-debug-derive v2.0.0 (https://github.com/paritytech/substrate?branch=master#3c5bfc05) Compiling ref-cast-impl v1.0.3 Compiling dyn-clonable-impl v0.9.0 Compiling derive_more v0.99.11 Compiling async-trait v0.1.42 Compiling prost-derive v0.6.1 Compiling asn1_der_derive v0.1.2 Compiling tokio-macros v0.2.6 Compiling minicbor-derive v0.6.0 Compiling frame-support-procedural-tools-derive v2.0.0 (https://github.com/paritytech/substrate?branch=master#3c5bfc05) Compiling libp2p-core-derive v0.21.0 Compiling scroll_derive v0.10.4 Compiling slog_derive v0.2.0 Compiling strum_macros v0.16.0 Compiling enumflags2_derive v0.6.4 Compiling structopt-derive v0.4.14 Compiling wasm-bindgen-macro-support v0.2.69 Compiling zeroize_derive v1.0.1 Compiling fixed-hash v0.6.1 Compiling parity-util-mem-derive v0.1.0 Compiling twox-hash v1.6.0 Compiling tempfile v3.1.0 Compiling cuckoofilter v0.5.0 Compiling rand_distr v0.2.2 Compiling statrs v0.12.0 Compiling parity-ws v0.10.0 Compiling pest_derive v2.1.0 Compiling async-global-executor v1.4.3 Compiling async-process v1.0.1 Compiling if-watch v0.1.7 Compiling tokio-fs v0.1.7 Compiling aes-gcm v0.7.0 Compiling libsecp256k1 v0.3.5 Compiling tokio-reactor v0.1.12 Compiling ref-cast v1.0.3 Compiling thiserror v1.0.22 Compiling pin-project v1.0.2 Compiling dyn-clonable v0.9.0 Compiling tracing v0.1.22 Compiling asn1_der v0.6.3 Compiling tokio v0.2.24 Compiling prost v0.6.1 Compiling pin-project v0.4.27 Compiling scroll v0.10.2 Compiling enumflags2 v0.6.4 Compiling wasmi v0.6.2 Compiling minicbor v0.7.0 Compiling strum v0.16.0 Compiling nalgebra v0.21.1 Compiling zeroize v1.2.0 Compiling wasm-bindgen-macro v0.2.69 Compiling async-std v1.8.0 Compiling structopt v0.3.21 Compiling failure v0.1.8 Compiling semver-parser v0.10.0 Compiling tokio-uds v0.2.7 Compiling tokio-tcp v0.1.4 Compiling tokio-udp v0.1.6 Compiling futures-util v0.3.8 Compiling prost-types v0.6.1 Compiling webpki v0.21.4 Compiling sct v0.6.0 Compiling webpki v0.21.0 (/mnt/d/project/crust/v0.11.0/crust-0.11.0/utils/webpki) Compiling tracing-futures v0.2.4 Compiling curve25519-dalek v3.0.0 Compiling merlin v2.0.0 Compiling curve25519-dalek v2.1.0 Compiling tiny-bip39 v0.8.0 Compiling secrecy v0.7.0 Compiling chacha20 v0.5.0 Compiling elliptic-curve v0.6.6 Compiling tokio-util v0.3.1 Compiling which v3.1.1 Compiling toml v0.5.8 Compiling impl-serde v0.3.1 Compiling tracing-serde v0.1.2 Compiling cranelift-entity v0.66.0 Compiling bincode v1.3.1 Compiling erased-serde v0.3.12 Compiling semver v0.11.0 Compiling tokio v0.1.22 Compiling webpki-roots v0.21.0 Compiling rustls v0.19.0 Compiling rustls v0.18.1 Compiling ct-logs v0.7.0 Compiling ed25519-dalek v1.0.1 Compiling x25519-dalek v1.1.0 Compiling futures-executor v0.3.8 Compiling schnorrkel v0.9.1 Compiling chacha20poly1305 v0.6.0 Compiling ecdsa v0.8.5 Compiling prost-build v0.6.1 Compiling petgraph v0.5.1 Compiling h2 v0.2.7 error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.5.1/src/simple_paths.rs:42:22 42 let mut visited: IndexSet = IndexSet::from_iter(Some(from)); ^^^^^^^^ --------- supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
42 let mut visited: IndexSet<G::NodeId, S> = IndexSet::from_iter(Some(from));
^^^
error[E0308]: mismatched types --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.5.1/src/simple_paths.rs:50:36 50 if visited.len() < max_length { ^^^^^^^^^^ expected associated type, found usize

= note: expected associated type <G as GraphBase>::NodeId found type usize = help: consider constraining the associated type <G as GraphBase>::NodeId to usize = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html

error[E0308]: mismatched types --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.5.1/src/simple_paths.rs:52:45 52 if visited.len() >= min_length { ^^^^^^^^^^ expected associated type, found usize

= note: expected associated type <G as GraphBase>::NodeId found type usize = help: consider constraining the associated type <G as GraphBase>::NodeId to usize = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html

error[E0308]: mismatched types --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.5.1/src/simple_paths.rs:65:87 65 if (child == to children.any( v v == to)) && visited.len() >= min_length { ^^^^^^^^^^ expected associated type, found usize

= note: expected associated type <G as GraphBase>::NodeId found type usize = help: consider constraining the associated type <G as GraphBase>::NodeId to usize = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html

Compiling gimli v0.21.0 error: aborting due to 4 previous errors

Some errors have detailed explanations: E0107, E0308. For more information about an error, try rustc --explain E0107. error: could not compile petgraph

To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error[E0107]: this struct takes 3 type arguments but only 2 type arguments were supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/h2-0.2.7/src/proto/streams/store.rs:15:10 15 ids: IndexMap<StreamId, SlabIndex>, ^^^^^^^^ -------- --------- supplied 2 type arguments
expected 3 type arguments
note: struct defined here, with 3 type parameters: K, V, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/map.rs:76:12 76 pub struct IndexMap<K, V, S> { ^^^^^^^^ - - - help: add missing type argument
15 ids: IndexMap<StreamId, SlabIndex, S>,
^^^

error: aborting due to previous error

For more information about this error, try rustc --explain E0107. error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/abbrev.rs:16:14 16 abbrevs: IndexSet, ^^^^^^^^ ------------ supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
16 abbrevs: IndexSet<Abbreviation, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/cfi.rs:25:11 25 cies: IndexSet, ^^^^^^^^ ---------------------- supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
25 cies: IndexSet<CommonInformationEntry, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/line.rs:33:18 33 directories: IndexSet, ^^^^^^^^ ---------- supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
33 directories: IndexSet<LineString, S>,
^^^
error[E0107]: this struct takes 3 type arguments but only 2 type arguments were supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/line.rs:43:12 43 files: IndexMap<(LineString, DirectoryId), FileInfo>, ^^^^^^^^ ------------------------- -------- supplied 2 type arguments
expected 3 type arguments
note: struct defined here, with 3 type parameters: K, V, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/map.rs:76:12 76 pub struct IndexMap<K, V, S> { ^^^^^^^^ - - - help: add missing type argument
43 files: IndexMap<(LineString, DirectoryId), FileInfo, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/loc.rs:36:16 36 locations: IndexSet, ^^^^^^^^ ------------ supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
36 locations: IndexSet<LocationList, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/range.rs:33:13 33 ranges: IndexSet, ^^^^^^^^ --------- supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
33 ranges: IndexSet<RangeList, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/str.rs:31:22 31 strings: IndexSet<Vec>, ^^^^^^^^ ------- supplied 1 type argument
expected 2 type arguments
... 90 / define_string_table!( 91 StringTable, 92 StringId, 93 DebugStr, 94 DebugStrOffsets, 95 "A table of strings that will be stored in a .debug_str section." 96 ); __- in this macro invocation
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) help: add missing type argument
31 strings: IndexSet<Vec, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/str.rs:31:22 31 strings: IndexSet<Vec>, ^^^^^^^^ ------- supplied 1 type argument
expected 2 type arguments
... 110 / define_string_table!( 111 LineStringTable, 112 LineStringId, 113 DebugLineStr, 114 DebugLineStrOffsets, 115 "A table of strings that will be stored in a .debug_line_str section." 116 ); __- in this macro invocation
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) help: add missing type argument
31 strings: IndexSet<Vec, S>,
^^^

error: aborting due to 8 previous errors

For more information about this error, try rustc --explain E0107. error: build failed linmingren@LAPTOP-5N5RMIAB:/mnt/d/project/crust/v0.11.0/crust-0.11.0$ git usage: git [--version] [--help] [-C ] [-c =] [--exec-path[=]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare] [--git-dir=] [--work-tree=] [--namespace=] []

These are common Git commands used in various situations:

start a working area (see also: git help tutorial) clone Clone a repository into a new directory init Create an empty Git repository or reinitialize an existing one

work on the current change (see also: git help everyday) add Add file contents to the index mv Move or rename a file, a directory, or a symlink restore Restore working tree files rm Remove files from the working tree and from the index sparse-checkout Initialize and modify the sparse-checkout

examine the history and state (see also: git help revisions) bisect Use binary search to find the commit that introduced a bug diff Show changes between commits, commit and working tree, etc grep Print lines matching a pattern log Show commit logs show Show various types of objects status Show the working tree status

grow, mark and tweak your common history branch List, create, or delete branches commit Record changes to the repository merge Join two or more development histories together rebase Reapply commits on top of another base tip reset Reset current HEAD to the specified state switch Switch branches tag Create, list, delete or verify a tag object signed with GPG

collaborate (see also: git help workflows) fetch Download objects and refs from another repository pull Fetch from and integrate with another repository or a local branch push Update remote refs along with associated objects

'git help -a' and 'git help -g' list available subcommands and some concept guides. See 'git help ' or 'git help ' to read about a specific subcommand or concept. See 'git help git' for an overview of the system. linmingren@LAPTOP-5N5RMIAB:/mnt/d/project/crust/v0.11.0/crust-0.11.0$ git show fatal: not a git repository (or any parent up to mount point /mnt) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). linmingren@LAPTOP-5N5RMIAB:/mnt/d/project/crust/v0.11.0/crust-0.11.0$ cargo build --release ^C linmingren@LAPTOP-5N5RMIAB:/mnt/d/project/crust/v0.11.0/crust-0.11.0$ cargo build --release > build.log warning: unnecessary trailing semicolon --> utils/serde_no_std/src/de/impls.rs:1874:10 1874 }; ^ help: remove this semicolon
 = note: `#[warn(redundant_semicolons)]` on by default

warning: 1 warning emitted

Compiling libz-sys v1.1.2 Compiling zstd-sys v1.4.18+zstd.1.4.7 Compiling petgraph v0.5.1 Compiling gimli v0.21.0 Compiling object v0.20.0 Compiling h2 v0.1.26 Compiling jsonrpc-core v15.1.0 Compiling sp-chain-spec v2.0.0 (https://github.com/paritytech/substrate?branch=master#3c5bfc05) Compiling handlebars v3.5.1 Compiling tracing-subscriber v0.2.15 Compiling cranelift-bforest v0.66.0 error[E0107]: this struct takes 3 type arguments but only 2 type arguments were supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/h2-0.1.26/src/proto/streams/store.rs:15:10 15 ids: IndexMap<StreamId, SlabIndex>, ^^^^^^^^ -------- --------- supplied 2 type arguments
expected 3 type arguments
note: struct defined here, with 3 type parameters: K, V, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/map.rs:76:12 76 pub struct IndexMap<K, V, S> { ^^^^^^^^ - - - help: add missing type argument
15 ids: IndexMap<StreamId, SlabIndex, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.20.0/src/write/string.rs:9:14 9 strings: IndexSet<&'a [u8]>, ^^^^^^^^ -------- supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
9 strings: IndexSet<&'a [u8], S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.5.1/src/simple_paths.rs:42:22 42 let mut visited: IndexSet = IndexSet::from_iter(Some(from)); ^^^^^^^^ --------- supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
42 let mut visited: IndexSet<G::NodeId, S> = IndexSet::from_iter(Some(from));
^^^

error: aborting due to previous error

For more information about this error, try rustc --explain E0107. error: could not compile h2

To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.20.0/src/write/string.rs:71:58 71 fn sort(mut ids: &mut [usize], mut pos: usize, strings: &IndexSet<&[u8]>) { ^^^^^^^^ ----- supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
71 fn sort(mut ids: &mut [usize], mut pos: usize, strings: &IndexSet<&[u8], S>) {
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.20.0/src/write/string.rs:106:42 106 fn byte(id: usize, pos: usize, strings: &IndexSet<&[u8]>) -> u8 { ^^^^^^^^ ----- supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
106 fn byte(id: usize, pos: usize, strings: &IndexSet<&[u8], S>) -> u8 {
^^^

error: aborting due to 3 previous errors

For more information about this error, try rustc --explain E0107. error[E0308]: mismatched types --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.5.1/src/simple_paths.rs:50:36 50 if visited.len() < max_length { ^^^^^^^^^^ expected associated type, found usize

= note: expected associated type <G as GraphBase>::NodeId found type usize = help: consider constraining the associated type <G as GraphBase>::NodeId to usize = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html

error[E0308]: mismatched types --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.5.1/src/simple_paths.rs:52:45 52 if visited.len() >= min_length { ^^^^^^^^^^ expected associated type, found usize

= note: expected associated type <G as GraphBase>::NodeId found type usize = help: consider constraining the associated type <G as GraphBase>::NodeId to usize = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html

error[E0308]: mismatched types --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.5.1/src/simple_paths.rs:65:87 65 if (child == to children.any( v v == to)) && visited.len() >= min_length { ^^^^^^^^^^ expected associated type, found usize

= note: expected associated type <G as GraphBase>::NodeId found type usize = help: consider constraining the associated type <G as GraphBase>::NodeId to usize = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html

error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/abbrev.rs:16:14 16 abbrevs: IndexSet, ^^^^^^^^ ------------ supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
16 abbrevs: IndexSet<Abbreviation, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/cfi.rs:25:11 25 cies: IndexSet, ^^^^^^^^ ---------------------- supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
25 cies: IndexSet<CommonInformationEntry, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/line.rs:33:18 33 directories: IndexSet, ^^^^^^^^ ---------- supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
33 directories: IndexSet<LineString, S>,
^^^
error[E0107]: this struct takes 3 type arguments but only 2 type arguments were supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/line.rs:43:12 43 files: IndexMap<(LineString, DirectoryId), FileInfo>, ^^^^^^^^ ------------------------- -------- supplied 2 type arguments
expected 3 type arguments
note: struct defined here, with 3 type parameters: K, V, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/map.rs:76:12 76 pub struct IndexMap<K, V, S> { ^^^^^^^^ - - - help: add missing type argument
43 files: IndexMap<(LineString, DirectoryId), FileInfo, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/loc.rs:36:16 36 locations: IndexSet, ^^^^^^^^ ------------ supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
36 locations: IndexSet<LocationList, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/range.rs:33:13 33 ranges: IndexSet, ^^^^^^^^ --------- supplied 1 type argument
expected 2 type arguments
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - help: add missing type argument
33 ranges: IndexSet<RangeList, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/str.rs:31:22 31 strings: IndexSet<Vec>, ^^^^^^^^ ------- supplied 1 type argument
expected 2 type arguments
... 90 / define_string_table!( 91 StringTable, 92 StringId, 93 DebugStr, 94 DebugStrOffsets, 95 "A table of strings that will be stored in a .debug_str section." 96 ); __- in this macro invocation
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) help: add missing type argument
31 strings: IndexSet<Vec, S>,
^^^
error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/str.rs:31:22 31 strings: IndexSet<Vec>, ^^^^^^^^ ------- supplied 1 type argument
expected 2 type arguments
... 110 / define_string_table!( 111 LineStringTable, 112 LineStringId, 113 DebugLineStr, 114 DebugLineStrOffsets, 115 "A table of strings that will be stored in a .debug_line_str section." 116 ); __- in this macro invocation
note: struct defined here, with 2 type parameters: T, S --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12 67 pub struct IndexSet<T, S> { ^^^^^^^^ - - = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) help: add missing type argument
31 strings: IndexSet<Vec, S>,
^^^

error: aborting due to 8 previous errors

For more information about this error, try rustc --explain E0107. error: aborting due to 4 previous errors

Some errors have detailed explanations: E0107, E0308. For more information about an error, try rustc --explain E0107. error: build failed

mmyyrroonn commented 3 years ago

You can try some old rustup toolchain such as 2020-11-18 or 2021-01-17. It seems like the code base has not been compatible to the latest rustup toolchain.

linmingren commented 3 years ago

Thank you! I just tried nightly-2021-01-17-x86_64-unknown-linux-gnu and it works.