Guest User

Untitled

a guest
Jan 2nd, 2026
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.35 KB | None | 0 0
  1. Compiling nix v0.30.1
  2. warning: building proc macro crate with `panic=abort` or `panic=immediate-abort` may crash the compiler should the proc-macro panic
  3.  
  4. warning: `uucore_procs` (lib) generated 1 warning
  5. error[E0277]: the trait bound `libc::sigevent: std::cmp::Eq` is not satisfied
  6. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/sys/signal.rs:1299:9
  7. |
  8. 1295 | #[derive(Clone, Debug, Eq, Hash, PartialEq)]
  9. | -- in this derive macro expansion
  10. ...
  11. 1299 | sigevent: libc_sigevent
  12. | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `libc::sigevent`
  13. |
  14. note: required by a bound in `AssertParamIsEq`
  15. --> /usr/src/debug/rust/rustc-1.92.0-src/library/core/src/cmp.rs:367:1
  16.  
  17. error[E0277]: the trait bound `libc::sigevent: Hash` is not satisfied
  18. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/sys/signal.rs:1299:9
  19. |
  20. 1295 | #[derive(Clone, Debug, Eq, Hash, PartialEq)]
  21. | ---- in this derive macro expansion
  22. ...
  23. 1299 | sigevent: libc_sigevent
  24. | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Hash` is not implemented for `libc::sigevent`
  25.  
  26. error[E0369]: binary operation `==` cannot be applied to type `libc::sigevent`
  27. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/sys/signal.rs:1299:9
  28. |
  29. 1295 | #[derive(Clone, Debug, Eq, Hash, PartialEq)]
  30. | --------- in this derive macro expansion
  31. ...
  32. 1299 | sigevent: libc_sigevent
  33. | ^^^^^^^^^^^^^^^^^^^^^^^
  34. |
  35. note: the foreign item type `libc::sigevent` doesn't implement `PartialEq`
  36. --> /tmp/makepkg/uutils-coreutils/src/libc/src/unix/linux_like/mod.rs:307:1
  37. |
  38. 307 | / s_no_extra_traits! {
  39. 308 | | pub union __c_anonymous_sigev_un {
  40. 309 | | _pad: Padding<[c_int; SIGEV_PAD_SIZE]>,
  41. 310 | | pub _tid: c_int,
  42. ... |
  43. 325 | | }
  44. | |_^ not implement `PartialEq`
  45. = 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)
  46.  
  47. error[E0609]: no field `sigev_notify_thread_id` on type `libc::sigevent`
  48. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/sys/signal.rs:1357:25
  49. |
  50. 1357 | sev.sigev_notify_thread_id = thread_id;
  51. | ^^^^^^^^^^^^^^^^^^^^^^ unknown field
  52. |
  53. = note: available fields are: `sigev_value`, `sigev_signo`, `sigev_notify`, `_sigev_un`
  54.  
  55. error[E0308]: mismatched types
  56. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1100:41
  57. |
  58. 1100 | unsafe { libc::execv(path.as_ptr(), args_p.as_ptr()) };
  59. | ----------- ^^^^^^^^^^^^^^^ types differ in mutability
  60. | |
  61. | arguments to this function are incorrect
  62. |
  63. = note: expected raw pointer `*const *mut i8`
  64. found raw pointer `*const *const i8`
  65. note: function defined here
  66. --> /tmp/makepkg/uutils-coreutils/src/libc/src/unix/mod.rs:1070:12
  67. |
  68. 1070 | pub fn execv(prog: *const c_char, argv: *const *mut c_char) -> c_int;
  69. | ^^^^^
  70.  
  71. error[E0308]: arguments to this function are incorrect
  72. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1126:14
  73. |
  74. 1126 | unsafe { libc::execve(path.as_ptr(), args_p.as_ptr(), env_p.as_ptr()) };
  75. | ^^^^^^^^^^^^
  76. |
  77. note: types differ in mutability
  78. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1126:42
  79. |
  80. 1126 | unsafe { libc::execve(path.as_ptr(), args_p.as_ptr(), env_p.as_ptr()) };
  81. | ^^^^^^^^^^^^^^^
  82. = note: expected raw pointer `*const *mut i8`
  83. found raw pointer `*const *const i8`
  84. note: types differ in mutability
  85. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1126:59
  86. |
  87. 1126 | unsafe { libc::execve(path.as_ptr(), args_p.as_ptr(), env_p.as_ptr()) };
  88. | ^^^^^^^^^^^^^^
  89. = note: expected raw pointer `*const *mut i8`
  90. found raw pointer `*const *const i8`
  91. note: function defined here
  92. --> /tmp/makepkg/uutils-coreutils/src/libc/src/unix/mod.rs:1071:12
  93. |
  94. 1071 | pub fn execve(prog: *const c_char, argv: *const *mut c_char, envp: *const...
  95. | ^^^^^^
  96.  
  97. error[E0308]: mismatched types
  98. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1147:46
  99. |
  100. 1147 | unsafe { libc::execvp(filename.as_ptr(), args_p.as_ptr()) };
  101. | ------------ ^^^^^^^^^^^^^^^ types differ in mutability
  102. | |
  103. | arguments to this function are incorrect
  104. |
  105. = note: expected raw pointer `*const *mut i8`
  106. found raw pointer `*const *const i8`
  107. note: function defined here
  108. --> /tmp/makepkg/uutils-coreutils/src/libc/src/unix/mod.rs:1073:12
  109. |
  110. 1073 | pub fn execvp(c: *const c_char, argv: *const *mut c_char) -> c_int;
  111. | ^^^^^^
  112.  
  113. error[E0308]: arguments to this function are incorrect
  114. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1169:9
  115. |
  116. 1169 | libc::execvpe(filename.as_ptr(), args_p.as_ptr(), env_p.as_ptr())
  117. | ^^^^^^^^^^^^^
  118. |
  119. note: types differ in mutability
  120. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1169:42
  121. |
  122. 1169 | libc::execvpe(filename.as_ptr(), args_p.as_ptr(), env_p.as_ptr())
  123. | ^^^^^^^^^^^^^^^
  124. = note: expected raw pointer `*const *mut i8`
  125. found raw pointer `*const *const i8`
  126. note: types differ in mutability
  127. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1169:59
  128. |
  129. 1169 | libc::execvpe(filename.as_ptr(), args_p.as_ptr(), env_p.as_ptr())
  130. | ^^^^^^^^^^^^^^
  131. = note: expected raw pointer `*const *mut i8`
  132. found raw pointer `*const *const i8`
  133. note: function defined here
  134. --> /tmp/makepkg/uutils-coreutils/src/libc/src/unix/linux_like/mod.rs:2021:12
  135. |
  136. 2021 | pub fn execvpe(
  137. | ^^^^^^^
  138.  
  139. error[E0308]: arguments to this function are incorrect
  140. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1197:14
  141. |
  142. 1197 | unsafe { libc::fexecve(fd.as_fd().as_raw_fd(), args_p.as_ptr(), env_p.as_...
  143. | ^^^^^^^^^^^^^
  144. |
  145. note: types differ in mutability
  146. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1197:52
  147. |
  148. 1197 | unsafe { libc::fexecve(fd.as_fd().as_raw_fd(), args_p.as_ptr(), env_p.as_...
  149. | ^^^^^^^^^^^^^^^
  150. = note: expected raw pointer `*const *mut i8`
  151. found raw pointer `*const *const i8`
  152. note: types differ in mutability
  153. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/unistd.rs:1197:69
  154. |
  155. 1197 | ...as_raw_fd(), args_p.as_ptr(), env_p.as_ptr()) };
  156. | ^^^^^^^^^^^^^^
  157. = note: expected raw pointer `*const *mut i8`
  158. found raw pointer `*const *const i8`
  159. note: function defined here
  160. --> /tmp/makepkg/uutils-coreutils/src/libc/src/unix/linux_like/mod.rs:2027:12
  161. |
  162. 2027 | pub fn fexecve(fd: c_int, argv: *const *mut c_char, envp: *const *mut c_c...
  163. | ^^^^^^^
  164.  
  165. error[E0308]: mismatched types
  166. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/macros.rs:72:35
  167. |
  168. 72 | const $Flag = libc::$Flag $(as $cast)*;
  169. | ^^^^^^^^^^^ expected `i32`, found `i16`
  170. |
  171. ::: /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/spawn.rs:203:1
  172. |
  173. 203 | / libc_bitflags!(
  174. 204 | | /// Process attributes to be changed in the new process image when invok...
  175. 205 | | /// or [`posix_spawnp`]. See
  176. 206 | | /// [posix_spawn](https://pubs.opengroup.org/onlinepubs/9699919799/funct...
  177. ... |
  178. 227 | | );
  179. | | -
  180. | | |
  181. | |_arguments to this function are incorrect
  182. | in this macro invocation
  183. |
  184. note: associated function defined here
  185. --> /tmp/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nix-0.30.1/src/spawn.rs:203:1
  186. |
  187. 203 | / libc_bitflags!(
  188. 204 | | /// Process attributes to be changed in the new process image when invok...
  189. 205 | | /// or [`posix_spawnp`]. See
  190. 206 | | /// [posix_spawn](https://pubs.opengroup.org/onlinepubs/9699919799/funct...
  191. ... |
  192. 227 | | );
  193. | |_^
  194. = note: this error originates in the macro `libc_bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
  195.  
  196. Some errors have detailed explanations: E0277, E0308, E0369, E0609.
  197. For more information about an error, try `rustc --explain E0277`.
  198. error: could not compile `nix` (lib) due to 10 previous errors
Advertisement
Add Comment
Please, Sign In to add comment