This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
Error running docker-build #816
Open
Description
When I run the command "make docker-build" I get the following error:

I tried adding to the Dockerfile the following instructions:
RUN rustup toolchain install nightly-2022-05-24
RUN rustup toolchain install nightly-2022-05-24-x86_64-unknown-linux-gnu
RUN rustup component add rust-src --toolchain nightly-2022-05-24-x86_64-unknown-linux-gnu
RUN rustup component add rust-src --toolchain nightly-2022-05-24-aarch64-unknown-linux-gnu
But I also get another error:
DOCKER_BUILDKIT=0 docker build \
--tag ink-playground .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
Sending build context to Docker daemon 575.4MB
Step 1/11 : FROM rust:1.70.0 as base
---> 70be064a705a
Step 2/11 : WORKDIR /app
---> Using cache
---> f225f8c79f0d
Step 3/11 : COPY . .
---> Using cache
---> 9ac39b7b9c6b
Step 4/11 : RUN rustup toolchain install stable
---> Using cache
---> 172b905b078f
Step 5/11 : FROM base as frontend-rust-analyzer
---> 172b905b078f
Step 6/11 : RUN rustup toolchain install nightly-2022-05-24
---> Using cache
---> 5020111b5154
Step 7/11 : RUN rustup toolchain install nightly-2022-05-24-x86_64-unknown-linux-gnu
---> Using cache
---> 36cc62bb9710
Step 8/11 : RUN rustup component add rust-src --toolchain nightly-2022-05-24-x86_64-unknown-linux-gnu
---> Using cache
---> 3a73871e482d
Step 9/11 : RUN rustup component add rust-src --toolchain nightly-2022-05-24-aarch64-unknown-linux-gnu
---> Running in a5ea50e7a391
info: downloading component 'rust-src'
info: installing component 'rust-src'
Removing intermediate container a5ea50e7a391
---> 50cb7f001080
Step 10/11 : RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
---> Running in 5aa9760048b4
sh: 139: [: aarch64: unexpected operator
info: downloading wasm-pack
info: successfully installed wasm-pack to `/usr/local/cargo/bin/wasm-pack`
Removing intermediate container 5aa9760048b4
---> 789abc5dfa61
Step 11/11 : RUN cd crates/rust_analyzer_wasm && wasm-pack build --target web --out-dir ../../packages/ink-editor/pkg
---> Running in e11e7eaa4a58
[INFO]: Checking for the Wasm target...
info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
info: installing component 'rust-std' for 'wasm32-unknown-unknown'
[INFO]: Compiling to Wasm...
Downloading crates ...
Downloaded getopts v0.2.21
Downloaded addr2line v0.16.0
Downloaded cfg-if v0.1.10
Downloaded rustc-demangle v0.1.21
Downloaded object v0.26.2
Downloaded hashbrown v0.12.0
Downloaded unicode-width v0.1.8
Downloaded adler v0.2.3
Downloaded cc v1.0.69
Downloaded miniz_oxide v0.4.0
Downloaded memchr v2.4.1
Downloaded dlmalloc v0.2.3
Downloaded compiler_builtins v0.1.71
Downloaded libc v0.2.126
Downloaded gimli v0.25.0
Compiling compiler_builtins v0.1.71
Compiling core v0.0.0 (/usr/local/rustup/toolchains/nightly-2022-05-24-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
Compiling libc v0.2.126
Compiling cc v1.0.69
Compiling memchr v2.4.1
Compiling dlmalloc v0.2.3
Compiling std v0.0.0 (/usr/local/rustup/toolchains/nightly-2022-05-24-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/std)
Compiling proc-macro2 v1.0.56
Compiling unicode-ident v1.0.8
Compiling quote v1.0.26
Compiling autocfg v1.1.0
Compiling log v0.4.18
Compiling wasm-bindgen-shared v0.2.86
Compiling libc v0.2.141
Compiling bumpalo v3.12.0
Compiling once_cell v1.17.1
Compiling wasm-bindgen v0.2.86
Compiling serde v1.0.164
Compiling crossbeam-utils v0.8.15
Compiling syn v1.0.109
Compiling parking_lot_core v0.9.7
Compiling parking_lot_core v0.8.6
Compiling unicode-segmentation v1.10.1
Compiling fst v0.4.7
Compiling unicode-xid v0.2.4
Compiling rayon-core v1.11.0
Compiling cc v1.0.79
Compiling version_check v0.9.4
Compiling memchr v2.5.0
Compiling pulldown-cmark v0.9.2
Compiling serde_json v1.0.97
Compiling indexmap v1.9.3
Compiling lock_api v0.4.9
Compiling memoffset v0.8.0
Compiling crossbeam-epoch v0.9.14
Compiling unwind v0.0.0 (/usr/local/rustup/toolchains/nightly-2022-05-24-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/unwind)
Compiling heck v0.3.3
Compiling unicase v2.6.0
Compiling psm v0.1.21
Compiling stacker v0.1.15
Compiling syn v2.0.13
Compiling synstructure v0.12.6
Compiling wasm-bindgen-backend v0.2.86
Compiling salsa-macros v0.17.0-pre.2
Compiling chalk-derive v0.83.0
Compiling wasm-bindgen-macro-support v0.2.86
Compiling serde_derive v1.0.164
Compiling tracing-attributes v0.1.24
Compiling serde_repr v0.1.12
Compiling wasm-bindgen-macro v0.2.86
Compiling rustc-std-workspace-core v1.99.0 (/usr/local/rustup/toolchains/nightly-2022-05-24-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
Compiling alloc v0.0.0 (/usr/local/rustup/toolchains/nightly-2022-05-24-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc)
Compiling cfg-if v0.1.10
Compiling adler v0.2.3
Compiling rustc-demangle v0.1.21
Compiling rustc-std-workspace-alloc v1.99.0 (/usr/local/rustup/toolchains/nightly-2022-05-24-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-alloc)
Compiling panic_abort v0.0.0 (/usr/local/rustup/toolchains/nightly-2022-05-24-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_abort)
Compiling panic_unwind v0.0.0 (/usr/local/rustup/toolchains/nightly-2022-05-24-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/panic_unwind)
Compiling gimli v0.25.0
Compiling miniz_oxide v0.4.0
Compiling hashbrown v0.12.0
Compiling std_detect v0.1.5 (/usr/local/rustup/toolchains/nightly-2022-05-24-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/stdarch/crates/std_detect)
Compiling object v0.26.2
Compiling addr2line v0.16.0
Compiling proc_macro v0.0.0 (/usr/local/rustup/toolchains/nightly-2022-05-24-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/proc_macro)
Compiling cfg-if v1.0.0
Compiling hashbrown v0.12.3
Compiling scopeguard v1.1.0
Compiling rustc-hash v1.1.0
Compiling smallvec v1.10.0
Compiling either v1.8.1
Compiling text-size v1.1.0
Compiling ra_ap_la-arena v0.0.120
Compiling bitflags v1.3.2
Compiling drop_bomb v0.1.5
Compiling ra_ap_limit v0.0.120
Compiling cov-mark v2.0.0-pre.1
Compiling pin-project-lite v0.2.9
Compiling oorandom v11.1.3
Compiling dissimilar v1.0.6
Compiling ra_ap_paths v0.0.120
Compiling lazy_static v1.4.0
Compiling fixedbitset v0.2.0
Compiling arrayvec v0.7.2
Compiling anymap v1.0.0-beta.2
Compiling typed-arena v2.0.2
Compiling scoped-tls v1.0.1
Compiling tinyvec_macros v0.1.1
Compiling percent-encoding v2.2.0
Compiling unicode-bidi v0.3.13
Compiling ryu v1.0.13
Compiling itoa v1.0.6
Compiling dot v0.1.4
Compiling spmc v0.3.0
Compiling num_cpus v1.15.0
Compiling always-assert v0.1.2
Compiling ena v0.14.2
Compiling tracing-core v0.1.30
Compiling itertools v0.10.5
Compiling rustc-ap-rustc_lexer v725.0.0
Compiling chalk-ir v0.83.0
Compiling tinyvec v1.6.0
Compiling form_urlencoded v1.1.0
Compiling smol_str v0.1.24
Compiling crossbeam-channel v0.5.8
Compiling js-sys v0.3.63
Compiling console_error_panic_hook v0.1.7
Compiling ra_ap_stdx v0.0.120
Compiling dashmap v5.3.4
Compiling tracing v0.1.38
Compiling ra_ap_parser v0.0.120
Compiling ra_ap_vfs v0.0.120
Compiling petgraph v0.5.1
Compiling unicode-normalization v0.1.22
Compiling ra_ap_text_edit v0.0.120
Compiling crossbeam-deque v0.8.3
Compiling pulldown-cmark-to-cmark v10.0.4
Compiling ra_ap_tt v0.0.120
Compiling countme v3.0.1
Compiling chalk-solve v0.83.0
Compiling idna v0.3.0
Compiling web-sys v0.3.63
Compiling serde-wasm-bindgen v0.5.0
Compiling ra_ap_cfg v0.0.120
Compiling ra_ap_profile v0.0.120
Compiling rowan v0.15.11
Compiling url v2.3.1
Compiling rayon v1.7.0
Compiling ra_ap_test_utils v0.0.120
Compiling chalk-recursive v0.83.0
Compiling instant v0.1.12
Compiling ra_ap_syntax v0.0.120
Compiling lsp-types v0.94.0
Compiling wasm-bindgen-rayon v1.0.3
Compiling ra_ap_mbe v0.0.120
Compiling parking_lot v0.11.2
Compiling salsa v0.17.0-pre.2
Compiling ra_ap_base_db v0.0.120
Compiling ra_ap_hir_expand v0.0.120
Compiling change_json v0.1.0 (/app/crates/change_json)
warning: unknown feature specified for `-Ctarget-feature`: `bulk-memory`
|
= note: it is still passed through to the codegen backend
= note: consider filing a feature request
warning: unknown feature specified for `-Ctarget-feature`: `mutable-globals`
|
= note: it is still passed through to the codegen backend
= note: consider filing a feature request
warning: `change_json` (lib) generated 2 warnings
Compiling ra_ap_hir_def v0.0.120
Compiling ra_ap_hir_ty v0.0.120
Compiling ra_ap_hir v0.0.120
Compiling ra_ap_ide_db v0.0.120
Compiling ra_ap_ide_diagnostics v0.0.120
Compiling ra_ap_ide_assists v0.0.120
Compiling ra_ap_ide_ssr v0.0.120
Compiling ra_ap_ide_completion v0.0.120
Compiling ra_ap_ide v0.0.120
Compiling rust_analyzer_wasm v0.1.0 (/app/crates/rust_analyzer_wasm)
warning: `rust_analyzer_wasm` (lib) generated 2 warnings (2 duplicates)
Finished release [optimized] target(s) in 1m 29s
[INFO]: Installing wasm-bindgen...
Downloading crates ...
Downloaded wasm-bindgen-cli v0.2.86
Updating crates.io index
Installing wasm-bindgen-cli v0.2.86
Downloading crates ...
Downloaded httpdate v1.0.3
Downloaded time-core v0.1.2
Downloaded form_urlencoded v1.2.0
Downloaded deranged v0.3.8
Downloaded errno v0.3.4
Downloaded scopeguard v1.2.0
Downloaded num_threads v0.1.6
Downloaded termcolor v1.3.0
Downloaded sha1_smol v1.0.0
Downloaded unicase v2.7.0
Downloaded threadpool v1.8.1
Downloaded quote v1.0.33
Downloaded fastrand v2.0.1
Downloaded pkg-config v0.3.27
Downloaded iana-time-zone v0.1.57
Downloaded memoffset v0.9.0
Downloaded itoa v1.0.9
Downloaded percent-encoding v2.3.0
Downloaded ryu v1.0.15
Downloaded tempfile v3.8.0
Downloaded log v0.4.20
Downloaded env_logger v0.8.4
Downloaded either v1.9.0
Downloaded getrandom v0.2.10
Downloaded anyhow v1.0.75
Downloaded num-traits v0.2.16
Downloaded filetime v0.2.22
Downloaded proc-macro2 v1.0.67
Downloaded rustc-demangle v0.1.23
Downloaded quick-error v1.2.3
Downloaded base64 v0.9.3
Downloaded wasm-bindgen-wasm-interpreter v0.2.86
Downloaded safemem v0.3.3
Downloaded crossbeam-utils v0.8.16
Downloaded unicode-ident v1.0.12
Downloaded serde_derive v1.0.188
Downloaded bitflags v2.4.0
Downloaded crossbeam-epoch v0.9.15
Downloaded rayon-core v1.12.0
Downloaded wasm-bindgen-wasm-conventions v0.2.86
Downloaded walrus-macro v0.19.0
Downloaded url v2.4.1
Downloaded leb128 v0.2.5
Downloaded wasm-bindgen-threads-xform v0.2.86
Downloaded wasm-bindgen-multi-value-xform v0.2.86
Downloaded twoway v0.1.8
Downloaded cc v1.0.83
Downloaded wasm-bindgen-externref-xform v0.2.86
Downloaded openssl-sys v0.9.93
Downloaded serde v1.0.188
Downloaded memchr v2.6.4
Downloaded docopt v1.1.1
Downloaded ascii v1.1.0
Downloaded id-arena v2.2.1
Downloaded curl v0.4.44
Downloaded time v0.3.29
Downloaded chunked_transfer v1.4.1
Downloaded tiny_http v0.12.0
Downloaded serde_json v1.0.107
Downloaded num_cpus v1.16.0
Downloaded rayon v1.8.0
Downloaded aho-corasick v1.1.1
Downloaded buf_redux v0.8.4
Downloaded chrono v0.4.31
Downloaded idna v0.4.0
Downloaded regex v1.9.6
Downloaded wasmparser v0.77.1
Downloaded rouille v3.6.2
Downloaded syn v2.0.38
Downloaded wasm-bindgen-cli-support v0.2.86
Downloaded regex-syntax v0.7.5
Downloaded walrus v0.19.0
Downloaded regex-automata v0.3.9
Downloaded libc v0.2.148
Downloaded linux-raw-sys v0.4.8
Downloaded multipart v0.18.0
Downloaded libz-sys v1.1.12
Downloaded rustix v0.38.17
Downloaded curl-sys v0.4.66+curl-8.3.0
error: failed to compile `wasm-bindgen-cli v0.2.86`, intermediate artifacts can be found at `/tmp/cargo-installP2H1Y8`
Caused by:
package `time-core v0.1.2` cannot be built because it requires rustc 1.67.0 or newer, while the currently active rustc version is 1.63.0-nightly
Error: Installing wasm-bindgen with cargo
Caused by: Installing wasm-bindgen with cargo
Caused by: failed to execute `cargo install`: exited with exit status: 101
full command: "cargo" "install" "--force" "wasm-bindgen-cli" "--root" "/root/.cache/.wasm-pack/.wasm-bindgen-cargo-install-0.2.86" "--version" "0.2.86"
The command '/bin/sh -c cd crates/rust_analyzer_wasm && wasm-pack build --target web --out-dir ../../packages/ink-editor/pkg' returned a non-zero code: 1
make: *** [docker-build] Error 1
I also tried changing the toolchain version inside crates/rust_analyzer_wasm, but I didn't get any success result
I'm using a Macbook Pro M1
Metadata
Assignees
Labels
No labels
Activity