Closed roland-5 closed 2 years ago
I think that your cc
is not clang
bug gcc
. Set linker
to clang
as described in https://github.com/rui314/mold#how-to-use.
You're right. I checked it:
readelf -p .comment /usr/bin/garbage 13s/10:16
String dump of section '.comment':
[ 0] GCC: (GNU) 11.2.0
[ 12] Linker: LLD 13.0.1
I thought this line in my makepkg make clang the linker.
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang
I need to think about it. Thank you for clue.
Yup, I was dumb. In fact, I had to add specifically -C linker=clang
... (thanks people from reddit)
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang
RUSTFLAGS="-C opt-level=3 -C target-cpu=native -C linker=clang -C linker-plugin-lto -C link-arg=-flto -C link-arg=-fuse-ld=/usr/bin/mold"
Is the answer. But still there is problem but not the same for these projects: For garbage
paru -S garbage --skipreview 11:08
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...
Aur (1) garbage-0.3.3-2
:: Proceed with installation? [Y/n]:
:: Downloading PKGBUILDs...
(1/1) garbage-0.3.3-2 [-------------------------------------------------------------------------------------------------------------------------------------------------------------]
fetching devel info...
==> Making package: garbage 0.3.3-2 (Sun 13 Feb 2022 11:08:13 AM CET)
==> Retrieving sources...
-> Downloading v0.3.3.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 46134 0 46134 0 0 87770 0 --:--:-- --:--:-- --:--:-- 87707
==> Validating source files with sha256sums...
v0.3.3.tar.gz ... Passed
==> Making package: garbage 0.3.3-2 (Sun 13 Feb 2022 11:08:15 AM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found v0.3.3.tar.gz
==> Validating source files with sha256sums...
v0.3.3.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting v0.3.3.tar.gz with bsdtar
==> Sources are ready.
garbage-0.3.3-2: parsing pkg list...
==> Making package: garbage 0.3.3-2 (Sun 13 Feb 2022 11:08:17 AM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Compiling autocfg v1.0.1
Compiling libc v0.2.112
Compiling version_check v0.9.4
Compiling proc-macro2 v1.0.36
Compiling unicode-xid v0.2.2
Compiling memchr v2.4.1
Compiling syn v1.0.84
Compiling cc v1.0.72
Compiling lazy_static v1.4.0
Compiling cfg-if v1.0.0
Compiling unicode-segmentation v1.8.0
Compiling log v0.4.14
Compiling bitflags v1.3.2
Compiling nix v0.14.1
Compiling gimli v0.26.1
Compiling adler v1.0.2
Compiling cfg-if v0.1.10
Compiling void v1.0.2
Compiling termcolor v1.1.2
Compiling byteorder v1.4.3
Compiling anyhow v1.0.52
Compiling hashbrown v0.11.2
Compiling rustc-demangle v0.1.21
Compiling strsim v0.10.0
Compiling encode_unicode v0.3.6
Compiling quick-error v1.2.3
Compiling same-file v1.0.6
Compiling garbage v0.3.3 (/home/roland/.cache/paru/clone/garbage/src/garbage-v0.3.3)
Compiling unicode-width v0.1.9
Compiling textwrap v0.14.2
Compiling percent-encoding v2.1.0
Compiling thread_local v1.0.1
Compiling heck v0.3.3
Compiling walkdir v2.3.2
Compiling num-traits v0.2.14
Compiling num-integer v0.1.44
Compiling miniz_oxide v0.4.4
Compiling indexmap v1.7.0
Compiling proc-macro-error-attr v1.0.4
Compiling proc-macro-error v1.0.4
Compiling object v0.27.1
Compiling os_str_bytes v6.0.0
Compiling time v0.1.44
Compiling atty v0.2.14
Compiling dirs-sys v0.3.6
Compiling dirs v1.0.5
Compiling quote v1.0.14
Compiling dirs v3.0.2
Compiling term v0.5.2
Compiling xdg v2.4.0
Compiling prettytable-rs v0.8.0
Compiling backtrace v0.3.63
Compiling addr2line v0.17.0
Compiling chrono v0.4.19
Compiling stderrlog v0.5.1
Compiling chrono-humanize v0.2.1
Compiling libmount v0.1.15
Compiling clap_derive v3.0.0
Compiling clap v3.0.0
error: expected one of: _timeout, `enum`, `union`
--> src/main.rs:26:1
|
26 | enum Command {
| ^^^^
error[E0277]: the trait bound `Command: FromArgMatches` is not satisfied
--> src/main.rs:17:12
|
17 | #[clap(subcommand)]
| ^^^^^^^^^^ the trait `FromArgMatches` is not implemented for `Command`
error[E0277]: the trait bound `Command: FromArgMatches` is not satisfied
--> src/main.rs:18:5
|
18 | command: Command,
| ^^^^^^^ ------- required by a bound introduced by this call
| |
| the trait `FromArgMatches` is not implemented for `Command`
error[E0277]: the trait bound `Command: Subcommand` is not satisfied
--> src/main.rs:14:10
|
14 | #[derive(Parser)]
| ^^^^^^ the trait `Subcommand` is not implemented for `Command`
|
= note: this error originates in the derive macro `Parser` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`.
error: could not compile `garbage` due to 4 previous errors
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'garbage-0.3.3-2':
error: packages failed to build: garbage-0.3.3-2
For exa-git
==> Making package: exa-git 0.10.1.r33.g3f24f7c-1 (Sun 13 Feb 2022 11:12:41 AM CET)
==> Retrieving sources...
-> Cloning exa git repo...
Cloning into bare repository '/home/roland/.cache/paru/clone/exa-git/exa'...
remote: Enumerating objects: 10063, done.
remote: Counting objects: 100% (1449/1449), done.
remote: Compressing objects: 100% (451/451), done.
remote: Total 10063 (delta 1133), reused 1156 (delta 989), pack-reused 8614
Receiving objects: 100% (10063/10063), 4.06 MiB | 3.15 MiB/s, done.
Resolving deltas: 100% (7166/7166), done.
==> Validating source files with md5sums...
exa ... Skipped
==> Making package: exa-git 0.10.1.r33.g3f24f7c-1 (Sun 13 Feb 2022 11:12:45 AM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating exa git repo...
Fetching origin
==> Validating source files with md5sums...
exa ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Creating working copy of exa git repo...
Cloning into 'exa'...
done.
==> Starting prepare()...
==> Starting pkgver()...
==> Updated version: exa-git 0.10.1.r78.g42659f9-1
==> Sources are ready.
exa-git-0.10.1.r33.g3f24f7c-1: parsing pkg list...
==> Making package: exa-git 0.10.1.r78.g42659f9-1 (Sun 13 Feb 2022 11:12:49 AM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
Compiling libc v0.2.93
Compiling pkg-config v0.3.19
Compiling matches v0.1.8
Compiling tinyvec_macros v0.1.0
Compiling unicode-width v0.1.8
Compiling log v0.4.14
Compiling percent-encoding v2.1.0
Compiling bitflags v1.2.1
Compiling cfg-if v1.0.0
Compiling byteorder v1.4.3
Compiling glob v0.3.0
Compiling scoped_threadpool v0.1.9
Compiling number_prefix v0.4.0
Compiling lazy_static v1.4.0
Compiling ansi_term v0.12.1
Compiling natord v1.0.9
Compiling unicode-bidi v0.3.5
Compiling tinyvec v1.2.0
Compiling pad v0.1.6
Compiling term_grid v0.2.0
Compiling form_urlencoded v1.0.1
Compiling unicode-normalization v0.1.17
Compiling jobserver v0.1.22
Compiling locale v0.2.2
Compiling terminal_size v0.1.16
Compiling num_cpus v1.13.0
Compiling users v0.11.0
Compiling cc v1.0.67
Compiling datetime v0.5.2
Compiling idna v0.2.3
Compiling zoneinfo_compiled v0.5.1
Compiling exa v0.10.1 (/home/roland/.cache/paru/clone/exa-git/src/exa)
Compiling url v2.2.1
Compiling libz-sys v1.1.2
Compiling libgit2-sys v0.12.21+1.1.0
Compiling git2 v0.13.20
error: linking with `clang` failed: exit status: 1
|
= note: "clang" "-m64" "/home/roland/.cache/paru/clone/exa-git/src/exa/target/release/deps/exa-d34a96a6ef1bd8ad.exa.3038d880-cgu.4.rcgu.o" "-Wl,--as-needed" "-L" "/home/roland/.cache/paru/clone/exa-git/src/exa/target/release/deps" "-L" "/usr/lib" "-L" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,--end-group" "-Wl,-Bstatic" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-5667a4a7e2c48d47.rlib" "-Wl,-Bdynamic" "-lgit2" "-lz" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-Wl,-plugin-opt=O3,-plugin-opt=mcpu=znver1" "-L" "/home/roland/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/roland/.cache/paru/clone/exa-git/src/exa/target/release/deps/exa-d34a96a6ef1bd8ad" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs" "-flto" "-fuse-ld=/usr/bin/mold"
= note: mold: error: undefined symbol: /tmp/lto-llvm-a68ce7.o: __rust_probestack
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `exa` due to previous error
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'exa-git-0.10.1.r33.g3f24f7c-1':
For pkger
==> Making package: pkger-rs 0.7.0-1 (Sun 13 Feb 2022 11:24:06 AM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found pkger-0.7.0.tar.gz
==> Validating source files with sha256sums...
pkger-0.7.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting pkger-0.7.0.tar.gz with bsdtar
==> Starting prepare()...
==> Sources are ready.
pkger-rs-0.7.0-1: parsing pkg list...
==> Making package: pkger-rs 0.7.0-1 (Sun 13 Feb 2022 11:24:09 AM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Compiling autocfg v1.0.1
Compiling libc v0.2.104
Compiling proc-macro2 v1.0.30
Compiling unicode-xid v0.2.2
Compiling syn v1.0.80
Compiling cfg-if v1.0.0
Compiling lazy_static v1.4.0
Compiling log v0.4.14
Compiling cfg-if v0.1.10
Compiling slab v0.4.5
Compiling memchr v2.4.1
Compiling maybe-uninit v2.0.0
Compiling semver-parser v0.7.0
Compiling futures v0.1.31
Compiling pin-project-lite v0.2.7
Compiling fnv v1.0.7
Compiling scopeguard v1.1.0
Compiling byteorder v1.4.3
Compiling version_check v0.9.3
Compiling futures-core v0.3.17
Compiling serde_derive v1.0.130
Compiling proc-macro-hack v0.5.19
Compiling futures-task v0.3.17
Compiling serde v1.0.130
Compiling futures-channel v0.3.17
Compiling proc-macro-nested v0.1.7
Compiling futures-sink v0.3.17
Compiling paste v1.0.5
Compiling futures-io v0.3.17
Compiling itoa v0.4.8
Compiling pin-utils v0.1.0
Compiling ryu v1.0.5
Compiling tinyvec_macros v0.1.0
Compiling bytes v1.1.0
Compiling httparse v1.5.1
Compiling pin-project-internal v0.4.28
Compiling serde_json v1.0.68
Compiling matches v0.1.9
Compiling crc32fast v1.2.1
Compiling try-lock v0.2.3
Compiling hashbrown v0.11.2
Compiling regex-syntax v0.6.25
Compiling adler v1.0.2
Compiling httpdate v1.0.1
Compiling percent-encoding v2.1.0
Compiling tower-service v0.3.1
Compiling unicode-segmentation v1.8.0
Compiling bitflags v1.3.2
Compiling unicode-bidi v0.3.7
Compiling event-listener v2.5.1
Compiling hex v0.4.3
Compiling unicode-width v0.1.9
Compiling linked-hash-map v0.5.4
Compiling anyhow v1.0.44
Compiling bytes v0.5.6
Compiling once_cell v1.8.0
Compiling remove_dir_all v0.5.3
Compiling half v1.8.0
Compiling mime v0.3.16
Compiling strsim v0.10.0
Compiling base64 v0.13.0
Compiling dtoa v0.4.8
Compiling termcolor v1.1.2
Compiling ansi_term v0.12.1
Compiling smallvec v1.7.0
Compiling tracing-core v0.1.21
Compiling sharded-slab v0.1.4
Compiling semver v0.9.0
Compiling lock_api v0.3.4
Compiling tinyvec v1.5.0
Compiling crossbeam-utils v0.7.2
Compiling futures-macro v0.3.17
Compiling futures-util v0.3.17
Compiling memoffset v0.5.6
Compiling num-traits v0.2.14
Compiling crossbeam-epoch v0.8.2
Compiling num-integer v0.1.44
Compiling indexmap v1.7.0
Compiling tokio v1.12.0
Compiling miniz_oxide v0.4.4
Compiling memoffset v0.6.4
Compiling form_urlencoded v1.0.1
Compiling proc-macro-error-attr v1.0.4
Compiling proc-macro-error v1.0.4
Compiling unicase v2.6.0
Compiling http v0.2.5
Compiling textwrap v0.14.2
Compiling async-mutex v1.4.0
Compiling yaml-rust v0.4.5
Compiling tokio-sync v0.1.8
Compiling heck v0.3.3
Compiling thread_local v1.1.3
Compiling rustc_version v0.2.3
Compiling regex-automata v0.1.10
Compiling unicode-normalization v0.1.19
Compiling async-rwlock v1.3.0
Compiling want v0.3.0
Compiling tracing-log v0.1.2
Compiling smallvec v0.6.14
Compiling aho-corasick v0.7.18
Compiling os_str_bytes v4.2.0
Compiling parking_lot_core v0.6.2
Compiling parking_lot v0.9.0
Compiling quote v1.0.10
Compiling matchers v0.0.1
Compiling idna v0.2.3
Compiling http-body v0.4.3
Compiling num_cpus v1.13.0
Compiling iovec v0.1.4
Compiling net2 v0.2.37
Compiling mio v0.7.14
Compiling time v0.1.43
Compiling socket2 v0.4.2
Compiling filetime v0.2.15
Compiling xattr v0.2.2
Compiling atty v0.2.14
Compiling rand v0.4.6
Compiling dirs-sys v0.3.6
Compiling rpassword v5.0.1
Compiling nix v0.23.0
Compiling tokio-executor v0.1.10
Compiling crossbeam-queue v0.2.3
Compiling bytes v0.4.12
Compiling flate2 v1.0.22
Compiling regex v1.5.4
Compiling url v2.2.2
Compiling mio v0.6.23
Compiling colored v2.0.0
Compiling tar v0.4.37
Compiling dirs v3.0.2
Compiling tokio-timer v0.2.13
Compiling tokio-current-thread v0.1.7
Compiling crossbeam-deque v0.7.4
Compiling tempdir v0.3.7
Compiling tokio-io v0.1.13
Compiling mio-uds v0.6.8
Compiling tokio-threadpool v0.1.18
Compiling tokio-reactor v0.1.12
Compiling tokio-codec v0.1.2
Compiling tokio-fs v0.1.7
Compiling tokio-uds v0.2.7
Compiling tokio-tcp v0.1.4
Compiling tokio-udp v0.1.6
Compiling tokio v0.1.22
Compiling ctrlc v3.2.1
Compiling tracing-attributes v0.1.18
Compiling pkgspec v0.2.0 (/home/roland/.cache/paru/clone/pkger-rs/src/pkger-0.7.0/libs/pkgspec)
Compiling tokio-macros v1.5.0
Compiling pin-project-internal v1.0.8
Compiling thiserror-impl v1.0.30
Compiling clap_derive v3.0.0-beta.5
Compiling pkgbuild v0.1.1 (/home/roland/.cache/paru/clone/pkger-rs/src/pkger-0.7.0/libs/pkgbuild)
Compiling rpmspec v0.3.0 (/home/roland/.cache/paru/clone/pkger-rs/src/pkger-0.7.0/libs/rpmspec)
Compiling apkbuild v0.1.0 (/home/roland/.cache/paru/clone/pkger-rs/src/pkger-0.7.0/libs/apkbuild)
Compiling deb-control v0.3.1 (/home/roland/.cache/paru/clone/pkger-rs/src/pkger-0.7.0/libs/debcontrol)
Compiling pin-project v1.0.8
Compiling thiserror v1.0.30
Compiling futures-executor v0.3.17
Compiling futures v0.3.17
Compiling clap v3.0.0-beta.5
Compiling pin-project v0.4.28
Compiling futures_codec v0.4.1
Compiling clap_generate v3.0.0-beta.5
Compiling tracing v0.1.29
Compiling tracing-futures v0.1.1
Compiling hyper v0.14.13
Compiling hyperlocal v0.8.0
Compiling chrono v0.4.19
Compiling serde_yaml v0.8.21
Compiling serde_cbor v0.11.2
Compiling tracing-serde v0.1.2
Compiling docker-api v0.5.1
Compiling tracing-subscriber v0.2.25
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:150:24
|
150 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:150:35
|
150 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:159:24
|
159 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:159:35
|
159 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:197:24
|
197 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:197:35
|
197 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:230:24
|
230 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:230:35
|
230 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:299:24
|
299 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:299:35
|
299 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/opts.rs:35:24
|
35 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/opts.rs:35:35
|
35 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/opts.rs:203:24
|
203 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/opts.rs:203:35
|
203 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/image/data.rs:95:24
|
95 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/image/data.rs:95:35
|
95 | #[derive(Clone, Debug, Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/image/data.rs:101:10
|
101 | #[derive(Serialize, Deserialize, Debug)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/image/data.rs:101:21
|
101 | #[derive(Serialize, Deserialize, Debug)]
| ^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/image/opts.rs:11:17
|
11 | #[derive(Clone, Serialize, Debug)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 22, error_len: Some(1) }
error: proc-macro derive panicked
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/errors.rs:16:17
|
16 | #[derive(Debug, ThisError)]
| ^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 18, error_len: Some(1) }
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/conn/transport.rs:366:18
|
366 | .map_err(Error::from)
| ------- ^^^^^^^^^^^
| | |
| | expected signature of `fn(hyper::Error) -> _`
| | found signature of `fn(errors::Error) -> _`
| required by a bound introduced by this call
|
note: required by a bound in `std::result::Result::<T, E>::map_err`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:182:50
|
182 | Ok(serde_json::from_str::<T>(&raw_string)?)
| ^ the trait `From<serde_json::Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, serde_json::Error>>` for `std::result::Result<T, errors::Error>`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/conn/transport.rs:179:54
|
179 | let bytes = hyper::body::to_bytes(body).await?;
| ^ the trait `From<hyper::Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, hyper::Error>>` for `std::result::Result<std::string::String, errors::Error>`
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/conn/transport.rs:180:51
|
180 | String::from_utf8(bytes.to_vec()).map_err(Error::from)
| ------- ^^^^^^^^^^^
| | |
| | expected signature of `fn(FromUtf8Error) -> _`
| | found signature of `fn(errors::Error) -> _`
| required by a bound introduced by this call
|
note: required by a bound in `std::result::Result::<T, E>::map_err`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:218:51
|
218 | Ok(serde_json::from_str::<T>(&&raw_string)?)
| ^ the trait `From<serde_json::Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, serde_json::Error>>` for `std::result::Result<T, errors::Error>`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:238:50
|
238 | Ok(serde_json::from_str::<T>(&raw_string)?)
| ^ the trait `From<serde_json::Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, serde_json::Error>>` for `std::result::Result<T, errors::Error>`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:254:50
|
254 | Ok(serde_json::from_str::<T>(&raw_string)?)
| ^ the trait `From<serde_json::Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, serde_json::Error>>` for `std::result::Result<T, errors::Error>`
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/conn/transport.rs:467:41
|
467 | .map(|chunk| (chunk.map_err(Error::from), body))
| ------- ^^^^^^^^^^^
| | |
| | expected signature of `fn(hyper::Error) -> _`
| | found signature of `fn(errors::Error) -> _`
| required by a bound introduced by this call
|
note: required by a bound in `std::result::Result::<T, E>::map_err`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/conn/transport.rs:252:78
|
252 | let bytes = hyper::body::to_bytes(response.into_body()).await?;
| ^ the trait `From<hyper::Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, hyper::Error>>` for `std::result::Result<Body, errors::Error>`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/conn/transport.rs:253:69
|
253 | let message_body = String::from_utf8(bytes.to_vec())?;
| ^ the trait `From<FromUtf8Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, FromUtf8Error>>` for `std::result::Result<Body, errors::Error>`
error[E0308]: mismatched types
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/conn/transport.rs:487:50
|
487 | return Some((Err(Error::from(e)), body));
| ^ expected enum `errors::Error`, found struct `hyper::Error`
|
help: try wrapping the expression in `errors::Error::Hyper`
|
487 | return Some((Err(Error::from(errors::Error::Hyper(e))), body));
| +++++++++++++++++++++ +
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:314:26
|
314 | .map_err(Error::from);
| ------- ^^^^^^^^^^^
| | |
| | expected signature of `fn(serde_json::Error) -> _`
| | found signature of `fn(errors::Error) -> _`
| required by a bound introduced by this call
|
note: required by a bound in `futures_util::TryStreamExt::map_err`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.17/src/stream/try_stream/mod.rs:228:12
|
228 | F: FnMut(Self::Error) -> E,
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `futures_util::TryStreamExt::map_err`
error[E0277]: the trait bound `futures_util::fns::MapErrFn<fn(errors::Error) -> errors::Error {<errors::Error as From<errors::Error>>::from}>: futures_util::fns::FnMut1<std::result::Result<_, serde_json::Error>>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:318:14
|
318 | .try_flatten()
| ^^^^^^^^^^^ the trait `futures_util::fns::FnMut1<std::result::Result<_, serde_json::Error>>` is not implemented for `futures_util::fns::MapErrFn<fn(errors::Error) -> errors::Error {<errors::Error as From<errors::Error>>::from}>`
|
= help: the following implementations were found:
<futures_util::fns::MapErrFn<F> as futures_util::fns::FnMut1<std::result::Result<T, E>>>
= note: required because of the requirements on the impl of `futures_util::Stream` for `futures_util::stream::Map<futures_util::stream::IntoStream<futures_util::stream::Iter<std::vec::IntoIter<std::result::Result<_, serde_json::Error>>>>, futures_util::fns::MapErrFn<fn(errors::Error) -> errors::Error {<errors::Error as From<errors::Error>>::from}>>`
= note: required because of the requirements on the impl of `TryStream` for `futures_util::stream::MapErr<futures_util::stream::Iter<std::vec::IntoIter<std::result::Result<_, serde_json::Error>>>, fn(errors::Error) -> errors::Error {<errors::Error as From<errors::Error>>::from}>`
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:318:14
|
318 | .try_flatten()
| ^^^^^^^^^^^
| |
| expected signature of `fn(serde_json::Error) -> _`
| found signature of `fn(errors::Error) -> _`
|
= note: required because of the requirements on the impl of `futures_util::fns::FnOnce1<serde_json::Error>` for `fn(errors::Error) -> errors::Error {<errors::Error as From<errors::Error>>::from}`
= note: required because of the requirements on the impl of `TryStream` for `futures_util::stream::MapErr<futures_util::stream::Iter<std::vec::IntoIter<std::result::Result<_, serde_json::Error>>>, fn(errors::Error) -> errors::Error {<errors::Error as From<errors::Error>>::from}>`
error[E0277]: the trait bound `futures_util::fns::MapErrFn<fn(errors::Error) -> errors::Error {<errors::Error as From<errors::Error>>::from}>: futures_util::fns::FnMut1<std::result::Result<T, serde_json::Error>>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:301:10
|
301 | ) -> impl Stream<Item = Result<T>> + 'a
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `futures_util::fns::FnMut1<std::result::Result<T, serde_json::Error>>` is not implemented for `futures_util::fns::MapErrFn<fn(errors::Error) -> errors::Error {<errors::Error as From<errors::Error>>::from}>`
|
= help: the following implementations were found:
<futures_util::fns::MapErrFn<F> as futures_util::fns::FnMut1<std::result::Result<T, E>>>
= note: required because of the requirements on the impl of `futures_util::Stream` for `futures_util::stream::Map<futures_util::stream::IntoStream<futures_util::stream::Iter<std::vec::IntoIter<std::result::Result<T, serde_json::Error>>>>, futures_util::fns::MapErrFn<fn(errors::Error) -> errors::Error {<errors::Error as From<errors::Error>>::from}>>`
= note: required because of the requirements on the impl of `TryStream` for `futures_util::stream::MapErr<futures_util::stream::Iter<std::vec::IntoIter<std::result::Result<T, serde_json::Error>>>, fn(errors::Error) -> errors::Error {<errors::Error as From<errors::Error>>::from}>`
= note: 1 redundant requirement hidden
= note: required because of the requirements on the impl of `futures_util::Stream` for `futures_util::stream::TryFlatten<futures_util::stream::AndThen<impl futures_util::Stream<Item = std::result::Result<hyper::body::Bytes, errors::Error>>, impl futures_util::Future<Output = [async output]>, [closure@/home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:307:23: 317:14]>>`
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:301:10
|
301 | ) -> impl Stream<Item = Result<T>> + 'a
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| expected signature of `fn(serde_json::Error) -> _`
| found signature of `fn(errors::Error) -> _`
|
= note: required because of the requirements on the impl of `futures_util::fns::FnOnce1<serde_json::Error>` for `fn(errors::Error) -> errors::Error {<errors::Error as From<errors::Error>>::from}`
= note: required because of the requirements on the impl of `TryStream` for `futures_util::stream::MapErr<futures_util::stream::Iter<std::vec::IntoIter<std::result::Result<T, serde_json::Error>>>, fn(errors::Error) -> errors::Error {<errors::Error as From<errors::Error>>::from}>`
= note: required because of the requirements on the impl of `futures_util::Stream` for `futures_util::stream::TryFlatten<futures_util::stream::AndThen<impl futures_util::Stream<Item = std::result::Result<hyper::body::Bytes, errors::Error>>, impl futures_util::Future<Output = [async output]>, [closure@/home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:307:23: 317:14]>>`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/conn/transport.rs:395:85
|
395 | StatusCode::SWITCHING_PROTOCOLS => Ok(hyper::upgrade::on(response).await?),
| ^ the trait `From<hyper::Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, hyper::Error>>` for `std::result::Result<Upgraded, errors::Error>`
error[E0277]: the trait bound `errors::Error: StdError` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/conn/tty.rs:88:59
|
88 | .map_err(|e| io::Error::new(io::ErrorKind::Other, e))
| -------------- ^ the trait `StdError` is not implemented for `errors::Error`
| |
| required by a bound introduced by this call
|
= note: required because of the requirements on the impl of `From<errors::Error>` for `Box<(dyn StdError + std::marker::Send + std::marker::Sync + 'static)>`
= note: required because of the requirements on the impl of `Into<Box<(dyn StdError + std::marker::Send + std::marker::Sync + 'static)>>` for `errors::Error`
note: required by a bound in `std::io::Error::new`
error[E0277]: the trait bound `errors::Error: StdError` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/mod.rs:95:67
|
95 | .map_err(|e| io::Error::new(io::ErrorKind::Other, e)),
| -------------- ^ the trait `StdError` is not implemented for `errors::Error`
| |
| required by a bound introduced by this call
|
= note: required because of the requirements on the impl of `From<errors::Error>` for `Box<(dyn StdError + std::marker::Send + std::marker::Sync + 'static)>`
= note: required because of the requirements on the impl of `Into<Box<(dyn StdError + std::marker::Send + std::marker::Sync + 'static)>>` for `errors::Error`
note: required by a bound in `std::io::Error::new`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/mod.rs:251:10
|
251 | )?;
| ^ the trait `From<std::io::Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, std::io::Error>>` for `std::result::Result<(), errors::Error>`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/mod.rs:252:35
|
252 | let data = ar.into_inner()?;
| ^ the trait `From<std::io::Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, std::io::Error>>` for `std::result::Result<(), errors::Error>`
error[E0277]: the trait bound `image::data::Status: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/image/mod.rs:28:75
|
28 | DeleteWithOpts -> &format!("/images/{}", img.name), DeleteStatus, delete_json
| ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `image::data::Status`
|
= note: required because of the requirements on the impl of `for<'de> Deserialize<'de>` for `Vec<image::data::Status>`
= note: required because of the requirements on the impl of `DeserializeOwned` for `Vec<image::data::Status>`
note: required by a bound in `Docker::delete_json`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:247:40
|
247 | pub(crate) async fn delete_json<T: DeserializeOwned>(&self, endpoint: &str) -> Result<T> {
| ^^^^^^^^^^^^^^^^ required by this bound in `Docker::delete_json`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/image/mod.rs:102:27
|
102 | tar_result?;
| ^ the trait `From<std::io::Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, std::io::Error>>` for `std::result::Result<impl futures_util::Stream<Item = std::result::Result<_, errors::Error>>, errors::Error>`
error[E0277]: the trait bound `for<'de> image::data::ImageBuildChunk: Deserialize<'de>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/image/mod.rs:105:28
|
105 | docker.stream_post_into(ep, Payload::Tar(bytes), Headers::none());
| ^^^^^^^^^^^^^^^^ the trait `for<'de> Deserialize<'de>` is not implemented for `image::data::ImageBuildChunk`
|
= note: required because of the requirements on the impl of `DeserializeOwned` for `image::data::ImageBuildChunk`
note: required by a bound in `Docker::stream_post_into`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:304:12
|
296 | pub(crate) fn stream_post_into<'a, B, T>(
| ---------------- required by a bound in this
...
304 | T: DeserializeOwned,
| ^^^^^^^^^^^^^^^^ required by this bound in `Docker::stream_post_into`
error[E0277]: the trait bound `for<'de> image::data::ImageBuildChunk: Deserialize<'de>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/image/mod.rs:136:30
|
136 | Box::pin(self.docker.stream_post_into(
| ^^^^^^^^^^^^^^^^ the trait `for<'de> Deserialize<'de>` is not implemented for `image::data::ImageBuildChunk`
|
= note: required because of the requirements on the impl of `DeserializeOwned` for `image::data::ImageBuildChunk`
note: required by a bound in `Docker::stream_post_into`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:304:12
|
296 | pub(crate) fn stream_post_into<'a, B, T>(
| ---------------- required by a bound in this
...
304 | T: DeserializeOwned,
| ^^^^^^^^^^^^^^^^ required by this bound in `Docker::stream_post_into`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/image/mod.rs:171:48
|
171 | tarball.read_to_end(&mut bytes)?;
| ^ the trait `From<std::io::Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, std::io::Error>>` for `std::result::Result<impl futures_util::Stream<Item = std::result::Result<_, errors::Error>>, errors::Error>`
error[E0277]: the trait bound `for<'de> image::data::ImageBuildChunk: Deserialize<'de>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/image/mod.rs:173:48
|
173 | let value_stream = self.docker.stream_post_into(
| ^^^^^^^^^^^^^^^^ the trait `for<'de> Deserialize<'de>` is not implemented for `image::data::ImageBuildChunk`
|
= note: required because of the requirements on the impl of `DeserializeOwned` for `image::data::ImageBuildChunk`
note: required by a bound in `Docker::stream_post_into`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/docker.rs:304:12
|
296 | pub(crate) fn stream_post_into<'a, B, T>(
| ---------------- required by a bound in this
...
304 | T: DeserializeOwned,
| ^^^^^^^^^^^^^^^^ required by this bound in `Docker::stream_post_into`
error[E0277]: the trait bound `errors::Error: StdError` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/system/mod.rs:47:67
|
47 | .map_err(|e| io::Error::new(io::ErrorKind::Other, e)),
| -------------- ^ the trait `StdError` is not implemented for `errors::Error`
| |
| required by a bound introduced by this call
|
= note: required because of the requirements on the impl of `From<errors::Error>` for `Box<(dyn StdError + std::marker::Send + std::marker::Sync + 'static)>`
= note: required because of the requirements on the impl of `Into<Box<(dyn StdError + std::marker::Send + std::marker::Sync + 'static)>>` for `errors::Error`
note: required by a bound in `std::io::Error::new`
error[E0277]: `errors::Error` doesn't implement `std::fmt::Display`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:82:20
|
82 | ports.push(PublishPort::from_str(port.as_str()).map_err(serde::de::Error::custom)?);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `errors::Error` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `errors::Error`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
note: required by a bound in `exec::_::_serde::de::Error::custom`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:297:1
|
297 | declare_error_trait!(Error: Sized + StdError);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `exec::_::_serde::de::Error::custom`
= note: this error originates in the macro `declare_error_trait` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: `errors::Error` doesn't implement `std::fmt::Display`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:82:65
|
82 | ports.push(PublishPort::from_str(port.as_str()).map_err(serde::de::Error::custom)?);
| ^^^^^^^^^^^^^^^^^^^^^^^^ `errors::Error` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `errors::Error`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
note: required by a bound in `exec::_::_serde::de::Error::custom`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:297:1
|
297 | declare_error_trait!(Error: Sized + StdError);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `exec::_::_serde::de::Error::custom`
= note: this error originates in the macro `declare_error_trait` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/opts.rs:171:56
|
171 | serde_json::to_string(&self.to_json()).map_err(Error::from)
| ------- ^^^^^^^^^^^
| | |
| | expected signature of `fn(serde_json::Error) -> _`
| | found signature of `fn(errors::Error) -> _`
| required by a bound introduced by this call
|
note: required by a bound in `std::result::Result::<T, E>::map_err`
error[E0277]: the trait bound `RegistryAuth: Serialize` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/image/opts.rs:49:31
|
49 | serde_json::to_string(self)
| --------------------- ^^^^ the trait `Serialize` is not implemented for `RegistryAuth`
| |
| required by a bound introduced by this call
|
note: required by a bound in `serde_json::to_string`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.68/src/ser.rs:2216:17
|
2216 | T: ?Sized + Serialize,
| ^^^^^^^^^ required by this bound in `serde_json::to_string`
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/network/opts.rs:104:53
|
104 | serde_json::to_string(&self.params).map_err(Error::from)
| ------- ^^^^^^^^^^^
| | |
| | expected signature of `fn(serde_json::Error) -> _`
| | found signature of `fn(errors::Error) -> _`
| required by a bound introduced by this call
|
note: required by a bound in `std::result::Result::<T, E>::map_err`
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/network/opts.rs:183:53
|
183 | serde_json::to_string(&self.params).map_err(Error::from)
| ------- ^^^^^^^^^^^
| | |
| | expected signature of `fn(serde_json::Error) -> _`
| | found signature of `fn(errors::Error) -> _`
| required by a bound introduced by this call
|
note: required by a bound in `std::result::Result::<T, E>::map_err`
error[E0277]: `?` couldn't convert the error to `errors::Error`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/conn/transport.rs:342:46
|
342 | return Ok(req.body(Body::empty())?);
| ^ the trait `From<http::Error>` is not implemented for `errors::Error`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, http::Error>>` for `std::result::Result<Request<Body>, errors::Error>`
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/conn/transport.rs:352:22
|
352 | .map_err(Error::from)
| ------- ^^^^^^^^^^^
| | |
| | expected signature of `fn(http::Error) -> _`
| | found signature of `fn(errors::Error) -> _`
| required by a bound introduced by this call
|
note: required by a bound in `std::result::Result::<T, E>::map_err`
error[E0277]: the trait bound `MountType: Serialize` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:171:5
|
171 | #[serde(rename = "Type")]
| ^ the trait `Serialize` is not implemented for `MountType`
|
= note: required because of the requirements on the impl of `Serialize` for `std::option::Option<MountType>`
note: required by a bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/ser/mod.rs:1899:12
|
1899 | T: Serialize;
| ^^^^^^^^^ required by this bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
error[E0277]: the trait bound `MountConsistency: Serialize` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:176:5
|
176 | pub consistency: Option<MountConsistency>,
| ^^^ the trait `Serialize` is not implemented for `MountConsistency`
|
= note: required because of the requirements on the impl of `Serialize` for `std::option::Option<MountConsistency>`
note: required by a bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/ser/mod.rs:1899:12
|
1899 | T: Serialize;
| ^^^^^^^^^ required by this bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
error[E0277]: the trait bound `MountType: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:171:5
|
171 | #[serde(rename = "Type")]
| ^ the trait `Deserialize<'_>` is not implemented for `MountType`
|
= note: required because of the requirements on the impl of `Deserialize<'_>` for `std::option::Option<MountType>`
note: required by a bound in `next_element`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1705:12
|
1705 | T: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_element`
error[E0277]: the trait bound `MountConsistency: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:176:5
|
176 | pub consistency: Option<MountConsistency>,
| ^^^ the trait `Deserialize<'_>` is not implemented for `MountConsistency`
|
= note: required because of the requirements on the impl of `Deserialize<'_>` for `std::option::Option<MountConsistency>`
note: required by a bound in `next_element`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1705:12
|
1705 | T: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_element`
error[E0277]: the trait bound `MountType: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:171:5
|
171 | #[serde(rename = "Type")]
| ^ the trait `Deserialize<'_>` is not implemented for `MountType`
|
= note: required because of the requirements on the impl of `Deserialize<'_>` for `std::option::Option<MountType>`
note: required by a bound in `next_value`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1844:12
|
1844 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_value`
error[E0277]: the trait bound `MountConsistency: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:176:5
|
176 | pub consistency: Option<MountConsistency>,
| ^^^ the trait `Deserialize<'_>` is not implemented for `MountConsistency`
|
= note: required because of the requirements on the impl of `Deserialize<'_>` for `std::option::Option<MountConsistency>`
note: required by a bound in `next_value`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1844:12
|
1844 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_value`
error[E0277]: the trait bound `BindPropagation: Serialize` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:211:5
|
211 | pub propagation: Option<BindPropagation>,
| ^^^ the trait `Serialize` is not implemented for `BindPropagation`
|
= note: required because of the requirements on the impl of `Serialize` for `std::option::Option<BindPropagation>`
note: required by a bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/ser/mod.rs:1899:12
|
1899 | T: Serialize;
| ^^^^^^^^^ required by this bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
error[E0277]: the trait bound `BindPropagation: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:211:5
|
211 | pub propagation: Option<BindPropagation>,
| ^^^ the trait `Deserialize<'_>` is not implemented for `BindPropagation`
|
= note: required because of the requirements on the impl of `Deserialize<'_>` for `std::option::Option<BindPropagation>`
note: required by a bound in `next_element`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1705:12
|
1705 | T: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_element`
error[E0277]: the trait bound `BindPropagation: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:211:5
|
211 | pub propagation: Option<BindPropagation>,
| ^^^ the trait `Deserialize<'_>` is not implemented for `BindPropagation`
|
= note: required because of the requirements on the impl of `Deserialize<'_>` for `std::option::Option<BindPropagation>`
note: required by a bound in `next_value`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1844:12
|
1844 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_value`
error[E0277]: the trait bound `container::data::ContainerStatus: Serialize` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:260:5
|
260 | pub status: ContainerStatus,
| ^^^ the trait `Serialize` is not implemented for `container::data::ContainerStatus`
|
note: required by a bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/ser/mod.rs:1899:12
|
1899 | T: Serialize;
| ^^^^^^^^^ required by this bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
error[E0277]: the trait bound `container::data::ContainerStatus: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:260:5
|
260 | pub status: ContainerStatus,
| ^^^ the trait `Deserialize<'_>` is not implemented for `container::data::ContainerStatus`
|
note: required by a bound in `next_element`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1705:12
|
1705 | T: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_element`
error[E0277]: the trait bound `container::data::ContainerStatus: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:260:5
|
260 | pub status: ContainerStatus,
| ^^^ the trait `Deserialize<'_>` is not implemented for `container::data::ContainerStatus`
|
note: required by a bound in `next_value`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1844:12
|
1844 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_value`
error[E0277]: the trait bound `HealthStatus: Serialize` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:284:5
|
284 | pub status: HealthStatus,
| ^^^ the trait `Serialize` is not implemented for `HealthStatus`
|
note: required by a bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/ser/mod.rs:1899:12
|
1899 | T: Serialize;
| ^^^^^^^^^ required by this bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
error[E0277]: the trait bound `HealthStatus: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:284:5
|
284 | pub status: HealthStatus,
| ^^^ the trait `Deserialize<'_>` is not implemented for `HealthStatus`
|
note: required by a bound in `next_element`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1705:12
|
1705 | T: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_element`
error[E0277]: the trait bound `HealthStatus: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/data.rs:284:5
|
284 | pub status: HealthStatus,
| ^^^ the trait `Deserialize<'_>` is not implemented for `HealthStatus`
|
note: required by a bound in `next_value`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1844:12
|
1844 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_value`
error[E0277]: the trait bound `Protocol: Serialize` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/opts.rs:239:5
|
239 | protocol: Protocol,
| ^^^^^^^^ the trait `Serialize` is not implemented for `Protocol`
|
note: required by a bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/ser/mod.rs:1899:12
|
1899 | T: Serialize;
| ^^^^^^^^^ required by this bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
error[E0277]: the trait bound `Protocol: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/opts.rs:239:5
|
239 | protocol: Protocol,
| ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `Protocol`
|
note: required by a bound in `next_element`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1705:12
|
1705 | T: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_element`
error[E0277]: the trait bound `Protocol: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/container/opts.rs:239:5
|
239 | protocol: Protocol,
| ^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `Protocol`
|
note: required by a bound in `next_value`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1844:12
|
1844 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_value`
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/builder.rs:184:57
|
184 | serde_json::to_string(&self.params).map_err(crate::Error::from)
| ^^^^^^^
| |
| expected signature of `fn(serde_json::Error) -> _`
| found signature of `fn(errors::Error) -> _`
|
::: /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/exec.rs:160:1
|
160 | impl_opts_builder!(json => ExecContainer);
| ----------------------------------------- in this macro invocation
|
note: required by a bound in `std::result::Result::<T, E>::map_err`
= note: this error originates in the macro `impl_opts_builder` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/builder.rs:184:57
|
184 | serde_json::to_string(&self.params).map_err(crate::Error::from)
| ^^^^^^^
| |
| expected signature of `fn(serde_json::Error) -> _`
| found signature of `fn(errors::Error) -> _`
|
::: /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/exec.rs:211:1
|
211 | impl_opts_builder!(json => ExecResize);
| -------------------------------------- in this macro invocation
|
note: required by a bound in `std::result::Result::<T, E>::map_err`
= note: this error originates in the macro `impl_opts_builder` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `container::opts::Isolation: Serialize` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/system/data.rs:101:5
|
101 | pub isolation: Isolation,
| ^^^ the trait `Serialize` is not implemented for `container::opts::Isolation`
|
note: required by a bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/ser/mod.rs:1899:12
|
1899 | T: Serialize;
| ^^^^^^^^^ required by this bound in `exec::_::_serde::ser::SerializeStruct::serialize_field`
error[E0277]: the trait bound `container::opts::Isolation: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/system/data.rs:101:5
|
101 | pub isolation: Isolation,
| ^^^ the trait `Deserialize<'_>` is not implemented for `container::opts::Isolation`
|
note: required by a bound in `next_element`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1705:12
|
1705 | T: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_element`
error[E0277]: the trait bound `container::opts::Isolation: Deserialize<'_>` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/system/data.rs:101:5
|
101 | pub isolation: Isolation,
| ^^^ the trait `Deserialize<'_>` is not implemented for `container::opts::Isolation`
|
note: required by a bound in `next_value`
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.130/src/de/mod.rs:1844:12
|
1844 | V: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `next_value`
error[E0631]: type mismatch in function arguments
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/builder.rs:184:57
|
184 | serde_json::to_string(&self.params).map_err(crate::Error::from)
| ^^^^^^^
| |
| expected signature of `fn(serde_json::Error) -> _`
| found signature of `fn(errors::Error) -> _`
|
::: /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/docker-api-0.5.1/src/api/volume/opts.rs:3:1
|
3 | impl_opts_builder!(json => VolumeCreate);
| ---------------------------------------- in this macro invocation
|
note: required by a bound in `std::result::Result::<T, E>::map_err`
= note: this error originates in the macro `impl_opts_builder` (in Nightly builds, run with -Z macro-backtrace for more info)
Some errors have detailed explanations: E0277, E0308, E0631.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `docker-api` due to 80 previous errors
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'pkger-rs-0.7.0-1':
error: packages failed to build: pkger-rs-0.7.0-1
And for hck
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Compiling libc v0.2.97
Compiling proc-macro2 v1.0.27
Compiling unicode-xid v0.2.2
Compiling syn v1.0.73
Compiling pkg-config v0.3.19
Compiling log v0.4.14
Compiling cfg-if v1.0.0
Compiling bitflags v1.2.1
Compiling memchr v2.4.0
Compiling serde_derive v1.0.126
Compiling matches v0.1.8
Compiling tinyvec_macros v0.1.0
Compiling serde v1.0.126
Compiling version_check v0.9.3
Compiling percent-encoding v2.1.0
Compiling semver v1.0.3
Compiling lazy_static v1.4.0
Compiling regex-automata v0.1.10
Compiling futures-core v0.3.16
Compiling regex-syntax v0.6.25
Compiling scopeguard v1.1.0
Compiling crc32fast v1.2.1
Compiling unicode-segmentation v1.7.1
Compiling unicode-width v0.1.8
Compiling termcolor v1.1.2
Compiling ansi_term v0.11.0
Compiling futures-sink v0.3.16
Compiling vec_map v0.8.2
Compiling strsim v0.8.0
Compiling anyhow v1.0.41
Compiling fnv v1.0.7
Compiling humantime v2.1.0
Compiling byteorder v1.4.3
Compiling same-file v1.0.6
Compiling bytes v1.1.0
Compiling bytecount v0.6.2
Compiling unicode-bidi v0.3.5
Compiling tinyvec v1.2.0
Compiling form_urlencoded v1.0.1
Compiling lock_api v0.4.5
Compiling textwrap v0.11.0
Compiling heck v0.3.3
Compiling proc-macro-error-attr v1.0.4
Compiling proc-macro-error v1.0.4
Compiling spin v0.9.2
Compiling aho-corasick v0.7.18
Compiling bstr v0.2.16
Compiling unicode-normalization v0.1.19
Compiling quote v1.0.9
Compiling atty v0.2.14
Compiling getrandom v0.2.3
Compiling num_cpus v1.13.0
Compiling memmap2 v0.2.3
Compiling clap v2.33.3
Compiling jobserver v0.1.22
Compiling core_affinity v0.5.10
Compiling nanorand v0.6.1
Compiling ripline v0.1.0
Compiling cc v1.0.68
Compiling regex v1.5.4
Compiling cmake v0.1.45
Compiling idna v0.2.3
Compiling url v2.2.2
Compiling globset v0.4.8
Compiling env_logger v0.9.0
Compiling grep-cli v0.1.6
Compiling libz-sys v1.1.3
Compiling libgit2-sys v0.12.21+1.1.0
Compiling libdeflate-sys v0.7.3
Compiling libdeflater v0.7.3
Compiling pin-project-internal v1.0.8
Compiling thiserror-impl v1.0.26
Compiling structopt-derive v0.4.18
Compiling flate2 v1.0.20
Compiling git2 v0.13.20
Compiling thiserror v1.0.26
Compiling structopt v0.3.25
Compiling pin-project v1.0.8
Compiling flume v0.10.9
error: expected `tic``
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/flume-0.10.9/src/async.rs:180:1
|
180 | impl<'a, T> PinnedDrop for SendFut<'a, T> {
| ^^^^
error[E0277]: the trait bound `SendFut<'a, T>: PinnedDrop` is not satisfied
--> /home/roland/.cargo/registry/src/github.com-1ecc6299db9ec823/flume-0.10.9/src/async.rs:132:15
|
132 | #[pin_project(PinnedDrop)]
| ^^^^^^^^^^ the trait `PinnedDrop` is not implemented for `SendFut<'a, T>`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `flume` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'hck-0.7.1-1':
error: packages failed to build: hck-0.7.1-1
Is this something that I should more alarm these project or it's something in mold?
Looks like they are Rust compile errors and not mold's error. Can you build them without mold?
If I change link-arg=-fuse-ld=/usr/bin/mold
to link-arg=-fuse-ld=lld
hck, exa-git, garbage and pkger-rs builds without warnings or errors.
FYI, using rustc with mold is AFAIK best done by invoking cargo over mold: mold -run cargo b
. If you can't influence the direct invocation of cargo, consider checking out the full SO discussion on this topic.
@Chaostheorie Thank you for this information's. @rui314 sorry for bothering you with this. I know now everything. Thank you both.
@rui314 @Chaostheorie
I wanted to confirm, that with commit https://github.com/rui314/mold/commit/4caadefac64b99157231e3bb727c2674f8a5d328 I was able to build applications written in Rust that are in AUR with this in my makepkg.conf
without any strange hacks:
CARGO_PROFILE_RELEASE_LTO="thin"
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang
RUSTFLAGS="-C opt-level=3 -C target-cpu=native -C linker=clang -C linker-plugin-lto -C link-arg=-flto -C link-arg=-fuse-ld=/usr/bin/mold"
Thank you for your hard work. <3
Hi,
I'm so sorry for this spam again. I tried compiles now apps from AUR that are written in rust, like garbage, pkger-rs, exa and I see this error:
I tried without LTO, but was the same problem. I'm not sure is this really mold problem or something with Arch or maybe rustup instance.
My makepkg.