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

Failed to compile at branch moonbeam-polkadot-v0.9.18, commit 7002160 #55

Closed
AuroraLantean opened this issue Apr 14, 2022 · 3 comments · Fixed by #56
Closed

Failed to compile at branch moonbeam-polkadot-v0.9.18, commit 7002160 #55

AuroraLantean opened this issue Apr 14, 2022 · 3 comments · Fixed by #56

Comments

@AuroraLantean
Copy link

AuroraLantean commented Apr 14, 2022

error[E0658]: use of unstable library feature 'proc_macro_is_available'
  --> /home/user2038/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.37/src/detection.rs:28:21
   |
28 |     let available = proc_macro::is_available();
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #71436 <https://github.com/rust-lang/rust/issues/71436> for more information
   = help: add `#![feature(proc_macro_is_available)]` to the crate attributes to enable

For more information about this error, try `rustc --explain E0658`.
error: could not compile `proc-macro2` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

my Rust compiler was chosen by the rust-toolchain file:
pureStakeCrowdloanReward git:(moonbeam-polkadot-v0.9.18) $ rustup show

Default host: x86_64-unknown-linux-gnu
rustup home:  /home/user2038/.rustup
installed toolchains
stable-x86_64-unknown-linux-gnu
nightly-2021-09-10-x86_64-unknown-linux-gnu
nightly-2021-11-12-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu
bpf
1.59.0-x86_64-unknown-linux-gnu (default)

installed targets for active toolchain
wasm32-unknown-unknown
x86_64-unknown-linux-gnu

active toolchain
nightly-2021-09-10-x86_64-unknown-linux-gnu (overridden by '/mnt/sda3/polkadot/pureStakeCrowdloanReward/rust-toolchain')
rustc 1.57.0-nightly (497ee321a 2021-09-09)

@crystalin
Copy link
Contributor

@notlesh do you have an idea what could be the issue ?

@notlesh
Copy link
Contributor

notlesh commented Apr 14, 2022

@AuroraLantean how exactly are you compiling this (e.g. what command)? I don't get this error if I do cargo build --release in this repo.

That said, the compiler in rust-toolchain is very old. Give #56 a try and see if it helps.

@AuroraLantean
Copy link
Author

@notlesh for me, both "cargo test" and "cargo build --release" in the moonbeam-polkadot-v0.9.18 branch result in the same error above. Yes the compiler in rust-toolchain is very old... I suggest using Rust 1.59.0, not to use the latest Rust 1.60.0 because I have problem compiling Parity's Frontier repo as well: polkadot-evm/frontier#633. Rust 1.59.0 is good to compile that. Thank you

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

Successfully merging a pull request may close this issue.

3 participants