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

Frontier node template fails to build #737

Closed
Wiezzel opened this issue Jun 20, 2022 · 2 comments
Closed

Frontier node template fails to build #737

Wiezzel opened this issue Jun 20, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Wiezzel
Copy link

Wiezzel commented Jun 20, 2022

Description

I've just checked out the latest frontier version from master branch (28c4bce). When I'm trying to run ./node-template-release.sh I'm getting the following error. How to fix this?

Compiling pallet-grandpa v4.0.0-dev (https://github.com/paritytech/substrate?branch=master#6001b59f)
  error[E0046]: not all trait items implemented, missing: `Event`
     --> /tmp/.tmp9bl8nQ/template/runtime/src/lib.rs:286:1
      |
  286 | impl pallet_transaction_payment::Config for Runtime {
      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Event` in implementation
      |
      = help: implement the missing item: `type Event = Type;`

  error[E0599]: no variant or associated item named `max_encoded_len` found for enum `pallet_ethereum::RawOrigin` in the current scope
     --> /tmp/.tmp9bl8nQ/template/runtime/src/lib.rs:391:1
      |
  391 | / construct_runtime!(
  392 | |     pub enum Runtime where
  393 | |         Block = Block,
  394 | |         NodeBlock = opaque::Block,
  ...   |
  409 | |     }
  410 | | );
      | |_^ variant or associated item not found in `pallet_ethereum::RawOrigin`
      |
      = note: this error originates in the macro `construct_runtime` (in Nightly builds, run with -Z macro-backtrace for more info)

  Some errors have detailed explanations: E0046, E0599.
  For more information about an error, try `rustc --explain E0046`.
  error: could not compile `frontier-template-runtime` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
thread 'main' panicked at 'assertion failed: Command::new(\"cargo\").args(&[\"build\",\n                                \"--all\"]).current_dir(path).status().expect(\"Compiles node\").success()', src/main.rs:188:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Steps to Reproduce

  1. Check out the repo.
  2. Run ./node-template-release.sh.

Environment

  • Operating system: Ubuntu 22.04 LTS
  • Project version/tag: master (28c4bce)
  • Rust version:
    • rustc 1.61.0 (fe5b13d68 2022-05-18)
    • rustc 1.63.0-nightly (bb8c2f411 2022-06-19)
@Wiezzel Wiezzel added the bug Something isn't working label Jun 20, 2022
@Ethereumx
Copy link

I am facing similar issue on ubuntu 20 :

error[E0599]: no method named `is_major_syncing` found for struct `Arc<NetworkService<B, H>>` in the current scope
   --> /home/az/.cargo/git/checkouts/frontier-b4643f17507d3282/083c073/client/rpc/src/eth_pubsub.rs:396:44
    |
396 |                     let mut last_syncing_status = network.is_major_syncing();
    |                                                           ^^^^^^^^^^^^^^^^ private field, not a method
    |
   ::: /home/az/.cargo/git/checkouts/substrate-7e08433d4c370a21/055453e/primitives/consensus/common/src/lib.rs:239:8
    |
239 |     fn is_major_syncing(&self) -> bool;
    |        ---------------- the method is available for `Arc<NetworkService<B, H>>` here
    |
    = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
    |
19  | use sp_consensus::SyncOracle;
    |

error[E0599]: no method named `is_major_syncing` found for struct `Arc<NetworkService<B, H>>` in the current scope
   --> /home/az/.cargo/git/checkouts/frontier-b4643f17507d3282/083c073/client/rpc/src/eth_pubsub.rs:398:36
    |
398 |                         let syncing_status = network.is_major_syncing();
    |                                                      ^^^^^^^^^^^^^^^^ private field, not a method
    |
   ::: /home/az/.cargo/git/checkouts/substrate-7e08433d4c370a21/055453e/primitives/consensus/common/src/lib.rs:239:8
    |
239 |     fn is_major_syncing(&self) -> bool;
    |        ---------------- the method is available for `Arc<NetworkService<B, H>>` here
    |
    = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
    |
19  | use sp_consensus::SyncOracle;
    |

error[E0599]: no method named `num_connected` found for struct `Arc<NetworkService<B, H>>` in the current scope
  --> /home/az/.cargo/git/checkouts/frontier-b4643f17507d3282/083c073/client/rpc/src/net.rs:71:33
   |
71 |         let peer_count = self.network.num_connected();
   |                                       ^^^^^^^^^^^^^ private field, not a method

For more information about this error, try `rustc --explain E0599`.
error: could not compile `fc-rpc` due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
thread 'main' panicked at 'assertion failed: Command::new(\"cargo\").args(&[\"build\",\n                                \"--all\"]).current_dir(path).status().expect(\"Compiles node\").success()', src/main.rs:188:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@AurevoirXavier
Copy link
Contributor

I think this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants