Closed humb1t closed 4 years ago
Which rust version?
@bkchr rustc 1.46.0 (04488afe3 2020-08-24)
And the nightly?
rustc 1.48.0-nightly (e2be5f568 2020-09-09) will check with it also
cargo +nightly install --git https://github.com/paritytech/polkadot --tag v0.8.23 polkadot
...
error[E0425]: cannot find value `MAX_MEMBERS` in crate `pallet_collective`
--> runtime/polkadot/src/lib.rs:485:59
|
485 | const_assert!(DesiredMembers::get() <= pallet_collective::MAX_MEMBERS);
| ^^^^^^^^^^^ not found in `pallet_collective`
error[E0046]: not all trait items implemented, missing: `MaxMembers`, `DefaultVote`
--> runtime/polkadot/src/lib.rs:465:1
|
465 | impl pallet_collective::Trait<CouncilCollective> for Runtime {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `MaxMembers`, `DefaultVote` in implementation
|
= help: implement the missing item: `type MaxMembers = Type;`
= help: implement the missing item: `type DefaultVote = Type;`
error[E0046]: not all trait items implemented, missing: `MaxMembers`, `DefaultVote`
--> runtime/polkadot/src/lib.rs:511:1
|
511 | impl pallet_collective::Trait<TechnicalCollective> for Runtime {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `MaxMembers`, `DefaultVote` in implementation
|
= help: implement the missing item: `type MaxMembers = Type;`
= help: implement the missing item: `type DefaultVote = Type;`
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0046, E0425.
For more information about an error, try `rustc --explain E0046`.
error: could not compile `polkadot-runtime`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `polkadot v0.8.23 (https://github.com/paritytech/polkadot?tag=v0.8.23#d327000a)`, intermediate artifacts can be found at `/tmp/cargo-installEn1Cge`
Caused by:
build failed
You need to use:
cargo +nightly install --git https://github.com/paritytech/polkadot --tag v0.8.23 polkadot --locked
@bkchr thanks, it helped, I made #1723 PR to add this flag to README.
System Information: Linux humb1t-micro 4.15.0-1096-oem #106-Ubuntu SMP Sat Sep 5 15:59:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Command:
cargo install --git https://github.com/paritytech/polkadot --tag v0.8.23 polkadot
Log: