instrumentisto / rust-docker-image

Rust Docker image
https://www.rust-lang.org
Other
6 stars 1 forks source link

error: failed to run custom build command for `proc-macro2 v1.0.37` #1

Open jorgeherrera3 opened 2 years ago

jorgeherrera3 commented 2 years ago

When running:

podman run --rm \ -v cargo-cache:/volume/.cargo \ -v $PWD:/volume \ -w /volume \ -t quay.io/instrumentisto/rust \ cargo build --release

I get the this error:

Running cmd: just compile info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu' info: latest update on 2022-04-07, rust version 1.60.0 (7737e0b5c 2022-04-04) 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' Updating crates.io index Updating git repository [https://github.com/paperclip-rs/paperclip.git](https://github.com/paperclip-rs/paperclip.git%60) Updating git submodule [https://github.com/swagger-api/swagger-ui](https://github.com/swagger-api/swagger-ui%60) Downloading crates ... Downloaded flate2 v1.0.23 Downloaded futures-core v0.3.21 Downloaded generic-array v0.14.5 Downloaded form_urlencoded v1.0.1 Downloaded foreign-types-shared v0.1.1 Downloaded foreign-types v0.3.2 Downloaded fnv v1.0.7 Downloaded h2 v0.3.13 Downloaded firestorm v0.5.0 Downloaded hashbrown v0.11.2 Downloaded fast_chemail v0.9.6 Downloaded http v0.2.6 Downloaded httpdate v1.0.2 Downloaded http-body v0.4.4 Downloaded hyper-timeout v0.4.1 Downloaded mime v0.3.16 Downloaded memchr v2.4.1 Downloaded percent-encoding v2.1.0 Downloaded pkg-config v0.3.25 Downloaded proc-macro-error-attr v1.0.4 Downloaded proc-macro-error v1.0.4 Downloaded ppv-lite86 v0.2.16 Downloaded rand_core v0.6.3 Downloaded rand_chacha v0.3.1 Downloaded regex v1.5.5 Downloaded regex-automata v0.1.10 Downloaded prometheus v0.13.0 Downloaded pin-utils v0.1.0 Downloaded tokio v1.17.0 Downloaded tracing-core v0.1.26 Downloaded sharded-slab v0.1.4 Downloaded yaml-rust v0.4.5 Downloaded thiserror v1.0.30 Downloaded tinyvec_macros v0.1.0 Downloaded futures-io v0.3.21 Downloaded futures-sink v0.3.21 Downloaded gethostname v0.2.3 Downloaded futures-task v0.3.21 Downloaded futures v0.3.21 Downloaded actix-http v3.0.4 Downloaded futures-util v0.3.21 Downloaded local-waker v0.1.2 Downloaded futures-macro v0.3.21 Downloaded tracing-bunyan-formatter v0.3.2 Downloaded tracing-attributes v0.1.20 Downloaded utoipa v0.1.2 Downloaded utoipa-gen v0.1.2 Downloaded version_check v0.1.5 Downloaded self_cell v0.10.2 Downloaded schemars_derive v0.8.8 Downloaded sha-1 v0.10.0 Downloaded tracing-opentelemetry v0.17.2 Downloaded time-macros v0.2.4 Downloaded semver v1.0.7 Downloaded protobuf v2.27.1 Downloaded tinyvec v1.6.0 Downloaded schemars v0.8.8 Downloaded rand v0.8.5 Downloaded slab v0.4.6 Downloaded semver v0.11.0 Downloaded unicode-bidi v0.3.8 Downloaded zstd-safe v4.1.4+zstd.1.5.2 Downloaded zeroize v1.5.4 Downloaded zstd v0.10.0+zstd.1.5.2 Downloaded unicode-normalization v0.1.19 Downloaded tokio-util v0.7.1 Downloaded uuid v0.8.2 Downloaded tower-service v0.3.1 Downloaded tower-http v0.2.5 Downloaded num_cpus v1.13.1 Downloaded openssl-sys v0.9.72 Downloaded tokio-native-tls v0.3.0 Downloaded opentelemetry-prometheus v0.10.0 Downloaded opentelemetry-semantic-conventions v0.9.0 Downloaded num_threads v0.1.5 Downloaded num-traits v0.2.14 Downloaded ordered-float v2.10.0 Downloaded minijinja v0.15.0 Downloaded nom v4.2.3 Downloaded miniz_oxide v0.5.1 Downloaded memo-map v0.3.1 Downloaded num-integer v0.1.44 Downloaded native-tls v0.2.10 Downloaded openssl-probe v0.1.5 Downloaded language-tags v0.3.2 Downloaded kube-runtime v0.71.0 Downloaded mio v0.8.2 Downloaded getrandom v0.2.6 Downloaded include_dir v0.7.2 Downloaded hostname v0.1.5 Downloaded tower-layer v0.3.1 Downloaded tower v0.4.12 Downloaded tokio-io-timeout v1.2.0 Downloaded tokio-stream v0.1.8 Downloaded tracing-subscriber v0.3.11 Downloaded tokio-openssl v0.6.3 Downloaded paste v1.0.7 Downloaded once_cell v1.10.0 Downloaded libc v0.2.124 Downloaded base64 v0.13.0 Downloaded encoding_rs v0.8.31 Downloaded pin-project-internal v1.0.10 Downloaded pem v1.0.2 Downloaded cfg-if v1.0.0 Downloaded cc v1.0.73 Downloaded openapiv3 v1.0.1 Downloaded byteorder v1.4.3 Downloaded bitflags v1.3.2 Downloaded chrono v0.4.19 Downloaded crc32fast v1.3.2 Downloaded autocfg v1.1.0 Downloaded anyhow v1.0.57 Downloaded crossbeam-channel v0.5.4 Downloaded ansi_term v0.12.1 Downloaded aho-corasick v0.7.18 Downloaded dashmap v4.0.2 Downloaded derivative v2.2.0 Downloaded heck v0.4.0 Downloaded instant v0.1.12 Downloaded indexmap v1.8.1 Downloaded either v1.6.1 Downloaded dirs-sys-next v0.1.2 Downloaded dirs-next v2.0.0 Downloaded crossbeam-utils v0.8.8 Downloaded parking_lot_core v0.8.5 Downloaded urlparse v0.7.3 Downloaded itoa v1.0.1 Downloaded itertools v0.10.3 Downloaded parking_lot v0.12.0 Downloaded parking_lot v0.11.2 Downloaded lazy_static v1.4.0 Downloaded adler v1.0.2 Downloaded tokio-util v0.6.9 Downloaded pin-project v1.0.10 Downloaded openssl v0.10.38 Downloaded darling_macro v0.13.4 Downloaded bufstream v0.1.4 Downloaded actix-utils v3.0.0 Downloaded alloc-stdlib v0.2.1 Downloaded block-buffer v0.10.2 Downloaded ascii_utils v0.9.3 Downloaded actix-service v2.0.2 Downloaded ahash v0.7.6 Downloaded bytestring v1.0.0 Downloaded convert_case v0.4.0 Downloaded crypto-common v0.1.3 Downloaded cpufeatures v0.2.2 Downloaded async-trait v0.1.53 Downloaded base64 v0.10.1 Downloaded http-range-header v0.3.0 Downloaded dyn-clone v1.0.5 Downloaded darling v0.13.4 Downloaded backoff v0.4.0 Downloaded actix-server v2.1.1 Downloaded alloc-no-stdlib v2.0.3 Downloaded actix-web-codegen v4.0.0 Downloaded actix-router v0.5.0 Downloaded hyper-openssl v0.9.2 Downloaded cookie v0.16.0 Downloaded actix-web v4.0.1 Downloaded digest v0.10.3 Downloaded actix-rt v2.7.0 Downloaded actix-macros v0.2.3 Downloaded actix-codec v0.5.0 Downloaded json-patch v0.2.6 Downloaded bytes v1.1.0 Downloaded kube v0.71.0 Downloaded darling_core v0.13.4 Downloaded jobserver v0.1.24 Downloaded ipnet v2.5.0 Downloaded derive_more v0.99.17 Downloaded kube-core v0.71.0 Downloaded actix-web-opentelemetry v0.12.0 Downloaded syn v1.0.91 Downloaded serde_derive_internals v0.25.0 Downloaded proc-macro2 v1.0.37 Downloaded quote v1.0.18 Downloaded lock_api v0.4.7 Downloaded kube-client v0.71.0 Downloaded urlencoding v2.1.0 Downloaded try-lock v0.2.3 Downloaded treediff v3.0.2 Downloaded tracing-futures v0.2.5 Downloaded pin-project-lite v0.2.9 Downloaded httparse v1.7.0 Downloaded brotli-decompressor v2.3.2 Downloaded linked_hash_set v0.1.4 Downloaded kube-derive v0.71.0 Downloaded local-channel v0.1.2 Downloaded tokio-macros v1.7.0 Downloaded lettre v0.9.6 Downloaded futures-channel v0.3.21 Downloaded futures-executor v0.3.21 Downloaded time v0.3.9 Downloaded thread_local v1.1.4 Downloaded thiserror-impl v1.0.30 Downloaded strum_macros v0.24.0 Downloaded strum v0.24.0 Downloaded strsim v0.10.0 Downloaded include_dir_macros v0.7.2 Downloaded socket2 v0.4.4 Downloaded parking_lot_core v0.9.2 Downloaded want v0.3.0 Downloaded zstd-sys v1.6.3+zstd.1.5.2 Downloaded jsonpath_lib v0.3.0 Downloaded idna v0.2.3 Downloaded version_check v0.9.4 Downloaded url v2.2.2 Downloaded unicode-xid v0.2.2 Downloaded ucd-trie v0.1.3 Downloaded typenum v1.15.0 Downloaded tracing-log v0.1.3 Downloaded tracing-actix-web v0.5.1 Downloaded smallvec v1.8.0 Downloaded signal-hook-registry v1.4.0 Downloaded tracing v0.1.34 Downloaded serde_yaml v0.8.23 Downloaded serde_urlencoded v0.7.1 Downloaded serde_json v1.0.79 Downloaded serde_derive v1.0.136 Downloaded serde-value v0.7.0 Downloaded serde v1.0.136 Downloaded semver-parser v0.10.2 Downloaded secrecy v0.8.0 Downloaded scopeguard v1.1.0 Downloaded ryu v1.0.9 Downloaded rustversion v1.0.6 Downloaded rustc_version v0.4.0 Downloaded reqwest v0.11.10 Downloaded regex-syntax v0.6.25 Downloaded pest v2.1.3 Downloaded opentelemetry v0.17.0 Downloaded matches v0.1.9 Downloaded matchers v0.1.0 Downloaded log v0.4.16 Downloaded linked-hash-map v0.5.4 Downloaded ident_case v1.0.1 Downloaded hyper-tls v0.5.0 Downloaded hyper v0.14.18 Downloaded brotli v3.3.4 Downloaded k8s-openapi v0.14.0 Compiling proc-macro2 v1.0.37 error: failed to run custom build command for proc-macro2 v1.0.37

Caused by: could not execute process /volume/target/release/build/proc-macro2-c762b5a643d7a9fa/build-script-build (never executed)

Caused by: Network dropped connection on reset (os error 102)

Host: uname -amn Darwin 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:47:26 PDT 2022; xnu-8020.101.4~15/RELEASE_ARM64_T8101 arm64

Podman info --debug:

host: arch: arm64 buildahVersion: 1.24.3 cgroupControllers:

What am I missing?

thanks.

tyranron commented 2 years ago

@jkamina

Caused by:
Network dropped connection on reset (os error 102)

Try --network=host. It's unlikely a problem of the docker image itself, but rather with your environment setup.

jorgeherrera3 commented 2 years ago

This makes sense, I added this:

podman run --rm \ --network=host \ -v cargo-cache:/root/.cargo \ -v $PWD:/volume \ -w /volume \ -t quay.io/instrumentisto/rust:1.60.0 \ cargo build --release --features={{features}}

but still got the exact same error.

thanks,

tyranron commented 2 years ago

@jkamina hmm... try remove -v cargo-cache:/root/.cargo.

jorgeherrera3 commented 2 years ago

@tyranron Thanks for the help, I tried several combinations of this, and it still is throwing the same error. But this last time was a bit different. see below:

info: (Bsyncing channel updates for 'stable-aarch64-unknown-linux-gnu' info: (Blatest update on 2022-04-07, rust version 1.60.0 (7737e0b5c 2022-04-04) info: (Bdownloading component 'cargo' info: (Bdownloading component 'rust-std' info: (Bdownloading component 'rustc' info: (Binstalling component 'cargo' info: (Binstalling component 'rust-std' info: (Binstalling component 'rustc' Updating crates.io index Updating git repository [https://github.com/paperclip-rs/paperclip.git](https://github.com/paperclip-rs/paperclip.git%60) Updating git submodule [https://github.com/swagger-api/swagger-ui](https://github.com/swagger-api/swagger-ui%60) Downloading crates ... Downloaded derivative v2.2.0 Downloaded derive_more v0.99.17 Downloaded fnv v1.0.7 Downloaded firestorm v0.5.0 Downloaded foreign-types-shared v0.1.1 Downloaded actix-macros v0.2.3 Downloaded foreign-types v0.3.2 Downloaded try-lock v0.2.3 Downloaded digest v0.10.3 Downloaded dashmap v4.0.2 Downloaded either v1.6.1 Downloaded form_urlencoded v1.0.1 Downloaded futures v0.3.21 Downloaded darling_core v0.13.4 Downloaded ucd-trie v0.1.3 Downloaded unicode-bidi v0.3.7 Downloaded futures-sink v0.3.21 Downloaded futures-macro v0.3.21 Downloaded futures-io v0.3.21 Downloaded futures-executor v0.3.21 Downloaded futures-core v0.3.21 Downloaded hostname v0.3.1 Downloaded heck v0.4.0 Downloaded getrandom v0.2.6 Downloaded itoa v1.0.1 Downloaded instant v0.1.12 Downloaded http v0.2.6 Downloaded futures-util v0.3.21 Downloaded unicode-xid v0.2.2 Downloaded lazy_static v1.4.0 Downloaded jsonpath_lib v0.3.0 Downloaded url v2.2.2 Downloaded unicode-normalization v0.1.19 Downloaded futures-channel v0.3.21 Downloaded darling v0.13.4 Downloaded want v0.3.0 Downloaded uuid v0.8.2 Downloaded email-encoding v0.1.0 Downloaded yaml-rust v0.4.5 Downloaded lock_api v0.4.7 Downloaded linked-hash-map v0.5.4 Downloaded darling_macro v0.13.4 Downloaded fastrand v1.7.0 Downloaded treediff v3.0.2 Downloaded time-macros v0.2.4 Downloaded zeroize v1.5.4 Downloaded typenum v1.15.0 Downloaded nom v7.1.1 Downloaded flate2 v1.0.23 Downloaded autocfg v1.1.0 Downloaded ansi_term v0.12.1 Downloaded ahash v0.7.6 Downloaded adler v1.0.2 Downloaded tracing-log v0.1.2 Downloaded semver-parser v0.10.2 Downloaded mime v0.3.16 Downloaded bitflags v1.3.2 Downloaded base64 v0.13.0 Downloaded memchr v2.4.1 Downloaded matches v0.1.9 Downloaded kube v0.70.0 Downloaded log v0.4.16 Downloaded urlencoding v2.1.0 Downloaded kube-runtime v0.70.0 Downloaded tracing-opentelemetry v0.17.2 Downloaded kube-derive v0.70.0 Downloaded unicode-segmentation v1.9.0 Downloaded num_cpus v1.13.1 Downloaded num-traits v0.2.14 Downloaded kube-client v0.70.0 Downloaded reqwest v0.11.10 Downloaded bytestring v1.0.0 Downloaded bytes v1.1.0 Downloaded dyn-clone v1.0.5 Downloaded dirs-sys-next v0.1.2 Downloaded dirs-next v2.0.0 Downloaded rand_chacha v0.3.1 Downloaded httpdate v1.0.2 Downloaded hyper-tls v0.5.0 Downloaded gethostname v0.2.3 Downloaded hyper-timeout v0.4.1 Downloaded match_cfg v0.1.0 Downloaded tracing-subscriber v0.3.11 Downloaded native-tls v0.2.10 Downloaded json-patch v0.2.6 Downloaded cfg-if v1.0.0 Downloaded actix-web-opentelemetry v0.12.0 Downloaded matchers v0.1.0 Downloaded num-integer v0.1.44 Downloaded h2 v0.3.13 Downloaded mio v0.8.2 Downloaded hyper v0.14.18 Downloaded indexmap v1.8.1 Downloaded jobserver v0.1.24 Downloaded semver v0.11.0 Downloaded ryu v1.0.9 Downloaded local-channel v0.1.2 Downloaded ident_case v1.0.1 Downloaded httparse v1.7.0 Downloaded http-range-header v0.3.0 Downloaded http-body v0.4.4 Downloaded futures-task v0.3.21 Downloaded quote v1.0.18 Downloaded proc-macro2 v1.0.37 Downloaded serde v1.0.136 Downloaded slab v0.4.6 Downloaded signal-hook-registry v1.4.0 Downloaded strum v0.24.0 Downloaded actix-utils v3.0.0 Downloaded alloc-stdlib v0.2.1 Downloaded alloc-no-stdlib v2.0.3 Downloaded actix-web-codegen v4.0.0 Downloaded actix-service v2.0.2 Downloaded actix-codec v0.5.0 Downloaded strsim v0.10.0 Downloaded socket2 v0.4.4 Downloaded block-buffer v0.10.2 Downloaded async-trait v0.1.53 Downloaded actix-router v0.5.0 Downloaded sharded-slab v0.1.4 Downloaded quoted_printable v0.4.5 Downloaded pin-utils v0.1.0 Downloaded paste v1.0.7 Downloaded pkg-config v0.3.25 Downloaded pem v1.0.2 Downloaded opentelemetry-semantic-conventions v0.9.0 Downloaded anyhow v1.0.56 Downloaded opentelemetry-prometheus v0.10.0 Downloaded backoff v0.4.0 Downloaded serde_json v1.0.79 Downloaded parking_lot v0.11.2 Downloaded regex-automata v0.1.10 Downloaded protobuf v2.27.1 Downloaded prometheus v0.13.0 Downloaded pest v2.1.3 Downloaded opentelemetry v0.17.0 Downloaded actix-rt v2.7.0 Downloaded actix-http v3.0.4 Downloaded proc-macro-error-attr v1.0.4 Downloaded pin-project-lite v0.2.8 Downloaded pin-project-internal v1.0.10 Downloaded pin-project v1.0.10 Downloaded percent-encoding v2.1.0 Downloaded parking_lot_core v0.9.2 Downloaded parking_lot_core v0.8.5 Downloaded parking_lot v0.12.0 Downloaded ordered-float v2.10.0 Downloaded openssl-probe v0.1.5 Downloaded openssl v0.10.38 Downloaded brotli-decompressor v2.3.2 Downloaded actix-web v4.0.1 Downloaded openapiv3 v1.0.1 Downloaded local-waker v0.1.2 Downloaded self_cell v0.10.2 Downloaded idna v0.2.3 Downloaded minijinja v0.15.0 Downloaded tower-service v0.3.1 Downloaded tower-layer v0.3.1 Downloaded tower-http v0.2.5 Downloaded ppv-lite86 v0.2.16 Downloaded tracing-attributes v0.1.20 Downloaded proc-macro-error v1.0.4 Downloaded memo-map v0.3.1 Downloaded libc v0.2.124 Downloaded ipnet v2.5.0 Downloaded once_cell v1.10.0 Downloaded rustc_version v0.4.0 Downloaded crossbeam-channel v0.5.4 Downloaded crossbeam-utils v0.8.8 Downloaded crc32fast v1.3.2 Downloaded num_threads v0.1.5 Downloaded cc v1.0.73 Downloaded language-tags v0.3.2 Downloaded cookie v0.16.0 Downloaded tracing-bunyan-formatter v0.3.2 Downloaded time v0.3.9 Downloaded tower v0.4.12 Downloaded thiserror-impl v1.0.30 Downloaded serde-value v0.7.0 Downloaded tinyvec_macros v0.1.0 Downloaded tinyvec v1.5.1 Downloaded tokio-io-timeout v1.2.0 Downloaded strum_macros v0.24.0 Downloaded tracing-core v0.1.26 Downloaded tracing-futures v0.2.5 Downloaded serde_yaml v0.8.23 Downloaded serde_derive v1.0.136 Downloaded itertools v0.10.3 Downloaded syn v1.0.91 Downloaded regex-syntax v0.6.25 Downloaded rand v0.8.5 Downloaded tokio-util v0.7.1 Downloaded schemars v0.8.8 Downloaded tracing v0.1.34 Downloaded tokio-util v0.6.9 Downloaded tokio-stream v0.1.8 Downloaded tokio-native-tls v0.3.0 Downloaded tokio-macros v1.7.0 Downloaded smallvec v1.8.0 Downloaded strum_macros v0.23.1 Downloaded serde_derive_internals v0.25.0 Downloaded minimal-lexical v0.2.1 Downloaded sha-1 v0.10.0 Downloaded semver v1.0.7 Downloaded chrono v0.4.19 Downloaded strum v0.23.0 Downloaded serde_urlencoded v0.7.1 Downloaded scopeguard v1.1.0 Downloaded openssl-sys v0.9.72 Downloaded secrecy v0.8.0 Downloaded schemars_derive v0.8.8 Downloaded miniz_oxide v0.5.1 Downloaded rustversion v1.0.6 Downloaded rand_core v0.6.3 Downloaded thread_local v1.1.4 Downloaded cpufeatures v0.2.2 Downloaded thiserror v1.0.30 Downloaded hashbrown v0.11.2 Downloaded crypto-common v0.1.3 Downloaded convert_case v0.4.0 Downloaded kube-core v0.70.0 Downloaded include_dir_macros v0.7.2 Downloaded include_dir v0.7.2 Downloaded heck v0.3.3 Downloaded generic-array v0.14.5 Downloaded lettre v0.10.0-rc.5 Downloaded aho-corasick v0.7.18 Downloaded actix-server v2.1.1 Downloaded tokio v1.17.0 Downloaded version_check v0.9.4 Downloaded zstd-safe v4.1.4+zstd.1.5.2 Downloaded zstd-sys v1.6.3+zstd.1.5.2 Downloaded zstd v0.10.0+zstd.1.5.2 Downloaded tracing-actix-web v0.5.1 Downloaded brotli v3.3.4 Downloaded encoding_rs v0.8.31 Downloaded urlparse v0.7.3 Downloaded regex v1.5.5 Downloaded k8s-openapi v0.14.0 Compiling proc-macro2 v1.0.37 Compiling unicode-xid v0.2.2 Compiling syn v1.0.91 Compiling libc v0.2.124 Compiling cfg-if v1.0.0 Compiling autocfg v1.1.0 Compiling serde_derive v1.0.136 Compiling serde v1.0.136 Compiling memchr v2.4.1 Compiling log v0.4.16 Compiling pin-project-lite v0.2.8 Compiling lazy_static v1.4.0 Compiling bytes v1.1.0 Compiling once_cell v1.10.0 Compiling smallvec v1.8.0 Compiling futures-core v0.3.21 Compiling itoa v1.0.1 Compiling scopeguard v1.1.0 Compiling parking_lot_core v0.9.2 Compiling fnv v1.0.7 Compiling futures-sink v0.3.21 Compiling slab v0.4.6 Compiling futures-channel v0.3.21 Compiling futures-task v0.3.21 Compiling version_check v0.9.4 Compiling futures-util v0.3.21 Compiling futures-io v0.3.21 Compiling pin-utils v0.1.0 Compiling hashbrown v0.11.2 Compiling ryu v1.0.9 Compiling percent-encoding v2.1.0 Compiling serde_json v1.0.79 Compiling bitflags v1.3.2 Compiling matches v0.1.9 Compiling tinyvec_macros v0.1.0 Compiling base64 v0.13.0 Compiling regex-syntax v0.6.25 Compiling ppv-lite86 v0.2.16 Compiling httparse v1.7.0 Compiling unicode-bidi v0.3.7 Compiling httpdate v1.0.2 Compiling typenum v1.15.0 Compiling pkg-config v0.3.25 Compiling foreign-types-shared v0.1.1 Compiling zstd-safe v4.1.4+zstd.1.5.2 Compiling alloc-no-stdlib v2.0.3 Compiling crc32fast v1.3.2 Compiling local-waker v0.1.2 Compiling encoding_rs v0.8.31 Compiling openssl v0.10.38 Compiling mime v0.3.16 Compiling rustversion v1.0.6 Compiling native-tls v0.2.10 Compiling crossbeam-utils v0.8.8 Compiling firestorm v0.5.0 Compiling adler v1.0.2 Compiling time-macros v0.2.4 Compiling paste v1.0.7 Compiling async-trait v0.1.53 Compiling num_threads v0.1.5 Compiling tower-service v0.3.1 Compiling linked-hash-map v0.5.4 Compiling openssl-probe v0.1.5 Compiling convert_case v0.4.0 Compiling try-lock v0.2.3 Compiling language-tags v0.3.2 Compiling k8s-openapi v0.14.0 Compiling schemars v0.8.8 Compiling dyn-clone v1.0.5 Compiling ident_case v1.0.1 Compiling parking_lot_core v0.8.5 Compiling strsim v0.10.0 Compiling heck v0.4.0 Compiling either v1.6.1 Compiling tower-layer v0.3.1 Compiling strum v0.24.0 Compiling protobuf v2.27.1 Compiling ansi_term v0.12.1 Compiling http-range-header v0.3.0 Compiling ucd-trie v0.1.3 Compiling zeroize v1.5.4 Compiling anyhow v1.0.56 Compiling prometheus v0.13.0 Compiling match_cfg v0.1.0 Compiling unicode-segmentation v1.9.0 Compiling paperclip v0.7.0 (https://github.com/paperclip-rs/paperclip.git#c13ad7b2) Compiling minimal-lexical v0.2.1 Compiling memo-map v0.3.1 Compiling quoted_printable v0.4.5 Compiling fastrand v1.7.0 Compiling ipnet v2.5.0 Compiling urlencoding v2.1.0 Compiling strum v0.23.0 Compiling urlparse v0.7.3 error: failed to run custom build command for proc-macro2 v1.0.37

Caused by: could not execute process /volume/target/debug/build/proc-macro2-4f0384a92101cf2d/build-script-build (never executed)

Caused by: Network dropped connection on reset (os error 102)


So it compiled? maybe, but it did end up throwing the same error.

thanks,

tyranron commented 2 years ago

@jkamina could you provide an MRE (minimal reproducible example)? I need to be able to reproduce this error localy to investigate further.

jorgeherrera3 commented 2 years ago

Is this enought?

podman --log-level=debug machine init -v /Users/jherrera/Documents/development/pods

podman machine start

podman run --rm --network=host -v /Users/jherrera/Documents/development/pods:/volume -w /volume -t quay.io/instrumentisto/rust:1.60.0 cargo build --release

Cargo.toml: ` [package] name = "dpaas-controller" version = "0.1.12" edition = "2021"

[workspace]

[features] default = [] telemetry = ["opentelemetry-zipkin"] console = ["tokio-console", "console-subscriber"]

[dependencies]

kube = { version = "0.70", features = [ "runtime", "derive", ] } k8s-openapi = { version = "0.14.0", features = ["v1_22"] }

actix-web = "4" actix-http = "*" paperclip = { git = "https://github.com/paperclip-rs/paperclip.git", features = ["actix4", "v3", "swagger-ui"] }

opentelemetry = { version = "0.17", features = ["rt-tokio-current-thread"] } opentelemetry-zipkin = {version = "0.15", features = ["reqwest-client"], default-features = false, optional = true} tracing = "0.1.29" tracing-opentelemetry = { version = "0.17" } tracing-subscriber = { version = "0.3.3", features = ["registry", "env-filter"] } tracing-bunyan-formatter = "0.3" tracing-actix-web = {version = "0.5", features = ["opentelemetry_0_17"]} actix-web-opentelemetry = {version = "0.12", features = ["metrics"]} opentelemetry-prometheus = "0.10.0"

tokio = { version = "1.15", features = ["full", "tracing"] } tokio-console = {version = "", optional=true} console-subscriber = {version = "", optional=true} futures = "0.3.19"

anyhow = "*"

serde = { version = "1.0.130", features = ["derive"] } serde_yaml = "" urlparse = ""

reqwest = {version = "0.11.9", features = ["json", "stream"]} lazy_static = "*"

[dev-dependencies] serde_json = "" secrecy = "" `

SRC/main.rs fn main(){ println!("hello world"); }

uname -amn uname -amn Darwin **-mac 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:47:26 PDT 2022; root:xnu 8020.101.4~15/RELEASE_ARM64_T8101 arm64

podman -v podman version 4.0.3