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

upgrade to 3.1.0 failed #1240

Closed
sleepyyj opened this issue Jul 27, 2023 · 2 comments
Closed

upgrade to 3.1.0 failed #1240

sleepyyj opened this issue Jul 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@sleepyyj
Copy link

sleepyyj commented Jul 27, 2023

Describe the bug
�Failed to upgrade to 3.1.0.
error log

Compiling contract-transcode v3.1.0 (/usr/local/cargo/git/checkouts/cargo-contract-0e593efc9d3a70d5/4123015/crates/transcode)
#14 436.7 error[E0658]: use of unstable library feature 'once_cell'
#14 436.7    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/utils.rs:22:29
#14 436.7     |
#14 436.7 22  |                   static VAR: std::sync::OnceLock<$ty> = std::sync::OnceLock::new();
#14 436.7     |                               ^^^^^^^^^^^^^^^^^^^^^^^^
#14 436.7     |
#14 436.7    ::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/crypto/secret_uri.rs:125:1
#14 436.7     |
#14 436.7 125 | / once_static! {
#14 436.7 126 | |     /// Interpret a phrase like:
#14 436.7 127 | |     ///
#14 436.7 128 | |     /// ```text
#14 436.7 ...   |
#14 436.7 151 | |     }
#14 436.7 152 | | }
#14 436.7     | |_- in this macro invocation
#14 436.7     |
#14 436.7     = note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
#14 436.7     = note: this error originates in the macro `once_static` (in Nightly builds, run with -Z macro-backtrace for more info)
#14 436.7 
#14 436.7 error[E0658]: use of unstable library feature 'once_cell'
#14 436.7    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/utils.rs:22:56
#14 436.7     |
#14 436.7 22  |                   static VAR: std::sync::OnceLock<$ty> = std::sync::OnceLock::new();
#14 436.7     |                                                          ^^^^^^^^^^^^^^^^^^^
#14 436.7     |
#14 436.7    ::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/crypto/secret_uri.rs:125:1
#14 436.7     |
#14 436.7 125 | / once_static! {
#14 436.7 126 | |     /// Interpret a phrase like:
#14 436.7 127 | |     ///
#14 436.7 128 | |     /// ```text
#14 436.7 ...   |
#14 436.7 151 | |     }
#14 436.7 152 | | }
#14 436.7     | |_- in this macro invocation
#14 436.7     |
#14 436.7     = note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
#14 436.7     = note: this error originates in the macro `once_static` (in Nightly builds, run with -Z macro-backtrace for more info)
#14 436.7 
#14 436.7 error[E0658]: use of unstable library feature 'once_cell'
#14 436.7    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/utils.rs:36:29
#14 436.7     |
#14 436.7 36  |                   static VAR: std::sync::OnceLock<$ty> = std::sync::OnceLock::new();
#14 436.7     |                               ^^^^^^^^^^^^^^^^^^^^^^^^
#14 436.7     |
#14 436.7    ::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/sr25519.rs:209:5
#14 436.7     |
#14 436.7 209 | /     once_static_cloned! {
#14 436.7 210 | |         /// Equivalent to `{DEV_PHRASE}//Alice`.
#14 436.7 211 | |         pub fn alice() -> Keypair {
#14 436.7 212 | |             Keypair::from_uri(&SecretUri::from_str("//Alice").unwrap()).unwrap()
#14 436.7 ...   |
#14 436.7 241 | |         }
#14 436.7 242 | |     }
#14 436.7     | |_____- in this macro invocation
#14 436.7     |
#14 436.7     = note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
#14 436.7     = note: this error originates in the macro `once_static_cloned` (in Nightly builds, run with -Z macro-backtrace for more info)
#14 436.7 
#14 436.7 error[E0658]: use of unstable library feature 'once_cell'
#14 436.7    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/utils.rs:36:56
#14 436.7     |
#14 436.7 36  |                   static VAR: std::sync::OnceLock<$ty> = std::sync::OnceLock::new();
#14 436.7     |                                                          ^^^^^^^^^^^^^^^^^^^
#14 436.7     |
#14 436.7    ::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/sr25519.rs:209:5
#14 436.7     |
#14 436.7 209 | /     once_static_cloned! {
#14 436.7 210 | |         /// Equivalent to `{DEV_PHRASE}//Alice`.
#14 436.7 211 | |         pub fn alice() -> Keypair {
#14 436.7 212 | |             Keypair::from_uri(&SecretUri::from_str("//Alice").unwrap()).unwrap()
#14 436.7 ...   |
#14 436.7 241 | |         }
#14 436.7 242 | |     }
#14 436.7     | |_____- in this macro invocation
#14 436.7     |
#14 436.7     = note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
#14 436.7     = note: this error originates in the macro `once_static_cloned` (in Nightly builds, run with -Z macro-backtrace for more info)
#14 436.7 
#14 436.7 error[E0658]: use of unstable library feature 'once_cell'
#14 436.7    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/utils.rs:36:29
#14 436.7     |
#14 436.7 36  |                   static VAR: std::sync::OnceLock<$ty> = std::sync::OnceLock::new();
#14 436.7     |                               ^^^^^^^^^^^^^^^^^^^^^^^^
#14 436.7     |
#14 436.7    ::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/ecdsa.rs:221:5
#14 436.7     |
#14 436.7 221 | /     once_static_cloned! {
#14 436.7 222 | |         /// Equivalent to `{DEV_PHRASE}//Alice`.
#14 436.7 223 | |         pub fn alice() -> Keypair {
#14 436.7 224 | |             Keypair::from_uri(&SecretUri::from_str("//Alice").unwrap()).unwrap()
#14 436.7 ...   |
#14 436.7 253 | |         }
#14 436.7 254 | |     }
#14 436.7     | |_____- in this macro invocation
#14 436.7     |
#14 436.7     = note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
#14 436.7     = note: this error originates in the macro `once_static_cloned` (in Nightly builds, run with -Z macro-backtrace for more info)
#14 436.7 
#14 436.7 error[E0658]: use of unstable library feature 'once_cell'
#14 436.7    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/utils.rs:36:56
#14 436.7     |
#14 436.7 36  |                   static VAR: std::sync::OnceLock<$ty> = std::sync::OnceLock::new();
#14 436.7     |                                                          ^^^^^^^^^^^^^^^^^^^
#14 436.7     |
#14 436.7    ::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/ecdsa.rs:221:5
#14 436.7     |
#14 436.7 221 | /     once_static_cloned! {
#14 436.7 222 | |         /// Equivalent to `{DEV_PHRASE}//Alice`.
#14 436.7 223 | |         pub fn alice() -> Keypair {
#14 436.7 224 | |             Keypair::from_uri(&SecretUri::from_str("//Alice").unwrap()).unwrap()
#14 436.7 ...   |
#14 436.7 253 | |         }
#14 436.7 254 | |     }
#14 436.7     | |_____- in this macro invocation
#14 436.7     |
#14 436.7     = note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
#14 436.7     = note: this error originates in the macro `once_static_cloned` (in Nightly builds, run with -Z macro-backtrace for more info)
#14 436.7 
#14 436.7 error[E0658]: use of unstable library feature 'once_cell'
#14 436.7    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/utils.rs:22:56
#14 436.7     |
#14 436.7 22  |                   static VAR: std::sync::OnceLock<$ty> = std::sync::OnceLock::new();
#14 436.7     |                                                          ^^^^^^^^^^^^^^^^^^^^^^^^
#14 436.7     |
#14 436.7    ::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/crypto/secret_uri.rs:125:1
#14 436.7     |
#14 436.7 125 | / once_static! {
#14 436.7 126 | |     /// Interpret a phrase like:
#14 436.7 127 | |     ///
#14 436.7 128 | |     /// ```text
#14 436.7 ...   |
#14 436.7 151 | |     }
#14 436.7 152 | | }
#14 436.7     | |_- in this macro invocation
#14 436.7     |
#14 436.7     = note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
#14 436.7     = note: this error originates in the macro `once_static` (in Nightly builds, run with -Z macro-backtrace for more info)
#14 436.7 
#14 436.7 error[E0658]: use of unstable library feature 'once_cell'
#14 436.7    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/utils.rs:36:56
#14 436.7     |
#14 436.7 36  |                   static VAR: std::sync::OnceLock<$ty> = std::sync::OnceLock::new();
#14 436.7     |                                                          ^^^^^^^^^^^^^^^^^^^^^^^^
#14 436.7     |
#14 436.7    ::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/sr25519.rs:209:5
#14 436.7     |
#14 436.7 209 | /     once_static_cloned! {
#14 436.7 210 | |         /// Equivalent to `{DEV_PHRASE}//Alice`.
#14 436.7 211 | |         pub fn alice() -> Keypair {
#14 436.7 212 | |             Keypair::from_uri(&SecretUri::from_str("//Alice").unwrap()).unwrap()
#14 436.7 ...   |
#14 436.7 241 | |         }
#14 436.7 242 | |     }
#14 436.7     | |_____- in this macro invocation
#14 436.7     |
#14 436.7     = note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
#14 436.7     = note: this error originates in the macro `once_static_cloned` (in Nightly builds, run with -Z macro-backtrace for more info)
#14 436.7 
#14 436.7 error[E0658]: use of unstable library feature 'once_cell'
#14 436.7    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/utils.rs:36:56
#14 436.7     |
#14 436.7 36  |                   static VAR: std::sync::OnceLock<$ty> = std::sync::OnceLock::new();
#14 436.7     |                                                          ^^^^^^^^^^^^^^^^^^^^^^^^
#14 436.7     |
#14 436.7    ::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/ecdsa.rs:221:5
#14 436.7     |
#14 436.7 221 | /     once_static_cloned! {
#14 436.7 222 | |         /// Equivalent to `{DEV_PHRASE}//Alice`.
#14 436.7 223 | |         pub fn alice() -> Keypair {
#14 436.7 224 | |             Keypair::from_uri(&SecretUri::from_str("//Alice").unwrap()).unwrap()
#14 436.7 ...   |
#14 436.7 253 | |         }
#14 436.7 254 | |     }
#14 436.7     | |_____- in this macro invocation
#14 436.7     |
#14 436.7     = note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
#14 436.7     = note: this error originates in the macro `once_static_cloned` (in Nightly builds, run with -Z macro-backtrace for more info)
#14 436.7 
#14 436.7 error[E0658]: use of unstable library feature 'once_cell'
#14 436.7    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/utils.rs:23:21
#14 436.7     |
#14 436.7 23  |                   VAR.get_or_init(|| { $expr })
#14 436.7     |                       ^^^^^^^^^^^
#14 436.7     |
#14 436.7    ::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/crypto/secret_uri.rs:125:1
#14 436.7     |
#14 436.7 125 | / once_static! {
#14 436.7 126 | |     /// Interpret a phrase like:
#14 436.7 127 | |     ///
#14 436.7 128 | |     /// ```text
#14 436.7 ...   |
#14 436.7 151 | |     }
#14 436.7 152 | | }
#14 436.7     | |_- in this macro invocation
#14 436.7     |
#14 436.7     = note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
#14 436.7     = note: this error originates in the macro `once_static` (in Nightly builds, run with -Z macro-backtrace for more info)
#14 436.7 
#14 436.7 error[E0658]: use of unstable library feature 'once_cell'
#14 436.7    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/utils.rs:37:21
#14 436.7     |
#14 436.7 37  |                   VAR.get_or_init(|| { $expr }).clone()
#14 436.7     |                       ^^^^^^^^^^^
#14 436.7     |
#14 436.7    ::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/sr25519.rs:209:5
#14 436.7     |
#14 436.7 209 | /     once_static_cloned! {
#14 436.7 210 | |         /// Equivalent to `{DEV_PHRASE}//Alice`.
#14 436.7 211 | |         pub fn alice() -> Keypair {
#14 436.7 212 | |             Keypair::from_uri(&SecretUri::from_str("//Alice").unwrap()).unwrap()
#14 436.7 ...   |
#14 436.7 241 | |         }
#14 436.7 242 | |     }
#14 436.7     | |_____- in this macro invocation
#14 436.7     |
#14 436.7     = note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
#14 436.7     = note: this error originates in the macro `once_static_cloned` (in Nightly builds, run with -Z macro-backtrace for more info)
#14 436.7 
#14 436.7 error[E0658]: use of unstable library feature 'once_cell'
#14 436.7    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/utils.rs:37:21
#14 436.7     |
#14 436.7 37  |                   VAR.get_or_init(|| { $expr }).clone()
#14 436.7     |                       ^^^^^^^^^^^
#14 436.7     |
#14 436.7    ::: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subxt-signer-0.30.1/src/ecdsa.rs:221:5
#14 436.7     |
#14 436.7 221 | /     once_static_cloned! {
#14 436.7 222 | |         /// Equivalent to `{DEV_PHRASE}//Alice`.
#14 436.7 223 | |         pub fn alice() -> Keypair {
#14 436.7 224 | |             Keypair::from_uri(&SecretUri::from_str("//Alice").unwrap()).unwrap()
#14 436.7 ...   |
#14 436.7 253 | |         }
#14 436.7 254 | |     }
#14 436.7     | |_____- in this macro invocation
#14 436.7     |
#14 436.7     = note: see issue #74465 <https://github.com/rust-lang/rust/issues/74465> for more information
#14 436.7     = note: this error originates in the macro `once_static_cloned` (in Nightly builds, run with -Z macro-backtrace for more info)
#14 436.7 
#14 436.7 For more information about this error, try `rustc --explain E0658`.
#14 436.7 error: could not compile `subxt-signer` due to 12 previous errors
#14 436.7 warning: build failed, waiting for other jobs to finish...
#14 624.4 error: failed to compile `cargo-contract v3.1.0 (https://github.com/paritytech/cargo-contract?tag=v3.1.0#41230157)`, intermediate artifacts can be found at `/tmp/cargo-installxNPyth`

To Reproduce
Steps to reproduce the behavior:

  1. Run cargo install --git https://github.com/paritytech/cargo-contract --locked --tag v3.1.0 --force

Expected behavior
Execute with no error.

Environment (please complete the following information):

  • OS: Ubuntu 22
  • rustc 1.69.0
@ascjones
Copy link
Collaborator

We have added a dependency to the new subxt-signer crate which uses OnceCell which was only stablized in 1.70. So you should be able to compile it with this toolchain.

However I recognise that you may then have to switch back to 1.69 in order to build contracts compatible with older versions of pallet-contracts (< polkadot-1.0.0) branch. Let me know if that works (installing cargo-contract with 1.70 and then switching back to 1.69 for building contracts.

@ascjones
Copy link
Collaborator

I have yanked 3.1.0 because of this and other issues. If you want to work with Rust 1.69 you should use the previous 3.0.1 release.

I will replaced the 3.1.0 release with a 4.0.0-alpha release for those wanting to use Rust >= 1.70 #1243

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

2 participants