Skip to content

0.8.0 fail to compile uu_stty (lib) on ppc64le #11687

@omnivagant

Description

@omnivagant
warning: use of deprecated type alias `uucore::libc::time_t`: This type is changed to 64-bit in musl 1.2.0, we'll follow
 that change in the future release. See #1848 for more info.
  --> src/uu/uptime/src/uptime.rs:17:19
   |
17 | use uucore::libc::time_t;
   |                   ^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: use of deprecated type alias `uucore::libc::time_t`: This type is changed to 64-bit in musl 1.2.0, we'll follow
 that change in the future release. See #1848 for more info.
   --> src/uu/uptime/src/uptime.rs:238:54
    |
238 | fn process_utmpx(file: Option<&OsString>) -> (Option<time_t>, usize) {
    |                                                      ^^^^^^

warning: use of deprecated type alias `uucore::libc::time_t`: This type is changed to 64-bit in musl 1.2.0, we'll follow
 that change in the future release. See #1848 for more info.
   --> src/uu/uptime/src/uptime.rs:253:61
    |
253 |                     boot_time = Some(dt.unix_timestamp() as time_t);
    |                                                             ^^^^^^

warning: use of deprecated type alias `uucore::libc::time_t`: This type is changed to 64-bit in musl 1.2.0, we'll follow
 that change in the future release. See #1848 for more info.
   --> src/uu/uptime/src/uptime.rs:284:35
    |
284 | fn print_uptime(boot_time: Option<time_t>) -> UResult<()> {
    |                                   ^^^^^^

   Compiling uu_b2sum v0.8.0 (/builds/alpine/aports/community/uutils/src/coreutils-0.8.0/src/uu/b2sum)
   Compiling uu_sha1sum v0.8.0 (/builds/alpine/aports/community/uutils/src/coreutils-0.8.0/src/uu/sha1sum)
   Compiling uu_cksum v0.8.0 (/builds/alpine/aports/community/uutils/src/coreutils-0.8.0/src/uu/cksum)
   Compiling uu_md5sum v0.8.0 (/builds/alpine/aports/community/uutils/src/coreutils-0.8.0/src/uu/md5sum)
   Compiling uu_sha512sum v0.8.0 (/builds/alpine/aports/community/uutils/src/coreutils-0.8.0/src/uu/sha512sum)
   Compiling uu_sha384sum v0.8.0 (/builds/alpine/aports/community/uutils/src/coreutils-0.8.0/src/uu/sha384sum)
   Compiling uu_sha256sum v0.8.0 (/builds/alpine/aports/community/uutils/src/coreutils-0.8.0/src/uu/sha256sum)
   Compiling uu_sha224sum v0.8.0 (/builds/alpine/aports/community/uutils/src/coreutils-0.8.0/src/uu/sha224sum)
error[E0599]: `BaudRate` doesn't implement `std::fmt::Display`
   --> src/uu/stty/src/stty.rs:656:20
    |
656 |       printer.print(&translate!("stty-output-speed", "speed" => speed));
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `BaudRate` due t
o unsatisfied trait bounds
    |
   ::: /builds/alpine/aports/community/uutils/tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.31.2/src/mac
ros.rs:131:9
    |
131 | /         $v enum $BitFlags {
132 | |             $($entries)*
133 | |         }
    | |_________- doesn't satisfy `BaudRate: ToString` or `BaudRate: std::fmt::Display`
    |
    = note: the following trait bounds were not satisfied:
            `BaudRate: std::fmt::Display`
            which is required by `BaudRate: ToString`
    = note: this error originates in the macro `translate` (in Nightly builds, run with -Z macro-backtrace for more info
)

   Compiling uu_basenc v0.8.0 (/builds/alpine/aports/community/uutils/src/coreutils-0.8.0/src/uu/basenc)
   Compiling uu_base64 v0.8.0 (/builds/alpine/aports/community/uutils/src/coreutils-0.8.0/src/uu/base64)
For more information about this error, try `rustc --explain E0599`.
error: could not compile `uu_stty` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
warning: `uu_uptime` (lib) generated 4 warnings
warning: `uucore` (lib) generated 4 warnings

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions