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
When I fork local the following errors occur when compiling locally. The error log probably means that my cargo source cannot find the corresponding os
Compiling procfs v0.12.0
error[E0433]: failed to resolve: could not find `linux` in `os`
--> /Users/jameszow/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.12.0/src/process/mod.rs:66:14
|
66 | use std::os::linux::fs::MetadataExt;
| ^^^^^ could not find `linux` in `os`
error[E0425]: cannot find function `stat64` incrate `libc`
--> /Users/jameszow/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.12.0/src/process/namespaces.rs:25:31
|
25 | ifunsafe{ libc::stat64(cstr.as_ptr(),&mut stat)} != 0{
| ^^^^^^ help: a function with a similar name exists: `stat`
|
::: /Users/jameszow/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.126/src/unix/mod.rs:726:5
|
726 | pub fn stat(path:*const c_char, buf:*mut stat) -> ::c_int;
| ----------------------------------------------------------- similarly named function `stat` defined here
Compiling http-body v0.1.0
error[E0599]: no method named `st_mode` found for struct `Metadata` in the current scope
--> /Users/jameszow/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.12.0/src/process/mod.rs:701:23
|
701 | mode:(md.st_mode()as libc::mode_t)& libc::S_IRWXU,
| ^^^^^^^ method not found in `Metadata`
|
::: /Users/jameszow/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/os/macos/fs.rs:34:8
|
34 | fn st_mode(&self) -> u32;
| ------- the method is available for `Metadata` here
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
55 | use std::os::macos::fs::MetadataExt;
|
error[E0599]: no method named `st_uid` found for struct `Metadata` in the current scope
--> /Users/jameszow/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.12.0/src/process/mod.rs:759:23
|
759 | owner: md.st_uid(),
| ^^^^^^ method not found in `Metadata`
|
::: /Users/jameszow/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/os/macos/fs.rs:38:8
|
38 | fn st_uid(&self) -> u32;
| ------ the method is available for `Metadata` here
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
55 | use std::os::macos::fs::MetadataExt;
|
error[E0599]: no method named `st_mode` found for struct `Metadata` in the current scope
--> /Users/jameszow/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.12.0/src/process/mod.rs:994:31
|
994 | mode:(md.st_mode()as libc::mode_t)& libc::S_IRWXU,
| ^^^^^^^ method not found in `Metadata`
|
::: /Users/jameszow/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/os/macos/fs.rs:34:8
|
34 | fn st_mode(&self) -> u32;
| ------- the method is available for `Metadata` here
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
55 | use std::os::macos::fs::MetadataExt;
|
Some errors have detailed explanations:E0425,E0433,E0599.For more information about an error, try `rustc --explain E0425`.
error: could not compile `procfs` due to 5 previous errors
The text was updated successfully, but these errors were encountered:
When I fork local the following errors occur when compiling locally. The error log probably means that my cargo source cannot find the corresponding os
The text was updated successfully, but these errors were encountered: