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

Error when building ocw #480

Open
yumingchangsabodota opened this issue Apr 19, 2022 · 5 comments
Open

Error when building ocw #480

yumingchangsabodota opened this issue Apr 19, 2022 · 5 comments

Comments

@yumingchangsabodota
Copy link

I got these two errors while building the kitchen-node with ocw feature.

  1. error: duplicate lang item in crate std (which serde depends on): panic_impl.

  2. error: duplicate lang item in crate std (which serde depends on): oom.

Is there any way to resolve them? Thanks

@JoshOrndorff
Copy link
Owner

What exact command are you using to build the node?

@yumingchangsabodota
Copy link
Author

I am using
cargo build --release --features ocw
with the runtime set to ocw-runtime

@JoshOrndorff
Copy link
Owner

You are running that command in the kitchen node directory or the repo root? Can you paste the exact output.

@armanriazi
Copy link

armanriazi commented Apr 22, 2022

I have this issue too.
I decided to downgrade and then it worked

    > rustup uninstall nightly
    > rustup install nightly-2020-10-06
    > rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-06
    > export WASM_BUILD_TOOLCHAIN=nightly-2020-10-06
cargo build
warning: /mnt/home/app/recipes/Cargo.toml: unused manifest key: workspace.librocksdb-sys
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.64
   Compiling libc v0.2.89
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.0.1
   Compiling value-bag v1.0.0-alpha.6
   Compiling log v0.4.14
   Compiling serde_derive v1.0.125
   Compiling serde v1.0.125
   Compiling byteorder v1.4.3
   Compiling ppv-lite86 v0.2.10
   Compiling scopeguard v1.1.0
   Compiling version_check v0.9.3
   Compiling memchr v2.3.4
   Compiling lazy_static v1.4.0
   Compiling typenum v1.13.0
   Compiling futures v0.1.31
   Compiling cfg-if v0.1.10
   Compiling smallvec v1.6.1
   Compiling slab v0.4.2
   Compiling getrandom v0.2.2
   Compiling futures-core v0.3.13
   Compiling pin-project-lite v0.2.6
   Compiling ahash v0.4.7
   Compiling futures-io v0.3.13
   Compiling getrandom v0.1.16
   Compiling proc-macro-hack v0.5.19
   Compiling either v1.6.1
   Compiling arrayvec v0.5.2
   Compiling futures-sink v0.3.13
   Compiling proc-macro-nested v0.1.7
   Compiling pin-utils v0.1.0
   Compiling futures-task v0.3.13
   Compiling anyhow v1.0.38
   Compiling subtle v2.4.0
   Compiling itoa v0.4.7
   Compiling opaque-debug v0.3.0
   Compiling static_assertions v1.1.0
   Compiling crunchy v0.2.2
   Compiling tinyvec_macros v0.1.0
   Compiling block-padding v0.2.1
   Compiling byte-tools v0.3.1
   Compiling libm v0.2.1
   Compiling cpuid-bool v0.1.2
   Compiling arrayref v0.3.6
   Compiling ryu v1.0.5
   Compiling keccak v0.1.0
   Compiling constant_time_eq v0.1.5
   Compiling serde_json v1.0.64
   Compiling opaque-debug v0.2.3
   Compiling fake-simd v0.1.2
   Compiling regex-syntax v0.6.23
   Compiling wyz v0.2.0
   Compiling tap v1.0.1
   Compiling subtle v1.0.0
   Compiling funty v1.1.0
   Compiling signature v1.3.0
   Compiling radium v0.6.2
   Compiling byte-slice-cast v1.0.0
   Compiling ansi_term v0.12.1
   Compiling hex v0.4.3
   Compiling rustc-hex v2.1.0
   Compiling sp-std v3.0.0
   Compiling rustc-hash v1.1.0
   Compiling rustc-demangle v0.1.18
   Compiling parity-util-mem v0.9.0
   Compiling adler v1.0.2
   Compiling ref-cast v1.0.6
   Compiling arrayvec v0.4.12
   Compiling parity-wasm v0.41.0
   Compiling hash-db v0.15.2
   Compiling nodrop v0.1.14
   Compiling memory_units v0.3.0
   Compiling tiny-keccak v2.0.2
   Compiling environmental v1.1.2
   Compiling dyn-clone v1.0.4
   Compiling base58 v0.1.0
   Compiling async-trait v0.1.48
   Compiling gimli v0.23.0
   Compiling object v0.23.0
   Compiling bytes v1.0.1
   Compiling paste v1.0.5
   Compiling fnv v1.0.7
   Compiling remove_dir_all v0.5.3
   Compiling unicode-segmentation v1.7.1
   Compiling semver-parser v0.7.0
   Compiling fixedbitset v0.2.0
   Compiling multimap v0.8.3
   Compiling bitflags v1.2.1
   Compiling spin v0.5.2
   Compiling untrusted v0.7.1
   Compiling matches v0.1.8
   Compiling percent-encoding v2.1.0
   Compiling data-encoding v2.3.2
   Compiling pin-project-internal v0.4.27
   Compiling futures-timer v3.0.2
   Compiling unsigned-varint v0.5.1
   Compiling bs58 v0.4.0
   Compiling void v1.0.2
   Compiling cache-padded v1.1.1
   Compiling parking v2.0.0
   Compiling waker-fn v1.1.0
   Compiling fastrand v1.4.0
   Compiling httparse v1.3.5
   Compiling vec-arena v1.0.0
   Compiling bytes v0.5.6
   Compiling event-listener v2.5.1
   Compiling pin-project-lite v0.1.12
   Compiling wasm-bindgen-shared v0.2.71
   Compiling signal-hook v0.3.7
   Compiling async-task v4.0.3
   Compiling atomic-waker v1.0.0
   Compiling cpuid-bool v0.2.0
   Compiling crc32fast v1.2.1
   Compiling bumpalo v3.6.1
   Compiling pkg-config v0.3.19
   Compiling base64 v0.12.3
   Compiling try-lock v0.2.3
   Compiling prometheus v0.11.0
   Compiling wasm-bindgen v0.2.71
   Compiling base64 v0.13.0
   Compiling nohash-hasher v0.2.0
   Compiling ipnet v2.3.0
   Compiling quick-error v1.2.3
   Compiling httpdate v0.3.2
   Compiling hex_fmt v0.3.0
   Compiling parity-send-wrapper v0.1.0
   Compiling tower-service v0.3.1
   Compiling ucd-trie v0.1.3
   Compiling maybe-uninit v2.0.0
   Compiling rawpointer v0.2.1
   Compiling same-file v1.0.6
   Compiling radium v0.5.3
   Compiling linked-hash-map v0.5.4
   Compiling glob v0.3.0
   Compiling lazycell v1.3.0
   Compiling take_mut v0.2.2
   Compiling platforms v1.1.0
   Compiling failure_derive v0.1.8
   Compiling bindgen v0.59.0
   Compiling base-x v0.2.8
   Compiling shlex v1.0.0
   Compiling peeking_take_while v0.1.2
   Compiling percent-encoding v1.0.1
   Compiling ip_network v0.3.4
   Compiling winapi v0.3.9
   Compiling sc-consensus-slots v0.9.0
   Compiling retain_mut v0.1.2
   Compiling mio-named-pipes v0.1.7
   Compiling safe-mix v1.0.1
   Compiling pdqselect v0.1.0
   Compiling futures-timer v2.0.2
   Compiling openssl-probe v0.1.2
   Compiling stable_deref_trait v1.2.0
   Compiling unicode-width v0.1.8
   Compiling proc-macro2 v0.4.30
   Compiling names v0.11.0
   Compiling vec_map v0.8.2
   Compiling ansi_term v0.11.0
   Compiling strsim v0.8.0
   Compiling substrate-fixed v0.5.6 (https://github.com/encointer/substrate-fixed.git?rev=b33d186888c60f38adafcfc0ec3a21aab263aef1#b33d1868)
   Compiling substrate-fixed v0.5.6 (https://github.com/encointer/substrate-fixed.git?branch=master#b33d1868)
   Compiling unicode-xid v0.1.0
   Compiling syn v0.15.44
   Compiling radium v0.3.0
   Compiling byte-slice-cast v0.3.5
   Compiling assert_matches v1.5.0
   Compiling instant v0.1.9
   Compiling libloading v0.7.0
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling num-bigint v0.2.6
   Compiling num-rational v0.2.4
   Compiling miniz_oxide v0.4.4
   Compiling indexmap v1.6.2
   Compiling crossbeam-utils v0.8.3
   Compiling atomic v0.5.0
   Compiling crossbeam-utils v0.7.2
   Compiling num-complex v0.2.4
   Compiling memoffset v0.5.6
   Compiling crossbeam-epoch v0.8.2
   Compiling parity-wasm v0.32.0
   Compiling lock_api v0.4.2
   Compiling lock_api v0.3.4
   Compiling generic-array v0.14.4
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling nom v6.2.1
   Compiling unicase v2.6.0
   Compiling tracing-core v0.1.17
   Compiling sharded-slab v0.1.1
   Compiling tokio-service v0.1.0
   Compiling hashbrown v0.9.1
   Compiling itertools v0.9.0
   Compiling futures-channel v0.3.13
   Compiling tinyvec v1.1.1
   Compiling block-padding v0.1.5
   Compiling blake2b_simd v0.5.11
   Compiling blake2s_simd v0.5.11
   Compiling regex-automata v0.1.9
   Compiling ed25519 v1.0.3
   Compiling account-set v3.0.0 (/mnt/home/app/recipes/traits/account-set)
   Compiling wasmi-validation v0.3.0
   Compiling trie-root v0.16.0
   Compiling trie-root v0.15.2
   Compiling addr2line v0.14.1
   Compiling http v0.2.3
   Compiling tokio-sync v0.1.8
   Compiling heck v0.3.2
   Compiling semver v0.9.0
   Compiling semver v0.6.0
   Compiling unicode-bidi v0.3.4
   Compiling form_urlencoded v1.0.1
   Compiling concurrent-queue v1.2.2
   Compiling async-mutex v1.4.0
   Compiling async-lock v2.3.0
   Compiling quicksink v0.1.2
   Compiling dns-parser v0.8.0
   Compiling pest v2.1.3
   Compiling matrixmultiply v0.2.4
   Compiling walkdir v2.3.2
   Compiling linked_hash_set v0.1.4
   Compiling clang-sys v1.2.0
   Compiling owning_ref v0.4.1
   Compiling textwrap v0.11.0
   Compiling bitvec v0.17.4
   Compiling lru v0.6.5
   Compiling unicode-normalization v0.1.17
   Compiling matchers v0.0.1
   Compiling http-body v0.3.1
   Compiling rustc_version v0.2.3
   Compiling build-helper v0.1.1
   Compiling async-channel v1.6.1
   Compiling semver-parser v0.10.2
   Compiling quote v1.0.9
   Compiling num_cpus v1.13.0
   Compiling parking_lot_core v0.8.3
   Compiling time v0.1.44
   Compiling jobserver v0.1.21
   Compiling iovec v0.1.4
   Compiling net2 v0.2.37
   Compiling socket2 v0.3.19
   Compiling signal-hook-registry v1.3.0
   Compiling atty v0.2.14
   Compiling parking_lot_core v0.7.2
   Compiling fs2 v0.4.3
   Compiling memmap2 v0.2.1
   Compiling fs-swap v0.2.5
   Compiling dirs-sys v0.3.5
   Compiling rand v0.4.6
   Compiling rpassword v5.0.1
   Compiling fdlimit v0.2.1
   Compiling aho-corasick v0.7.15
   Compiling futures-lite v1.11.3
   Compiling bstr v0.2.15
   Compiling generic-array v0.12.4
   Compiling generic-array v0.13.3
   Compiling paste-impl v0.1.18
   Compiling uint v0.9.0
   Compiling hash256-std-hasher v0.15.2
   Compiling idna v0.2.2
   Compiling idna v0.1.5
   Compiling bitvec v0.20.2
   Compiling blake2-rfc v0.2.18
   Compiling snow v0.7.2
   Compiling parking_lot_core v0.6.2
   Compiling parking_lot v0.9.0
   Compiling hyper v0.12.36
   Compiling nix v0.20.0
   Compiling smallvec v0.6.14
   Compiling bitvec v0.19.5
   Compiling substrate-build-script-utils v3.0.0
   Compiling quote v0.6.13
   Compiling rand_core v0.6.2
   Compiling futures-cpupool v0.1.8
   Compiling threadpool v1.8.1
   Compiling parking_lot v0.11.1
   Compiling rand_core v0.5.1
   Compiling cc v1.0.67
   Compiling bytes v0.4.12
   Compiling nb-connect v1.0.3
   Compiling miow v0.3.6
   Compiling clap v2.33.3
   Compiling parking_lot v0.10.2
   Compiling directories v3.0.1
   Compiling rand v0.3.23
   Compiling backtrace v0.3.56
   Compiling petgraph v0.5.1
   Compiling tokio-executor v0.1.10
   Compiling crossbeam-queue v0.2.3
   Compiling regex v1.4.5
   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 cipher v0.2.5
   Compiling digest v0.8.1
   Compiling block-buffer v0.7.3
   Compiling crypto-mac v0.7.0
   Compiling paste v0.1.18
   Compiling url v2.2.1
   Compiling url v1.7.2
   Compiling integer-sqrt v0.1.5
   Compiling approx v0.3.2
   Compiling ctrlc v3.1.8
   Compiling synstructure v0.12.4
   Compiling ctor v0.1.19
   Compiling thiserror-impl v1.0.24
   Compiling futures-macro v0.3.13
   Compiling tracing-attributes v0.1.15
   Compiling impl-trait-for-tuples v0.2.1
   Compiling ref-cast-impl v1.0.6
   Compiling sp-debug-derive v3.0.0
   Compiling dyn-clonable-impl v0.9.0
   Compiling derive_more v0.99.11
   Compiling prost-derive v0.7.0
   Compiling pin-project-internal v1.0.5
   Compiling asn1_der_derive v0.1.2
   Compiling frame-support-procedural-tools-derive v3.0.0
   Compiling minicbor-derive v0.6.2
   Compiling libp2p-core-derive v0.21.0
   Compiling data-encoding-macro-internal v0.1.9
   Compiling strum_macros v0.20.1
   Compiling rand_chacha v0.3.0
   Compiling once_cell v1.7.2
   Compiling rand_pcg v0.2.1
   Compiling rand_chacha v0.2.2
   Compiling ring v0.16.20
   Compiling blake3 v0.3.7
   Compiling libz-sys v1.1.2
   Compiling http v0.1.21
   Compiling string v0.2.1
   Compiling tokio-buf v0.1.1
   Compiling sp-panic-handler v3.0.0
   Compiling tokio-timer v0.2.13
   Compiling tokio-current-thread v0.1.7
   Compiling crossbeam-deque v0.7.3
   Compiling Inflector v0.11.4
   Compiling sha2 v0.9.3
   Compiling sha3 v0.9.1
   Compiling sha-1 v0.9.4
   Compiling hmac v0.8.1
   Compiling pbkdf2 v0.4.0
   Compiling blake2 v0.9.1
   Compiling aes-soft v0.5.0
   Compiling stream-cipher v0.7.1
   Compiling polyval v0.4.5
   Compiling poly1305 v0.6.2
   Compiling salsa20 v0.7.2
   Compiling sha2 v0.8.2
   Compiling sha-1 v0.8.2
   Compiling sha3 v0.8.2
   Compiling hmac v0.7.1
   Compiling pbkdf2 v0.3.0
   Compiling chrono v0.4.19
   Compiling simba v0.1.5
   Compiling cexpr v0.5.0
   Compiling derive_more v0.15.0
   Compiling zeroize_derive v1.0.1
   Compiling parity-util-mem-derive v0.1.0
   Compiling thiserror v1.0.24
   Compiling futures-util v0.3.13
   Compiling dyn-clonable v0.9.0
   Compiling prost v0.7.0
   Compiling pin-project v1.0.5
   Compiling pin-project v0.4.27
   Compiling asn1_der v0.6.3
   Compiling minicbor v0.7.2
   Compiling data-encoding-macro v0.1.10
   Compiling strum v0.20.0
   Compiling structopt-derive v0.4.14
   Compiling rand v0.8.3
   Compiling thread_local v1.1.3
   Compiling blocking v1.0.2
   Compiling async-executor v1.4.0
   Compiling rand v0.7.3
   Compiling http-body v0.1.0
   Compiling aes v0.5.0
   Compiling ghash v0.3.1
   Compiling hmac-drbg v0.2.0
   Compiling vergen v3.2.0
   Compiling zeroize v1.2.0
   Compiling failure v0.1.8
   Compiling toml v0.5.8
   Compiling impl-serde v0.3.1
   Compiling tracing-serde v0.1.2
   Compiling semver v0.11.0
   Compiling cargo-platform v0.1.1
   Compiling erased-serde v0.3.13
   Compiling parity-scale-codec v1.3.7
   Compiling which v4.0.2
   Compiling futures-executor v0.3.13
   Compiling asynchronous-codec v0.6.0
   Compiling asynchronous-codec v0.5.0
   Compiling prost-types v0.7.0
   Compiling multibase v0.8.0
   Compiling structopt v0.3.21
   Compiling fixed-hash v0.7.0
   Compiling tempfile v3.2.0
   Compiling twox-hash v1.6.0
   Compiling cuckoofilter v0.5.0
   Compiling rand_distr v0.2.2
   Compiling statrs v0.12.0
   Compiling aes-gcm v0.7.0
   Compiling libsecp256k1 v0.3.5
   Compiling wasmi v0.6.2
   Compiling librocksdb-sys v6.20.3
   Compiling curve25519-dalek v3.0.2
   Compiling merlin v2.0.1
   Compiling curve25519-dalek v2.1.2
   Compiling secrecy v0.7.0
   Compiling tiny-bip39 v0.8.0
   Compiling chacha20 v0.5.0
   Compiling tracing v0.1.25
   Compiling tracing-log v0.1.2
   Compiling trie-db v0.22.3
   Compiling mio v0.6.23
   Compiling polling v2.0.2
   Compiling wasm-bindgen-backend v0.2.71
   Compiling kv-log-macro v1.0.7
   Compiling want v0.3.0
   Compiling tokio-io v0.1.13
   Compiling wasm-gc-api v0.1.11
   Compiling tokio-threadpool v0.1.18
   Compiling globset v0.4.6
   Compiling want v0.2.0
   Compiling parity-db v0.2.4
   Compiling proc-macro-crate v0.1.5
   Compiling sp-serializer v3.0.0
   Compiling jsonrpc-core v15.1.0
   Compiling sp-chain-spec v3.0.0
   Compiling rustc_version v0.3.3
   Compiling cargo_metadata v0.12.3
   Compiling prost-build v0.7.0
   Compiling futures v0.3.13
   Compiling unsigned-varint v0.7.0
   Compiling unsigned-varint v0.6.0
   Compiling nalgebra v0.21.1
   Compiling webpki v0.21.4
   Compiling sct v0.6.0
   Compiling ed25519-dalek v1.0.1
   Compiling x25519-dalek v1.1.0
   Compiling schnorrkel v0.9.1
   Compiling chacha20poly1305 v0.6.0
   Compiling tracing-futures v0.2.5
   Compiling tracing-subscriber v0.2.17
   Compiling mio-uds v0.6.8
   Compiling mio-extras v2.0.6
   Compiling async-io v1.3.1
   Compiling wasm-bindgen-macro-support v0.2.71
   Compiling tokio-reactor v0.1.12
   Compiling tokio-codec v0.1.2
   Compiling h2 v0.1.26
   Compiling tokio-fs v0.1.7
   Compiling frame-support-procedural-tools v3.0.0
   Compiling parity-scale-codec-derive v2.0.1
   Compiling sp-runtime-interface-proc-macro v3.0.0
   Compiling multihash-derive v0.7.1
   Compiling sp-api-proc-macro v3.0.0
   Compiling jsonrpc-derive v15.1.0
   Compiling sc-tracing-proc-macro v3.0.0
   Compiling sc-chain-spec-derive v3.0.0
   Compiling jsonrpc-pubsub v15.1.0
   Compiling substrate-wasm-builder v4.0.0
   Compiling rw-stream-sink v0.2.1
   Compiling wasm-timer v0.2.5
   Compiling yamux v0.8.1
   Compiling libp2p-pnet v0.20.0
   Compiling sp-utils v3.0.0
   Compiling futures-diagnose v1.0.1
   Compiling intervalier v0.4.0
   Compiling exit-future v0.2.0
   Compiling multistream-select v0.10.2
   Compiling linregress v0.4.0
   Compiling webpki-roots v0.21.0
   Compiling rustls v0.19.0
   Compiling rustls v0.18.1
   Compiling ct-logs v0.7.0
   Compiling substrate-bip39 v0.4.2
   Compiling tokio v0.2.25
   Compiling parity-ws v0.10.0
   Compiling async-global-executor v2.0.2
   Compiling async-process v1.0.2
   Compiling if-watch v0.1.8
   Compiling wasm-bindgen-macro v0.2.71
   Compiling tokio-tcp v0.1.4
   Compiling tokio-udp v0.1.6
   Compiling tokio-uds v0.2.7
   Compiling frame-support-procedural v3.0.0
   Compiling parity-scale-codec v2.0.1
   Compiling multihash v0.13.2
   Compiling jsonrpc-client-transports v15.1.0
   Compiling hybrid-consensus v3.0.0 (/mnt/home/app/recipes/nodes/hybrid-consensus)
   Compiling kitchen-node v3.0.0 (/mnt/home/app/recipes/nodes/kitchen-node)
   Compiling rpc-node v3.0.0 (/mnt/home/app/recipes/nodes/rpc-node)
   Compiling basic-pow v3.0.0 (/mnt/home/app/recipes/nodes/basic-pow)
   Compiling super-runtime v3.0.0 (/mnt/home/app/recipes/runtimes/super-runtime)
   Compiling api-runtime v3.0.0 (/mnt/home/app/recipes/runtimes/api-runtime)
   Compiling minimal-grandpa-runtime v3.0.0 (/mnt/home/app/recipes/runtimes/minimal-grandpa-runtime)
   

**- [ *] Compiling ocw-runtime v3.0.0 (/mnt/home/app/recipes/runtimes/ocw-runtime)**

   Compiling weight-fee-runtime v3.0.0 (/mnt/home/app/recipes/runtimes/weight-fee-runtime)
   Compiling futures-rustls v0.21.1
   Compiling rustls-native-certs v0.4.0
   Compiling flate2 v1.0.20
   Compiling tokio-util v0.3.1
   Compiling tokio-rustls v0.14.1
   Compiling async-std v1.9.0
   Compiling tokio v0.1.22
   Compiling impl-codec v0.5.0
   Compiling sp-tracing v3.0.0
   Compiling sp-storage v3.0.0
   Compiling sp-wasm-interface v3.0.0
   Compiling sp-arithmetic v3.0.0
   Compiling fork-tree v3.0.0
   Compiling finality-grandpa v0.13.0
   Compiling parity-multiaddr v0.11.2
   Compiling cid v0.6.1
   Compiling jsonrpc-core-client v15.1.0
error: failed to run custom build command for `super-runtime v3.0.0 (/mnt/home/app/recipes/runtimes/super-runtime)`

Caused by:
  process didn't exit successfully: `/mnt/home/app/recipes/target/debug/build/super-runtime-c034e2a805453c98/build-script-build` (exit status: 1)
  --- stdout
  Information that should be included in a bug report.
  Executing build command: "rustup" "run" "nightly-2020-10-06" "cargo" "-Zfeatures=build_dep" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/mnt/home/app/recipes/target/debug/wbuild/super-runtime/Cargo.toml" "--color=always" "--release"
  Using rustc version: rustc 1.49.0-nightly (a1dfd2490 2020-10-05)


  --- stderr
  warning: /mnt/home/app/recipes/Cargo.toml: unused manifest key: workspace.librocksdb-sys
     Compiling proc-macro2 v1.0.24
     Compiling unicode-xid v0.2.1
     Compiling syn v1.0.64
     Compiling serde v1.0.125
     Compiling serde_derive v1.0.125
     Compiling arrayvec v0.5.2
     Compiling byte-slice-cast v1.0.0
     Compiling log v0.4.14
     Compiling memchr v2.3.4
     Compiling crunchy v0.2.2
     Compiling sp-std v3.0.0
     Compiling static_assertions v1.1.0
     Compiling autocfg v1.0.1
     Compiling cfg-if v1.0.0
     Compiling regex-syntax v0.6.23
     Compiling lazy_static v1.4.0
     Compiling hex v0.4.3
     Compiling ref-cast v1.0.6
     Compiling byteorder v1.4.3
     Compiling pin-project-lite v0.2.6
     Compiling tracing-core v0.1.17
     Compiling parity-util-mem v0.9.0
     Compiling zeroize v1.2.0
     Compiling hash-db v0.15.2
     Compiling either v1.6.1
     Compiling paste v1.0.5
     Compiling bitflags v1.2.1
     Compiling smallvec v1.6.1
     Compiling arrayvec v0.4.12
     Compiling libc v0.2.89
     Compiling nodrop v0.1.14
     Compiling getrandom v0.2.2
     Compiling constant_time_eq v0.1.5
     Compiling ryu v1.0.5
     Compiling ucd-trie v0.1.3
     Compiling serde_json v1.0.64
     Compiling ppv-lite86 v0.2.10
     Compiling typenum v1.13.0
     Compiling semver-parser v0.7.0
     Compiling itoa v0.4.7
     Compiling same-file v1.0.6
     Compiling rustc-demangle v0.1.18
     Compiling remove_dir_all v0.5.3
     Compiling substrate-fixed v0.5.6 (https://github.com/encointer/substrate-fixed.git?rev=b33d186888c60f38adafcfc0ec3a21aab263aef1#b33d1868)
     Compiling ansi_term v0.12.1
     Compiling substrate-fixed v0.5.6 (https://github.com/encointer/substrate-fixed.git?branch=master#b33d1868)
     Compiling safe-mix v1.0.1
     Compiling account-set v3.0.0 (/mnt/home/app/recipes/traits/account-set)
     Compiling fixed-hash v0.7.0
     Compiling num-traits v0.2.14
     Compiling tracing v0.1.25
     Compiling secrecy v0.7.0
     Compiling pest v2.1.3
     Compiling semver v0.6.0
     Compiling parity-wasm v0.32.0
     Compiling walkdir v2.3.2
     Compiling semver-parser v0.10.2
     Compiling build-helper v0.1.1
     Compiling quote v1.0.9
     Compiling wasm-gc-api v0.1.11
     Compiling aho-corasick v0.7.15
     Compiling uint v0.9.0
     Compiling hash256-std-hasher v0.15.2
     Compiling blake2-rfc v0.2.18
     Compiling atty v0.2.14
     Compiling regex v1.4.5
     Compiling integer-sqrt v0.1.5
     Compiling rand_core v0.6.2
     Compiling synstructure v0.12.4
     Compiling impl-trait-for-tuples v0.2.1
     Compiling ref-cast-impl v1.0.6
     Compiling sp-debug-derive v3.0.0
     Compiling frame-support-procedural-tools-derive v3.0.0
     Compiling Inflector v0.11.4
     Compiling rand_chacha v0.3.0
     Compiling parity-util-mem-derive v0.1.0
     Compiling rand v0.8.3
     Compiling toml v0.5.8
     Compiling semver v0.11.0
     Compiling cargo-platform v0.1.1
     Compiling tempfile v3.2.0
     Compiling proc-macro-crate v0.1.5
     Compiling cargo_metadata v0.12.3
     Compiling frame-support-procedural-tools v3.0.0
     Compiling parity-scale-codec-derive v2.0.1
     Compiling sp-runtime-interface-proc-macro v3.0.0
     Compiling sp-api-proc-macro v3.0.0
     Compiling substrate-wasm-builder v4.0.0
     Compiling frame-support-procedural v3.0.0
     Compiling parity-scale-codec v2.0.1
     Compiling super-runtime v3.0.0 (/mnt/home/app/recipes/runtimes/super-runtime)
     Compiling impl-codec v0.5.0
     Compiling sp-wasm-interface v3.0.0
     Compiling sp-tracing v3.0.0
     Compiling sp-storage v3.0.0
     Compiling sp-arithmetic v3.0.0
     Compiling primitive-types v0.9.0
     Compiling sp-runtime-interface v3.0.0
     Compiling sp-core v3.0.0
     Compiling sp-io v3.0.0
     Compiling sp-inherents v3.0.0
     Compiling frame-metadata v13.0.0
     Compiling sp-application-crypto v3.0.0
     Compiling sp-runtime v3.0.0
     Compiling sp-version v3.0.0
     Compiling sp-staking v3.0.0
     Compiling sp-api v3.0.0
     Compiling frame-support v3.0.0
     Compiling sp-timestamp v3.0.0
     Compiling sp-offchain v3.0.0
     Compiling sp-transaction-pool v3.0.0
     Compiling sp-block-builder v3.0.0
     Compiling sp-session v3.0.0
     Compiling frame-system v3.0.0
     Compiling pallet-balances v3.0.0
     Compiling vec-set v3.0.0 (/mnt/home/app/recipes/pallets/vec-set)
     Compiling pallet-transaction-payment v3.0.0
     Compiling frame-executive v3.0.0
     Compiling randomness v3.0.0 (/mnt/home/app/recipes/pallets/randomness)
     Compiling generic-event v3.0.0 (/mnt/home/app/recipes/pallets/generic-event)
     Compiling map-set v3.0.0 (/mnt/home/app/recipes/pallets/map-set)
     Compiling pallet-sudo v3.0.0
     Compiling default-instance v3.0.0 (/mnt/home/app/recipes/pallets/default-instance)
     Compiling simple-event v3.0.0 (/mnt/home/app/recipes/pallets/simple-event)
     Compiling fixed-point v3.0.0 (/mnt/home/app/recipes/pallets/fixed-point)
     Compiling ringbuffer-queue v3.0.0 (/mnt/home/app/recipes/pallets/ringbuffer-queue)
     Compiling compounding-interest v3.0.0 (/mnt/home/app/recipes/pallets/compounding-interest)
  error[E0308]: mismatched types
     --> /mnt/home/app/recipes/pallets/compounding-interest/src/lib.rs:189:31
      |
  189 |           let elapsed_time_u32: u32 = TryInto::try_into(elapsed_time_block_number)
      |  _______________________________---___^
      | |                               |
      | |                               expected due to this
  190 | |             .ok()
  191 | |             .expect("blockchain will not exceed 2^32 blocks; qed");
      | |__________________________________________________________________^ expected `u32`, found `usize`
      |
  help: you can convert an `usize` to `u32` and panic if the converted value wouldn't fit
      |
  189 |         let elapsed_time_u32: u32 = TryInto::try_into(elapsed_time_block_number)
  190 |             .ok()
  191 |             .expect("blockchain will not exceed 2^32 blocks; qed").try_into().unwrap();
      |

  error: aborting due to previous error

  For more information about this error, try `rustc --explain E0308`.
  error: could not compile `compounding-interest`

  To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
^[[5~uilding [==================>      ] 665/845: librocksdb-sys(build)  

I made bold line of compiling ocw-runtime without problem but I have got this issue:

     Compiling compounding-interest v3.0.0 (/mnt/home/app/recipes/pallets/compounding-interest)
  error[E0308]: mismatched types

Running System ubuntu 20.04:
rustup show

Default host: x86_64-unknown-linux-gnu
rustup home:  /home/u2004zero/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu (default)
nightly-2020-10-01-x86_64-unknown-linux-gnu
nightly-2020-10-06-x86_64-unknown-linux-gnu
nightly-2021-08-30-x86_64-unknown-linux-gnu
nightly-2021-08-31-x86_64-unknown-linux-gnu
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.60.0 (7737e0b5c 2022-04-04)

@yumingchangsabodota

@JoshOrndorff

@sixTheDave
Copy link

We have encountered the same issue. Commenting out ocw-demo and ocw-runtime solved it. Of course, this is a problem is you want to use OCW.

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

No branches or pull requests

5 participants
@JoshOrndorff @armanriazi @yumingchangsabodota @sixTheDave and others