Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Compiling nix v0.30.1
- warning: building proc macro crate with `panic=abort` or `panic=immediate-abort` may crash the compiler should the proc-macro panic
- warning: `uucore_procs` (lib) generated 1 warning
- error[E0277]: the trait bound `libc::sigevent: std::cmp::Eq` is not satisfied
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/sys/signal.rs:1299:9
- |
- 1295 | #[derive(Clone, Debug, Eq, Hash, PartialEq)]
- | -- in this derive macro expansion
- ...
- 1299 | sigevent: libc_sigevent
- | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `libc::sigevent`
- |
- note: required by a bound in `AssertParamIsEq`
- --> /usr/src/debug/rust/rustc-1.92.0-src/library/core/src/cmp.rs:367:1
- error[E0277]: the trait bound `libc::sigevent: Hash` is not satisfied
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/sys/signal.rs:1299:9
- |
- 1295 | #[derive(Clone, Debug, Eq, Hash, PartialEq)]
- | ---- in this derive macro expansion
- ...
- 1299 | sigevent: libc_sigevent
- | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Hash` is not implemented for `libc::sigevent`
- error[E0369]: binary operation `==` cannot be applied to type `libc::sigevent`
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/sys/signal.rs:1299:9
- |
- 1295 | #[derive(Clone, Debug, Eq, Hash, PartialEq)]
- | --------- in this derive macro expansion
- ...
- 1299 | sigevent: libc_sigevent
- | ^^^^^^^^^^^^^^^^^^^^^^^
- |
- note: the foreign item type `libc::sigevent` doesn't implement `PartialEq`
- --> /tmp/makepkg/uutils-coreutils/src/libc/src/unix/linux_like/mod.rs:307:1
- |
- 307 | / s_no_extra_traits! {
- 308 | | pub union __c_anonymous_sigev_un {
- 309 | | _pad: Padding<[c_int; SIGEV_PAD_SIZE]>,
- 310 | | pub _tid: c_int,
- ... |
- 325 | | }
- | |_^ not implement `PartialEq`
- = note: this error originates in the derive macro `PartialEq` which comes from the expansion of the macro `s_no_extra_traits` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0609]: no field `sigev_notify_thread_id` on type `libc::sigevent`
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/sys/signal.rs:1357:25
- |
- 1357 | sev.sigev_notify_thread_id = thread_id;
- | ^^^^^^^^^^^^^^^^^^^^^^ unknown field
- |
- = note: available fields are: `sigev_value`, `sigev_signo`, `sigev_notify`, `_sigev_un`
- error[E0308]: mismatched types
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1100:41
- |
- 1100 | unsafe { libc::execv(path.as_ptr(), args_p.as_ptr()) };
- | ----------- ^^^^^^^^^^^^^^^ types differ in mutability
- | |
- | arguments to this function are incorrect
- |
- = note: expected raw pointer `*const *mut i8`
- found raw pointer `*const *const i8`
- note: function defined here
- --> /tmp/makepkg/uutils-coreutils/src/libc/src/unix/mod.rs:1070:12
- |
- 1070 | pub fn execv(prog: *const c_char, argv: *const *mut c_char) -> c_int;
- | ^^^^^
- error[E0308]: arguments to this function are incorrect
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1126:14
- |
- 1126 | unsafe { libc::execve(path.as_ptr(), args_p.as_ptr(), env_p.as_ptr()) };
- | ^^^^^^^^^^^^
- |
- note: types differ in mutability
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1126:42
- |
- 1126 | unsafe { libc::execve(path.as_ptr(), args_p.as_ptr(), env_p.as_ptr()) };
- | ^^^^^^^^^^^^^^^
- = note: expected raw pointer `*const *mut i8`
- found raw pointer `*const *const i8`
- note: types differ in mutability
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1126:59
- |
- 1126 | unsafe { libc::execve(path.as_ptr(), args_p.as_ptr(), env_p.as_ptr()) };
- | ^^^^^^^^^^^^^^
- = note: expected raw pointer `*const *mut i8`
- found raw pointer `*const *const i8`
- note: function defined here
- --> /tmp/makepkg/uutils-coreutils/src/libc/src/unix/mod.rs:1071:12
- |
- 1071 | pub fn execve(prog: *const c_char, argv: *const *mut c_char, envp: *const...
- | ^^^^^^
- error[E0308]: mismatched types
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1147:46
- |
- 1147 | unsafe { libc::execvp(filename.as_ptr(), args_p.as_ptr()) };
- | ------------ ^^^^^^^^^^^^^^^ types differ in mutability
- | |
- | arguments to this function are incorrect
- |
- = note: expected raw pointer `*const *mut i8`
- found raw pointer `*const *const i8`
- note: function defined here
- --> /tmp/makepkg/uutils-coreutils/src/libc/src/unix/mod.rs:1073:12
- |
- 1073 | pub fn execvp(c: *const c_char, argv: *const *mut c_char) -> c_int;
- | ^^^^^^
- error[E0308]: arguments to this function are incorrect
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1169:9
- |
- 1169 | libc::execvpe(filename.as_ptr(), args_p.as_ptr(), env_p.as_ptr())
- | ^^^^^^^^^^^^^
- |
- note: types differ in mutability
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1169:42
- |
- 1169 | libc::execvpe(filename.as_ptr(), args_p.as_ptr(), env_p.as_ptr())
- | ^^^^^^^^^^^^^^^
- = note: expected raw pointer `*const *mut i8`
- found raw pointer `*const *const i8`
- note: types differ in mutability
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1169:59
- |
- 1169 | libc::execvpe(filename.as_ptr(), args_p.as_ptr(), env_p.as_ptr())
- | ^^^^^^^^^^^^^^
- = note: expected raw pointer `*const *mut i8`
- found raw pointer `*const *const i8`
- note: function defined here
- --> /tmp/makepkg/uutils-coreutils/src/libc/src/unix/linux_like/mod.rs:2021:12
- |
- 2021 | pub fn execvpe(
- | ^^^^^^^
- error[E0308]: arguments to this function are incorrect
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1197:14
- |
- 1197 | unsafe { libc::fexecve(fd.as_fd().as_raw_fd(), args_p.as_ptr(), env_p.as_...
- | ^^^^^^^^^^^^^
- |
- note: types differ in mutability
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1197:52
- |
- 1197 | unsafe { libc::fexecve(fd.as_fd().as_raw_fd(), args_p.as_ptr(), env_p.as_...
- | ^^^^^^^^^^^^^^^
- = note: expected raw pointer `*const *mut i8`
- found raw pointer `*const *const i8`
- note: types differ in mutability
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1197:69
- |
- 1197 | ...as_raw_fd(), args_p.as_ptr(), env_p.as_ptr()) };
- | ^^^^^^^^^^^^^^
- = note: expected raw pointer `*const *mut i8`
- found raw pointer `*const *const i8`
- note: function defined here
- --> /tmp/makepkg/uutils-coreutils/src/libc/src/unix/linux_like/mod.rs:2027:12
- |
- 2027 | pub fn fexecve(fd: c_int, argv: *const *mut c_char, envp: *const *mut c_c...
- | ^^^^^^^
- error[E0308]: mismatched types
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/macros.rs:72:35
- |
- 72 | const $Flag = libc::$Flag $(as $cast)*;
- | ^^^^^^^^^^^ expected `i32`, found `i16`
- |
- ::: /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/spawn.rs:203:1
- |
- 203 | / libc_bitflags!(
- 204 | | /// Process attributes to be changed in the new process image when invok...
- 205 | | /// or [`posix_spawnp`]. See
- 206 | | /// [posix_spawn](https://pubs.opengroup.org/onlinepubs/9699919799/funct...
- ... |
- 227 | | );
- | | -
- | | |
- | |_arguments to this function are incorrect
- | in this macro invocation
- |
- note: associated function defined here
- --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/spawn.rs:203:1
- |
- 203 | / libc_bitflags!(
- 204 | | /// Process attributes to be changed in the new process image when invok...
- 205 | | /// or [`posix_spawnp`]. See
- 206 | | /// [posix_spawn](https://pubs.opengroup.org/onlinepubs/9699919799/funct...
- ... |
- 227 | | );
- | |_^
- = note: this error originates in the macro `libc_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
- Some errors have detailed explanations: E0277, E0308, E0369, E0609.
- For more information about an error, try `rustc --explain E0277`.
- error: could not compile `nix` (lib) due to 10 previous errors
Advertisement
Add Comment
Please, Sign In to add comment