You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
When attempting to build the Docker image, the build process fails.
[+] Building 114.1s (8/8) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 195B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/jimmycuadra/rust:1.1.0 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 3.48kB 0.0s
=> [1/4] FROM docker.io/jimmycuadra/rust:1.1.0 0.0s
=> CACHED [2/4] ADD . /star 0.0s
=> CACHED [3/4] WORKDIR /star 0.0s
=> ERROR [4/4] RUN cargo build 114.1s
------
> [4/4] RUN cargo build:
0.343 Updating git repository `https://github.com/carllerche/mio`
4.066 Updating registry `https://github.com/rust-lang/crates.io-index`
113.4 An unknown error occurred
113.4
113.4 To learn more, run the command again with --verbose.
------
Dockerfile:6
--------------------
4 | ADD . /star
5 | WORKDIR /star
6 | >>> RUN cargo build
7 | ENTRYPOINT ["target/debug/star-probe"]
8 |
--------------------
ERROR: failed to solve: process "/bin/sh -c cargo build" did not complete successfully: exit code: 101
If attempting to build on a more recent Rust version (such as FROM rust:1.77), compilation failed:
4.850 Compiling libc v0.1.8
4.850 Compiling gcc v0.3.11
4.923 Compiling pkg-config v0.3.5
5.132 Compiling winapi-build v0.1.0
5.139 Compiling openssl-sys v0.6.4
5.203 Compiling kernel32-sys v0.1.3
5.359 Compiling log v0.3.1
5.396 Compiling rustc-serialize v0.3.15
5.461 error[E0642]: patterns aren't allowed in functions without bodies
5.466 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.15/src/serialize.rs:145:45
5.468 |
5.468 145 | ... &f_name: &str,
5.469 | ^^^^^^^ pattern not allowed in function without body
5.470
5.570 error[E0310]: the parameter type `T` may not live long enough
5.571 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.15/src/serialize.rs:452:5
5.572 |
5.573 452 | fn decode<D: Decoder>(d: &mut D) -> Result<Cow<'static, T>, D::Error> {
5.574 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5.575 | |
5.576 | the parameter type `T` must be valid for the static lifetime...
5.576 | ...so that the type `T` will meet its required lifetime bounds...
5.578 |
5.578 note: ...that is required by this bound
5.578 --> /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/alloc/src/borrow.rs:180:30
5.578 help: consider adding an explicit lifetime bound
5.578 |
5.578 448 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T>
5.578 | +++++++++
5.578
5.595 error[E0277]: the size for values of type `Self` cannot be known at compilation time
5.596 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.15/src/serialize.rs:201:41
5.597 |
5.597 201 | fn decode<D: Decoder>(d: &mut D) -> Result<Self, D::Error>;
5.598 | ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
5.599 |
5.600 note: required by a bound in `Result`
5.600 --> /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/core/src/result.rs:502:1
5.601 help: consider further restricting `Self`
5.602 |
5.602 201 | fn decode<D: Decoder>(d: &mut D) -> Result<Self, D::Error> where Self: Sized;
5.604 | +++++++++++++++++
5.604
5.608 Compiling winapi v0.2.1
5.624 Some errors have detailed explanations: E0277, E0310, E0642.
5.625 For more information about an error, try `rustc --explain E0277`.
5.631 error: could not compile `rustc-serialize` (lib) due to 3 previous errors
5.632 warning: build failed, waiting for other jobs to finish...
------
Dockerfile:7
--------------------
I am aware this is a (very) old repo, but... many people are still using this image :) . So any help would be appreciated.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When attempting to build the Docker image, the build process fails.
If attempting to build on a more recent Rust version (such as
FROM rust:1.77
), compilation failed:I am aware this is a (very) old repo, but... many people are still using this image :) . So any help would be appreciated.
The text was updated successfully, but these errors were encountered: