Skip to content

build failed on loongarch64 #5572

@zoze0

Description

@zoze0

cargo install coreutils get error:

error[E0308]: mismatched types
   --> /home/test/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/uucore-0.0.23/src/lib/features/fs.rs:124:16
    |
111 |     pub fn number_of_links(&self) -> u64 {
    |                                      --- expected `u64` because of return type
...
124 |         return self.0.st_nlink;
    |                ^^^^^^^^^^^^^^^ expected `u64`, found `u32`
    |
help: you can convert a `u32` to a `u64`
    |
124 |         return self.0.st_nlink.into();
    |                               +++++++

   Compiling rand_chacha v0.3.1
For more information about this error, try `rustc --explain E0308`.
error: could not compile `uucore` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `coreutils v0.0.23`, intermediate artifacts can be found at `/tmp/cargo-installt39iFF`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions