use-ink / cargo-contract

Setup and deployment tool for developing Wasm based smart contracts via ink!
GNU General Public License v3.0
239 stars 116 forks source link

Error installing cargo-contract with rustc version 1.68.0 #1301

Closed perrornet closed 10 months ago

perrornet commented 10 months ago

Describe the bug cargo install --git https://github.com/paritytech/cargo-contract --tag v2.2.1 produces “package clap_lex v0.5.1 cannot be built because it requires rustc 1.70.0 or newer, while the currently active rustc version is 1.68.0” error.

To Reproduce dockerfile:

ARG RUST_VERSION="1.68.0"
FROM rust:$RUST_VERSION as base
ARG TOOLCHAIN=stable
ARG COMPILER_TAG="v2.2.1"
ARG NIGHTLY="nightly-x86_64-unknown-linux-gnu"

LABEL RUST_VERSION=$RUST_VERSION
LABEL TOOLCHAIN=$TOOLCHAIN
LABEL COMPILER_TAG=$COMPILER_TAG
WORKDIR /app
# Prepare
RUN rustup toolchain install $TOOLCHAIN
RUN apt update -y
RUN apt install clang -y
RUN rustup toolchain install nightly
RUN rustup component add rust-src
RUN rustup component add rust-src --toolchain $NIGHTLY
RUN cargo install --git https://github.com/paritytech/cargo-contract --tag $COMPILER_TAG
RUN apt clean
RUN rm -rf /var/lib/apt/lists/*

WORKDIR /builds

ENV CARGO_TARGET_DIR="/target"

# Pre-build ink! dependencies
RUN cargo contract new contract
RUN cd contract && cargo contract build
RUN rm -rf /target/ink/contract.json
RUN rm -rf /builds/contract/*

WORKDIR /builds/contract

The build command is docker build -t test .

Screenshots

Environment (please complete the following information):

perrornet commented 10 months ago

this is build log:

Started build docker image.
 Docker Image Name: test:amd64-stable-1.68.0-v2.2.1
 Sending build context to Docker daemon  8.192kB
 Step 1/25 : ARG RUST_VERSION="1.68.0"
 Step 2/25 : FROM rust:$RUST_VERSION as base
 1.68.0: Pulling from library/rust
 3e440a704568: Pulling fs layer
 68a71c865a2c: Pulling fs layer
 670730c27c2e: Pulling fs layer
 5a7a2c95f0f8: Pulling fs layer
 6d627e120214: Pulling fs layer
 c664c33d5a66: Pulling fs layer
 5a7a2c95f0f8: Waiting
 6d627e120214: Waiting
 c664c33d5a66: Waiting
 68a71c865a2c: Download complete
 670730c27c2e: Verifying Checksum
 670730c27c2e: Download complete
 3e440a704568: Verifying Checksum
 3e440a704568: Download complete
 5a7a2c95f0f8: Verifying Checksum
 5a7a2c95f0f8: Download complete
 6d627e120214: Verifying Checksum
 6d627e120214: Download complete
 3e440a704568: Pull complete
 68a71c865a2c: Pull complete
 670730c27c2e: Pull complete
 c664c33d5a66: Verifying Checksum
 c664c33d5a66: Download complete
 5a7a2c95f0f8: Pull complete
 6d627e120214: Pull complete
 c664c33d5a66: Pull complete
 Digest: sha256:e10f1e351cb58f164d0e89a3c2b623ae8e2757bee0311110052420709307d6ea
 Status: Downloaded newer image for rust:1.68.0
  ---> 666e31cb1482
 Step 3/25 : ARG TOOLCHAIN=stable
  ---> Running in 2c6c8c41ee5c
 Removing intermediate container 2c6c8c41ee5c
  ---> 307c83ade28e
 Step 4/25 : ARG COMPILER_TAG="v2.1.0"
  ---> Running in 91352705c371
 Removing intermediate container 91352705c371
  ---> bbb10b69fe69
 Step 5/25 : ARG NIGHTLY="nightly-x86_64-unknown-linux-gnu"
  ---> Running in 7ac55d9ec5a1
 Removing intermediate container 7ac55d9ec5a1
  ---> bd82c928524f
 Step 6/25 : LABEL RUST_VERSION=$RUST_VERSION
  ---> Running in bfc2a28b36cc
 Removing intermediate container bfc2a28b36cc
  ---> 005800fa9c18
 Step 7/25 : LABEL TOOLCHAIN=$TOOLCHAIN
  ---> Running in 459a8396d9e5
 Removing intermediate container 459a8396d9e5
  ---> 137b6f2c5ea9
 Step 8/25 : LABEL COMPILER_TAG=$COMPILER_TAG
  ---> Running in 02ce465df012
 Removing intermediate container 02ce465df012
  ---> cc9338c6205d
 Step 9/25 : WORKDIR /app
  ---> Running in 4f976fe7575e
 Removing intermediate container 4f976fe7575e
  ---> 04f37d9d081e
 Step 10/25 : RUN rustup toolchain install $TOOLCHAIN
  ---> Running in 6fde9067e495
 info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
 info: latest update on 2023-08-24, rust version 1.72.0 (5680fa18f 2023-08-23)
 info: downloading component 'cargo'
 info: downloading component 'rust-std'
 info: downloading component 'rustc'
 info: installing component 'cargo'
 info: installing component 'rust-std'
 info: installing component 'rustc'

   stable-x86_64-unknown-linux-gnu installed - rustc 1.72.0 (5680fa18f 2023-08-23)
 info: checking for self-updates
 info: downloading self-update
 Removing intermediate container 6fde9067e495
  ---> 1110fc1dcf93
 Step 11/25 : RUN apt update -y
  ---> Running in 7e90b32e8898

 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
 Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
 Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8183 kB]
 Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [245 kB]
 Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [17.5 kB]
 Fetched 8653 kB in 1s (5783 kB/s)
 Reading package lists...
 Building dependency tree...
 Reading state information...
 41 packages can be upgraded. Run 'apt list --upgradable' to see them.
 Removing intermediate container 7e90b32e8898
  ---> 43638df93c29
 Step 12/25 : RUN apt install clang -y
  ---> Running in d6ebbf4ba40b

 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
 Reading package lists...
 Building dependency tree...
 Reading state information...
 The following additional packages will be installed:
   binfmt-support clang-11 lib32gcc-s1 lib32stdc++6 libc-dev-bin libc6
   libc6-dev libc6-i386 libclang-common-11-dev libclang-cpp11 libclang1-11
   libgc1 libllvm11 libobjc-10-dev libobjc4 libomp-11-dev libomp5-11 libpfm4
   libpipeline1 libz3-4 libz3-dev llvm-11 llvm-11-dev llvm-11-runtime
   llvm-11-tools python3-pkg-resources python3-pygments python3-yaml
 Suggested packages:
   clang-11-doc glibc-doc libc-l10n locales manpages-dev libomp-11-doc
   llvm-11-doc python3-setuptools python-pygments-doc ttf-bitstream-vera
 Recommended packages:
   manpages manpages-dev libc-devtools libnss-nis libnss-nisplus
 The following NEW packages will be installed:
   binfmt-support clang clang-11 lib32gcc-s1 lib32stdc++6 libc6-i386
   libclang-common-11-dev libclang-cpp11 libclang1-11 libgc1 libllvm11
   libobjc-10-dev libobjc4 libomp-11-dev libomp5-11 libpfm4 libpipeline1
   libz3-4 libz3-dev llvm-11 llvm-11-dev llvm-11-runtime llvm-11-tools
   python3-pkg-resources python3-pygments python3-yaml
 The following packages will be upgraded:
   libc-dev-bin libc6 libc6-dev
 3 upgraded, 26 newly installed, 0 to remove and 38 not upgraded.
 Need to get 93.1 MB of archives.
 After this operation, 524 MB of additional disk space will be used.
 Get:1 http://deb.debian.org/debian bullseye/main amd64 libc6-dev amd64 2.31-13+deb11u6 [2360 kB]
 Get:2 http://deb.debian.org/debian bullseye/main amd64 libc-dev-bin amd64 2.31-13+deb11u6 [276 kB]
 Get:3 http://deb.debian.org/debian bullseye/main amd64 libc6 amd64 2.31-13+deb11u6 [2827 kB]
 Get:4 http://deb.debian.org/debian bullseye/main amd64 libpipeline1 amd64 1.5.3-1 [34.3 kB]
 Get:5 http://deb.debian.org/debian bullseye/main amd64 binfmt-support amd64 2.2.1-1+deb11u1 [66.8 kB]
 Get:6 http://deb.debian.org/debian bullseye/main amd64 libz3-4 amd64 4.8.10-1 [6949 kB]
 Get:7 http://deb.debian.org/debian bullseye/main amd64 libllvm11 amd64 1:11.0.1-2 [17.9 MB]
 Get:8 http://deb.debian.org/debian bullseye/main amd64 libclang-cpp11 amd64 1:11.0.1-2 [9632 kB]
 Get:9 http://deb.debian.org/debian bullseye/main amd64 libgc1 amd64 1:8.0.4-3 [239 kB]
 Get:10 http://deb.debian.org/debian bullseye/main amd64 libobjc4 amd64 10.2.1-6 [41.8 kB]
 Get:11 http://deb.debian.org/debian bullseye/main amd64 libobjc-10-dev amd64 10.2.1-6 [170 kB]
 Get:12 http://deb.debian.org/debian bullseye/main amd64 libc6-i386 amd64 2.31-13+deb11u6 [2615 kB]
 Get:13 http://deb.debian.org/debian bullseye/main amd64 lib32gcc-s1 amd64 10.2.1-6 [49.4 kB]
 Get:14 http://deb.debian.org/debian bullseye/main amd64 lib32stdc++6 amd64 10.2.1-6 [510 kB]
 Get:15 http://deb.debian.org/debian bullseye/main amd64 libclang-common-11-dev amd64 1:11.0.1-2 [4922 kB]
 Get:16 http://deb.debian.org/debian bullseye/main amd64 libclang1-11 amd64 1:11.0.1-2 [5521 kB]
 Get:17 http://deb.debian.org/debian bullseye/main amd64 clang-11 amd64 1:11.0.1-2 [109 kB]
 Get:18 http://deb.debian.org/debian bullseye/main amd64 clang amd64 1:11.0-51+nmu5 [8872 B]
 Get:19 http://deb.debian.org/debian bullseye/main amd64 libomp5-11 amd64 1:11.0.1-2 [346 kB]
 Get:20 http://deb.debian.org/debian bullseye/main amd64 libomp-11-dev amd64 1:11.0.1-2 [94.1 kB]
 Get:21 http://deb.debian.org/debian bullseye/main amd64 libpfm4 amd64 4.11.1+git32-gd0b85fb-1 [286 kB]
 Get:22 http://deb.debian.org/debian bullseye/main amd64 libz3-dev amd64 4.8.10-1 [90.8 kB]
 Get:23 http://deb.debian.org/debian bullseye/main amd64 llvm-11-runtime amd64 1:11.0.1-2 [212 kB]
 Get:24 http://deb.debian.org/debian bullseye/main amd64 llvm-11 amd64 1:11.0.1-2 [8463 kB]
 Get:25 http://deb.debian.org/debian bullseye/main amd64 python3-pkg-resources all 52.0.0-4 [190 kB]
 Get:26 http://deb.debian.org/debian bullseye/main amd64 python3-pygments all 2.7.1+dfsg-2.1 [657 kB]
 Get:27 http://deb.debian.org/debian bullseye/main amd64 python3-yaml amd64 5.3.1-5 [138 kB]
 Get:28 http://deb.debian.org/debian bullseye/main amd64 llvm-11-tools amd64 1:11.0.1-2 [373 kB]
 Get:29 http://deb.debian.org/debian bullseye/main amd64 llvm-11-dev amd64 1:11.0.1-2 [28.0 MB]
 debconf: delaying package configuration, since apt-utils is not installed
 Fetched 93.1 MB in 1s (62.5 MB/s)
 [614B blob data]
 Preparing to unpack .../libc6-dev_2.31-13+deb11u6_amd64.deb ...
 Unpacking libc6-dev:amd64 (2.31-13+deb11u6) over (2.31-13+deb11u5) ...
 Preparing to unpack .../libc-dev-bin_2.31-13+deb11u6_amd64.deb ...
 Unpacking libc-dev-bin (2.31-13+deb11u6) over (2.31-13+deb11u5) ...
 Preparing to unpack .../libc6_2.31-13+deb11u6_amd64.deb ...
 debconf: unable to initialize frontend: Dialog
 debconf: (TERM is not set, so the dialog frontend is not usable.)
 debconf: falling back to frontend: Readline
 debconf: unable to initialize frontend: Dialog
 debconf: (TERM is not set, so the dialog frontend is not usable.)
 debconf: falling back to frontend: Readline
 Unpacking libc6:amd64 (2.31-13+deb11u6) over (2.31-13+deb11u5) ...
 Setting up libc6:amd64 (2.31-13+deb11u6) ...
 debconf: unable to initialize frontend: Dialog
 debconf: (TERM is not set, so the dialog frontend is not usable.)
 debconf: falling back to frontend: Readline
 Selecting previously unselected package libpipeline1:amd64.
 [614B blob data]
 Preparing to unpack .../00-libpipeline1_1.5.3-1_amd64.deb ...
 Unpacking libpipeline1:amd64 (1.5.3-1) ...
 Selecting previously unselected package binfmt-support.
 Preparing to unpack .../01-binfmt-support_2.2.1-1+deb11u1_amd64.deb ...
 Unpacking binfmt-support (2.2.1-1+deb11u1) ...
 Selecting previously unselected package libz3-4:amd64.
 Preparing to unpack .../02-libz3-4_4.8.10-1_amd64.deb ...
 Unpacking libz3-4:amd64 (4.8.10-1) ...
 Selecting previously unselected package libllvm11:amd64.
 Preparing to unpack .../03-libllvm11_1%3a11.0.1-2_amd64.deb ...
 Unpacking libllvm11:amd64 (1:11.0.1-2) ...
 Selecting previously unselected package libclang-cpp11.
 Preparing to unpack .../04-libclang-cpp11_1%3a11.0.1-2_amd64.deb ...
 Unpacking libclang-cpp11 (1:11.0.1-2) ...
 Selecting previously unselected package libgc1:amd64.
 Preparing to unpack .../05-libgc1_1%3a8.0.4-3_amd64.deb ...
 Unpacking libgc1:amd64 (1:8.0.4-3) ...
 Selecting previously unselected package libobjc4:amd64.
 Preparing to unpack .../06-libobjc4_10.2.1-6_amd64.deb ...
 Unpacking libobjc4:amd64 (10.2.1-6) ...
 Selecting previously unselected package libobjc-10-dev:amd64.
 Preparing to unpack .../07-libobjc-10-dev_10.2.1-6_amd64.deb ...
 Unpacking libobjc-10-dev:amd64 (10.2.1-6) ...
 Selecting previously unselected package libc6-i386.
 Preparing to unpack .../08-libc6-i386_2.31-13+deb11u6_amd64.deb ...
 Unpacking libc6-i386 (2.31-13+deb11u6) ...
 Selecting previously unselected package lib32gcc-s1.
 Preparing to unpack .../09-lib32gcc-s1_10.2.1-6_amd64.deb ...
 Unpacking lib32gcc-s1 (10.2.1-6) ...
 Selecting previously unselected package lib32stdc++6.
 Preparing to unpack .../10-lib32stdc++6_10.2.1-6_amd64.deb ...
 Unpacking lib32stdc++6 (10.2.1-6) ...
 Selecting previously unselected package libclang-common-11-dev.
 Preparing to unpack .../11-libclang-common-11-dev_1%3a11.0.1-2_amd64.deb ...
 Unpacking libclang-common-11-dev (1:11.0.1-2) ...
 Selecting previously unselected package libclang1-11.
 Preparing to unpack .../12-libclang1-11_1%3a11.0.1-2_amd64.deb ...
 Unpacking libclang1-11 (1:11.0.1-2) ...
 Selecting previously unselected package clang-11.
 Preparing to unpack .../13-clang-11_1%3a11.0.1-2_amd64.deb ...
 Unpacking clang-11 (1:11.0.1-2) ...
 Selecting previously unselected package clang.
 Preparing to unpack .../14-clang_1%3a11.0-51+nmu5_amd64.deb ...
 Unpacking clang (1:11.0-51+nmu5) ...
 Selecting previously unselected package libomp5-11:amd64.
 Preparing to unpack .../15-libomp5-11_1%3a11.0.1-2_amd64.deb ...
 Unpacking libomp5-11:amd64 (1:11.0.1-2) ...
 Selecting previously unselected package libomp-11-dev.
 Preparing to unpack .../16-libomp-11-dev_1%3a11.0.1-2_amd64.deb ...
 Unpacking libomp-11-dev (1:11.0.1-2) ...
 Selecting previously unselected package libpfm4:amd64.
 Preparing to unpack .../17-libpfm4_4.11.1+git32-gd0b85fb-1_amd64.deb ...
 Unpacking libpfm4:amd64 (4.11.1+git32-gd0b85fb-1) ...
 Selecting previously unselected package libz3-dev:amd64.
 Preparing to unpack .../18-libz3-dev_4.8.10-1_amd64.deb ...
 Unpacking libz3-dev:amd64 (4.8.10-1) ...
 Selecting previously unselected package llvm-11-runtime.
 Preparing to unpack .../19-llvm-11-runtime_1%3a11.0.1-2_amd64.deb ...
 Unpacking llvm-11-runtime (1:11.0.1-2) ...
 Selecting previously unselected package llvm-11.
 Preparing to unpack .../20-llvm-11_1%3a11.0.1-2_amd64.deb ...
 Unpacking llvm-11 (1:11.0.1-2) ...
 Selecting previously unselected package python3-pkg-resources.
 Preparing to unpack .../21-python3-pkg-resources_52.0.0-4_all.deb ...
 Unpacking python3-pkg-resources (52.0.0-4) ...
 Selecting previously unselected package python3-pygments.
 Preparing to unpack .../22-python3-pygments_2.7.1+dfsg-2.1_all.deb ...
 Unpacking python3-pygments (2.7.1+dfsg-2.1) ...
 Selecting previously unselected package python3-yaml.
 Preparing to unpack .../23-python3-yaml_5.3.1-5_amd64.deb ...
 Unpacking python3-yaml (5.3.1-5) ...
 Selecting previously unselected package llvm-11-tools.
 Preparing to unpack .../24-llvm-11-tools_1%3a11.0.1-2_amd64.deb ...
 Unpacking llvm-11-tools (1:11.0.1-2) ...
 Selecting previously unselected package llvm-11-dev.
 Preparing to unpack .../25-llvm-11-dev_1%3a11.0.1-2_amd64.deb ...
 Unpacking llvm-11-dev (1:11.0.1-2) ...
 Setting up python3-pkg-resources (52.0.0-4) ...
 Setting up libpipeline1:amd64 (1.5.3-1) ...
 Setting up python3-yaml (5.3.1-5) ...
 Setting up python3-pygments (2.7.1+dfsg-2.1) ...
 Setting up libz3-4:amd64 (4.8.10-1) ...
 Setting up libpfm4:amd64 (4.11.1+git32-gd0b85fb-1) ...
 Setting up libllvm11:amd64 (1:11.0.1-2) ...
 Setting up libclang1-11 (1:11.0.1-2) ...
 Setting up binfmt-support (2.2.1-1+deb11u1) ...
 invoke-rc.d: could not determine current runlevel
 invoke-rc.d: policy-rc.d denied execution of start.
 Setting up libgc1:amd64 (1:8.0.4-3) ...
 Setting up libomp5-11:amd64 (1:11.0.1-2) ...
 Setting up libc6-i386 (2.31-13+deb11u6) ...
 Setting up libc-dev-bin (2.31-13+deb11u6) ...
 Setting up libz3-dev:amd64 (4.8.10-1) ...
 Setting up llvm-11-runtime (1:11.0.1-2) ...
 Setting up libomp-11-dev (1:11.0.1-2) ...
 Setting up llvm-11-tools (1:11.0.1-2) ...
 Setting up llvm-11 (1:11.0.1-2) ...
 Setting up libobjc4:amd64 (10.2.1-6) ...
 Setting up libclang-cpp11 (1:11.0.1-2) ...
 Setting up lib32gcc-s1 (10.2.1-6) ...
 Setting up lib32stdc++6 (10.2.1-6) ...
 Setting up libobjc-10-dev:amd64 (10.2.1-6) ...
 Setting up libclang-common-11-dev (1:11.0.1-2) ...
 Setting up libc6-dev:amd64 (2.31-13+deb11u6) ...
 Setting up clang-11 (1:11.0.1-2) ...
 Setting up llvm-11-dev (1:11.0.1-2) ...
 Setting up clang (1:11.0-51+nmu5) ...
 Processing triggers for libc-bin (2.31-13+deb11u5) ...
 Removing intermediate container d6ebbf4ba40b
  ---> ea11f0074c80
 Step 13/25 : RUN rustup toolchain install nightly
  ---> Running in 205900495f45
 info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
 info: latest update on 2023-08-28, rust version 1.74.0-nightly (8550f15e1 2023-08-27)
 info: downloading component 'cargo'
 info: downloading component 'rust-std'
 info: downloading component 'rustc'
 info: installing component 'cargo'
 info: installing component 'rust-std'
 info: installing component 'rustc'

   nightly-x86_64-unknown-linux-gnu installed - rustc 1.74.0-nightly (8550f15e1 2023-08-27)
 info: checking for self-update
 Removing intermediate container 205900495f45
  ---> 4ba10c7d5d51
 Step 14/25 : RUN rustup component add rust-src
  ---> Running in 6092133e1e47
 info: downloading component 'rust-src'
 info: installing component 'rust-src'
 Removing intermediate container 6092133e1e47
  ---> b8aad841bc6d
 Step 15/25 : RUN rustup component add rust-src --toolchain $NIGHTLY
  ---> Running in ada6b56a92b4
 info: downloading component 'rust-src'
 info: installing component 'rust-src'
 Removing intermediate container ada6b56a92b4
  ---> c782b918a157
 Step 16/25 : RUN cargo install --git https://github.com/paritytech/cargo-contract --tag $COMPILER_TAG
  ---> Running in 0b959925a7a5
     Updating git repository `https://github.com/paritytech/cargo-contract`
   Installing cargo-contract v2.2.1 (https://github.com/paritytech/cargo-contract?tag=v2.2.1#91b5a861)
     Updating crates.io index
  Downloading crates ...
   Downloaded cargo_metadata v0.15.4
   Downloaded jsonrpsee-client-transport v0.18.2
   Downloaded ink_storage_traits v4.3.0
   Downloaded derive_more v0.99.17
   Downloaded fastrand v2.0.0
   Downloaded adler v1.0.2
   Downloaded scratch v1.0.7
   Downloaded stable_deref_trait v1.2.0
   Downloaded sp-wasm-interface v13.0.0
   Downloaded pin-project v1.1.3
   Downloaded cc v1.0.83
   Downloaded proc-macro-crate v0.1.5
   Downloaded sp-std v7.0.0
   Downloaded byte-tools v0.3.1
   Downloaded sp-debug-derive v7.0.0
   Downloaded ppv-lite86 v0.2.17
   Downloaded futures-lite v1.13.0
   Downloaded substrate-bip39 v0.4.4
   Downloaded sp-runtime-interface-proc-macro v10.0.0
   Downloaded ss58-registry v1.43.0
   Downloaded autocfg v1.1.0
   Downloaded sha2 v0.8.2
   Downloaded sp-keystore v0.26.0
   Downloaded unicode-xid v0.2.4
   Downloaded tower-service v0.3.2
   Downloaded trie-root v0.18.0
   Downloaded tracing-serde v0.1.3
   Downloaded wasmtime-asm-macros v6.0.2
   Downloaded tempfile v3.8.0
   Downloaded signature v1.6.4
   Downloaded static_assertions v1.1.0
   Downloaded tap v1.0.1
   Downloaded toml_datetime v0.6.3
   Downloaded unicode-width v0.1.10
   Downloaded strsim v0.10.0
   Downloaded rustversion v1.0.14
   Downloaded sp-arithmetic v15.0.0
   Downloaded socket2 v0.5.3
   Downloaded sp-tracing v9.0.0
   Downloaded thread_local v1.1.7
   Downloaded try-lock v0.2.4
   Downloaded untrusted v0.7.1
   Downloaded sp-core v20.0.0
   Downloaded soketto v0.7.1
   Downloaded wasmtime-jit-debug v6.0.2
   Downloaded bytecheck_derive v0.6.11
   Downloaded tinyvec_macros v0.1.1
   Downloaded smallvec v1.11.0
   Downloaded sp-weights v19.0.0
   Downloaded sp-core-hashing v8.0.0
   Downloaded wasm-opt-cxx-sys v0.112.0
   Downloaded which v4.4.0
   Downloaded block-buffer v0.9.0
   Downloaded sp-panic-handler v7.0.0
   Downloaded borsh-derive-internal v0.10.3
   Downloaded base58 v0.2.0
   Downloaded borsh-schema-derive-internal v0.10.3
   Downloaded thiserror-impl v1.0.47
   Downloaded anstyle-query v1.0.0
   Downloaded wasmtime-jit-icache-coherence v6.0.2
   Downloaded strum_macros v0.24.3
   Downloaded sp-runtime-interface v16.0.0
   Downloaded rustls-native-certs v0.6.3
   Downloaded cfg-if v1.0.0
   Downloaded atomic-waker v1.1.1
   Downloaded brownstone v1.1.0
   Downloaded wasmi-validation v0.5.0
   Downloaded want v0.3.1
   Downloaded rustc-hex v2.1.0
   Downloaded async-channel v1.9.0
   Downloaded camino v1.1.6
   Downloaded substrate-build-script-utils v5.0.0
   Downloaded uint v0.9.5
   Downloaded zeroize v1.6.0
   Downloaded sha-1 v0.9.8
   Downloaded simdutf8 v0.1.4
   Downloaded sp-application-crypto v22.0.0
   Downloaded wasmtime-types v6.0.2
   Downloaded slab v0.4.9
   Downloaded tokio-stream v0.1.14
   Downloaded tracing-log v0.1.3
   Downloaded Inflector v0.11.4
   Downloaded serde_spanned v0.6.3
   Downloaded zeroize_derive v1.4.2
   Downloaded twox-hash v1.6.3
   Downloaded colored v2.0.4
   Downloaded concurrent-queue v2.2.0
   Downloaded bincode v1.3.3
   Downloaded clap_lex v0.5.1
   Downloaded subtle v2.4.1
   Downloaded walkdir v2.3.3
   Downloaded futures-macro v0.3.28
   Downloaded version_check v0.9.4
   Downloaded kv-log-macro v1.0.7
   Downloaded termcolor v1.2.0
   Downloaded sp-trie v21.0.0
   Downloaded spin v0.5.2
   Downloaded typenum v1.16.0
   Downloaded subxt v0.28.0
   Downloaded thiserror v1.0.47
   Downloaded fake-simd v0.1.2
   Downloaded async-attributes v1.1.2
   Downloaded async-executor v1.5.1
   Downloaded bounded-collections v0.1.8
   Downloaded wasmtime-jit v6.0.2
   Downloaded sp-runtime v23.0.0
   Downloaded socket2 v0.4.9
   Downloaded addr2line v0.21.0
   Downloaded anstyle-parse v0.2.1
   Downloaded unicode-bidi v0.3.13
   Downloaded async-trait v0.1.73
   Downloaded wasmi_core v0.2.1
   Downloaded num-integer v0.1.45
   Downloaded bs58 v0.4.0
   Downloaded addr2line v0.17.0
   Downloaded blake2b_simd v1.0.1
   Downloaded tracing-attributes v0.1.26
   Downloaded tokio-rustls v0.24.1
   Downloaded futures-io v0.3.28
   Downloaded fallible-iterator v0.2.0
   Downloaded unicode-ident v1.0.11
   Downloaded sharded-slab v0.1.4
   Downloaded byte-slice-cast v1.2.2
   Downloaded toml v0.7.6
   Downloaded sp-state-machine v0.27.0
   Downloaded bitflags v2.4.0
   Downloaded anstream v0.5.0
   Downloaded tiny-bip39 v1.0.0
   Downloaded ahash v0.7.6
   Downloaded anyhow v1.0.75
   Downloaded nom-supreme v0.7.0
   Downloaded tinyvec v1.6.0
   Downloaded wasmi v0.13.2
   Downloaded tracing-core v0.1.31
   Downloaded clap v4.4.0
   Downloaded ahash v0.8.3
   Downloaded bytes v1.4.0
   Downloaded blocking v1.3.1
   Downloaded downcast-rs v1.2.0
   Downloaded trie-db v0.27.1
   Downloaded backtrace v0.3.69
   Downloaded codespan-reporting v0.11.1
   Downloaded async-io v1.13.0
   Downloaded zip v0.6.6
   Downloaded getrandom v0.2.10
   Downloaded base64 v0.13.1
   Downloaded jsonrpsee-client-transport v0.16.3
   Downloaded base64 v0.21.3
   Downloaded impl-codec v0.6.0
   Downloaded toml v0.5.11
   Downloaded async-task v4.4.0
   Downloaded borsh v0.10.3
   Downloaded constant_time_eq v0.2.6
   Downloaded arrayvec v0.5.2
   Downloaded sp-io v22.0.0
   Downloaded subxt-codegen v0.28.0
   Downloaded async-lock v2.8.0
   Downloaded arrayvec v0.7.4
   Downloaded tracing v0.1.37
   Downloaded ansi_term v0.12.1
   Downloaded array-bytes v4.2.0
   Downloaded clap_derive v4.4.0
   Downloaded async-global-executor v2.3.1
   Downloaded darling_core v0.14.4
   Downloaded wasm-opt v0.112.0
   Downloaded wasmtime-environ v6.0.2
   Downloaded regex-automata v0.1.10
   Downloaded ed25519-zebra v3.1.0
   Downloaded tracing-subscriber v0.3.17
   Downloaded jsonrpsee-core v0.16.3
   Downloaded toml_edit v0.19.14
   Downloaded blake2 v0.10.6
   Downloaded anstyle v1.0.2
   Downloaded target-lexicon v0.12.11
   Downloaded winnow v0.5.15
   Downloaded tokio-util v0.7.8
   Downloaded wasmparser v0.100.0
   Downloaded unicode-normalization v0.1.22
   Downloaded cargo-platform v0.1.3
   Downloaded wasmtime-runtime v6.0.2
   Downloaded block-buffer v0.10.4
   Downloaded aho-corasick v1.0.4
   Downloaded clap_builder v4.4.0
   Downloaded sha2 v0.9.9
   Downloaded chrono v0.4.26
   Downloaded bitflags v1.3.2
   Downloaded tracing-subscriber v0.2.25
   Downloaded byteorder v1.4.3
   Downloaded arrayref v0.3.7
   Downloaded colorchoice v1.0.0
   Downloaded wasmtime v6.0.2
   Downloaded tokio-macros v2.1.0
   Downloaded sp-externalities v0.18.0
   Downloaded bytecheck v0.6.11
   Downloaded sp-storage v12.0.0
   Downloaded sha2 v0.10.7
   Downloaded beef v0.5.2
   Downloaded webpki-roots v0.25.2
   Downloaded webpki-roots v0.23.1
   Downloaded block-padding v0.1.5
   Downloaded borsh-derive v0.10.3
   Downloaded strum v0.24.1
   Downloaded block-buffer v0.7.3
   Downloaded subxt-macro v0.28.0
   Downloaded serde_json v1.0.105
   Downloaded bitvec v1.0.1
   Downloaded async-std v1.12.0
   Downloaded syn v1.0.109
   Downloaded syn v2.0.29
   Downloaded memfd v0.6.3
   Downloaded pallet-contracts-primitives v23.0.0
   Downloaded nohash-hasher v0.2.0
   Downloaded rand_chacha v0.3.1
   Downloaded proc-macro-error v1.0.4
   Downloaded pin-project-internal v1.1.3
   Downloaded gimli v0.26.2
   Downloaded mio v0.8.8
   Downloaded getrandom v0.1.16
   Downloaded generic-array v0.14.7
   Downloaded wasm-opt-sys v0.112.0
   Downloaded scale-encode v0.1.2
   Downloaded utf8parse v0.2.1
   Downloaded current_platform v0.2.0
   Downloaded once_cell v1.18.0
   Downloaded scale-bits v0.3.0
   Downloaded keccak v0.1.4
   Downloaded num-traits v0.2.16
   Downloaded num_cpus v1.16.0
   Downloaded scale-encode v0.5.0
   Downloaded scale-decode-derive v0.5.0
   Downloaded hashbrown v0.14.0
   Downloaded tokio v1.32.0
   Downloaded value-bag v1.4.1
   Downloaded secp256k1 v0.27.0
   Downloaded futures-channel v0.3.28
   Downloaded ink_allocator v4.3.0
   Downloaded sha3 v0.10.8
   Downloaded rand v0.8.5
   Downloaded schnorrkel v0.9.1
   Downloaded futures-sink v0.3.28
   Downloaded fixed-hash v0.8.0
   Downloaded pin-project-lite v0.2.13
   Downloaded rustls-webpki v0.100.2
   Downloaded rustix v0.36.15
   Downloaded num-rational v0.4.1
   Downloaded sct v0.7.0
   Downloaded memory_units v0.4.0
   Downloaded wyz v0.5.1
   Downloaded rustls-webpki v0.101.4
   Downloaded xxhash-rust v0.8.6
   Downloaded regex-automata v0.3.7
   Downloaded serde v1.0.188
   Downloaded scale-info-derive v2.9.0
   Downloaded scale-bits v0.4.0
   Downloaded parking v2.1.0
   Downloaded libsecp256k1 v0.7.1
   Downloaded jsonrpsee-http-client v0.16.3
   Downloaded pbkdf2 v0.11.0
   Downloaded jsonrpsee v0.18.2
   Downloaded ink_env v4.3.0
   Downloaded is-terminal v0.4.9
   Downloaded jsonrpsee v0.16.3
   Downloaded curve25519-dalek v2.1.3
   Downloaded parity-wasm v0.45.0
   Downloaded hmac v0.11.0
   Downloaded crypto-common v0.1.6
   Downloaded regex v1.9.4
   Downloaded hyper v0.14.27
   Downloaded memory-db v0.32.0
   Downloaded matchers v0.1.0
   Downloaded ink_prelude v4.3.0
   Downloaded hmac v0.8.1
   Downloaded rand_chacha v0.2.2
   Downloaded miniz_oxide v0.7.1
   Downloaded rkyv_derive v0.7.42
   Downloaded proc-macro-crate v1.3.1
   Downloaded overload v0.1.1
   Downloaded fnv v1.0.7
   Downloaded ref-cast v1.0.20
   Downloaded crypto-mac v0.8.0
   Downloaded yap v0.10.0
   Downloaded rand_core v0.6.4
   Downloaded num-format v0.4.4
   Downloaded itoa v1.0.9
   Downloaded libc v0.2.147
   Downloaded secp256k1-sys v0.8.1
   Downloaded pin-utils v0.1.0
   Downloaded ptr_meta_derive v0.1.4
   Downloaded parking_lot v0.12.1
   Downloaded platforms v2.0.0
   Downloaded jobserver v0.1.26
   Downloaded parking_lot_core v0.9.8
   Downloaded rkyv v0.7.42
   Downloaded log v0.4.20
   Downloaded memchr v2.5.0
   Downloaded iana-time-zone v0.1.57
   Downloaded ident_case v1.0.1
   Downloaded jsonrpsee-core v0.18.2
   Downloaded same-file v1.0.6
   Downloaded rustc_version v0.4.0
   Downloaded libsecp256k1-core v0.3.0
   Downloaded serde_derive v1.0.188
   Downloaded semver v1.0.18
   Downloaded scale-value v0.7.0
   Downloaded hash-db v0.16.0
   Downloaded futures-executor v0.3.28
   Downloaded environmental v1.1.4
   Downloaded url v2.4.0
   Downloaded ryu v1.0.15
   Downloaded seahash v4.1.0
   Downloaded cpufeatures v0.2.9
   Downloaded http-body v0.4.5
   Downloaded darling v0.14.4
   Downloaded secrecy v0.8.0
   Downloaded cxxbridge-flags v1.0.106
   Downloaded dyn-clone v1.0.13
   Downloaded uuid v1.4.1
   Downloaded dyn-clonable-impl v0.9.0
   Downloaded hashbrown v0.12.3
   Downloaded rand_core v0.5.1
   Downloaded quote v1.0.33
   Downloaded scale-decode v0.9.0
   Downloaded libsecp256k1-gen-ecmult v0.3.0
   Downloaded idna v0.4.0
   Downloaded scale-encode-derive v0.1.2
   Downloaded openssl-probe v0.1.5
   Downloaded secp256k1 v0.24.3
   Downloaded rustc-demangle v0.1.23
   Downloaded derivative v2.2.0
   Downloaded event-listener v2.5.3
   Downloaded digest v0.9.0
   Downloaded libsecp256k1-gen-genmult v0.3.0
   Downloaded impl-trait-for-tuples v0.2.2
   Downloaded indexmap v2.0.0
   Downloaded scale-encode-derive v0.5.0
   Downloaded generic-array v0.12.4
   Downloaded hex v0.4.3
   Downloaded digest v0.8.1
   Downloaded percent-encoding v2.3.0
   Downloaded ed25519 v1.5.3
   Downloaded memoffset v0.6.5
   Downloaded escape8259 v0.5.2
   Downloaded hmac-drbg v0.3.0
   Downloaded fastrand v1.9.0
   Downloaded rustls v0.21.6
   Downloaded radium v0.7.0
   Downloaded crunchy v0.2.2
   Downloaded polling v2.8.0
   Downloaded scale-decode v0.5.0
   Downloaded crossbeam-utils v0.8.16
   Downloaded pbkdf2 v0.8.0
   Downloaded parity-scale-codec-derive v3.6.4
   Downloaded either v1.9.0
   Downloaded nu-ansi-term v0.46.0
   Downloaded linux-raw-sys v0.1.4
   Downloaded io-lifetimes v1.0.11
   Downloaded itertools v0.10.5
   Downloaded futures v0.3.28
   Downloaded scale-info v2.9.0
   Downloaded http v0.2.9
   Downloaded frame-metadata v15.1.0
   Downloaded subxt-metadata v0.28.0
   Downloaded ed25519-dalek v1.0.1
   Downloaded psm v0.1.21
   Downloaded link-cplusplus v1.0.9
   Downloaded heck v0.4.1
   Downloaded futures-core v0.3.28
   Downloaded futures-timer v3.0.2
   Downloaded jsonrpsee-ws-client v0.18.2
   Downloaded proc-macro-error-attr v1.0.4
   Downloaded ptr_meta v0.1.4
   Downloaded primitive-types v0.12.1
   Downloaded paste v1.0.14
   Downloaded indent_write v2.2.0
   Downloaded ink_engine v4.3.0
   Downloaded darling_macro v0.14.4
   Downloaded crc32fast v1.3.2
   Downloaded parity-scale-codec v3.6.4
   Downloaded rend v0.4.0
   Downloaded proc-macro2 v1.0.66
   Downloaded waker-fn v1.1.0
   Downloaded scopeguard v1.2.0
   Downloaded indexmap v1.9.3
   Downloaded integer-sqrt v0.1.5
   Downloaded merlin v2.0.1
   Downloaded ref-cast-impl v1.0.20
   Downloaded lock_api v0.4.10
   Downloaded jsonrpsee-types v0.18.2
   Downloaded hash256-std-hasher v0.15.2
   Downloaded cxx-build v1.0.106
   Downloaded equivalent v1.0.1
   Downloaded dyn-clonable v0.9.0
   Downloaded cranelift-entity v0.93.2
   Downloaded rust_decimal v1.32.0
   Downloaded opaque-debug v0.2.3
   Downloaded form_urlencoded v1.2.0
   Downloaded num-bigint v0.4.4
   Downloaded matchers v0.0.1
   Downloaded joinery v2.1.0
   Downloaded ink_metadata v4.3.0
   Downloaded impl-serde v0.4.0
   Downloaded opaque-debug v0.3.0
   Downloaded httparse v1.8.0
   Downloaded httpdate v1.0.3
   Downloaded hashbrown v0.13.2
   Downloaded ink_primitives v4.3.0
   Downloaded nom v7.1.3
   Downloaded minimal-lexical v0.2.1
   Downloaded rand v0.7.3
   Downloaded lazy_static v1.4.0
   Downloaded futures-task v0.3.28
   Downloaded funty v2.0.0
   Downloaded digest v0.10.7
   Downloaded hmac v0.12.1
   Downloaded crypto-mac v0.11.1
   Downloaded cpp_demangle v0.3.5
   Downloaded scale-decode-derive v0.9.0
   Downloaded jsonrpsee-types v0.16.3
   Downloaded rustls-pemfile v1.0.3
   Downloaded linux-raw-sys v0.4.5
   Downloaded h2 v0.3.21
   Downloaded gimli v0.28.0
   Downloaded object v0.32.0
   Downloaded schnellru v0.2.1
   Downloaded futures-util v0.3.28
   Downloaded cxx v1.0.106
   Downloaded rustix v0.38.9
   Downloaded cxxbridge-macro v1.0.106
   Downloaded libm v0.2.7
   Downloaded regex-syntax v0.7.5
   Downloaded regex-syntax v0.6.29
   Downloaded object v0.29.0
   Downloaded rustix v0.37.23
   Downloaded curve25519-dalek v3.2.0
   Downloaded secp256k1-sys v0.6.1
   Downloaded linux-raw-sys v0.3.8
   Downloaded rustc-hash v1.1.0
   Downloaded ring v0.16.20
   Downloaded hyper-rustls v0.24.1
 error: failed to compile `cargo-contract v2.2.1 (https://github.com/paritytech/cargo-contract?tag=v2.2.1#91b5a861)`, intermediate artifacts can be found at `/tmp/cargo-installn77BvJ`
 Caused by:
   package `clap_builder v4.4.0` cannot be built because it requires rustc 1.70.0 or newer, while the currently active rustc version is 1.68.0
   Either upgrade to rustc 1.70.0 or newer, or use
   cargo update -p clap_builder@4.4.0 --precise ver
   where `ver` is the latest version of `clap_builder` supporting rustc 1.68.0
 The command '/bin/sh -c cargo install --git https://github.com/paritytech/cargo-contract --tag $COMPILER_TAG' returned a non-zero code: 101
 instance init failed