Skip to content

build failed on Windows #14

@rarewin

Description

@rarewin
   Compiling rust-coreutils v0.1.0 (C:\Users\024384\work\rust\rust-coreutils)
error[E0432]: unresolved imports `libc::uname`, `libc::utsname`
 --> src\uname.rs:3:20
  |
3 | use libc::{c_char, uname, utsname};
  |                    ^^^^^  ^^^^^^^ no `utsname` in the root
  |                    |
  |                    no `uname` in the root

error[E0412]: cannot find type `utsname` in crate `libc`
  --> src\uname.rs:72:38
   |
72 |         uname(&mut buf as *mut libc::utsname);
   |                                      ^^^^^^^ not found in `libc`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0412, E0432.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `rust-coreutils`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions