Running phase: unpackPhase unpacking source archive /nix/store/zhdvcggyxmhrm97glxy9xzpfan91i9l3-source source root is source Running phase: patchPhase Executing configureCargoCommonVars decompressing cargo artifacts from /nix/store/2gzs9q12w2spazb3gq2scapk6swik9h5-tribuchet-deps-0.1.0/target.tar.zst to target Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase will append /nix/var/nix/builds/nix-96169-2468765448/source/.cargo-home/config.toml with contents of /nix/store/437y0cid064k7x0xd5c7xkknsx75b1rj-vendor-cargo-deps/config.toml default configurePhase, nothing to do Running phase: buildPhase +++ command cargo --version cargo 1.97.0 (c980f4866 2026-06-30) +++ command cargo build --release --message-format json-render-diagnostics --locked Compiling sandbox-proto v0.1.0 (/nix/var/nix/builds/nix-96169-2468765448/source/crates/sandbox-proto) Compiling tribuchet v0.1.0 (/nix/var/nix/builds/nix-96169-2468765448/source/crates/tribuchet) Compiling netbench v0.1.0 (/nix/var/nix/builds/nix-96169-2468765448/source/crates/netbench) error[E0425]: cannot find function `unshare` in crate `libc` --> crates/netbench/src/ns.rs:36:41 | 36 | cmd.pre_exec(|| match libc::unshare(libc::CLONE_NEWNET) { | ^^^^^^^ not found in `libc` error[E0425]: cannot find value `CLONE_NEWNET` in crate `libc` --> crates/netbench/src/ns.rs:36:55 | 36 | cmd.pre_exec(|| match libc::unshare(libc::CLONE_NEWNET) { | ^^^^^^^^^^^^ not found in `libc` error[E0425]: cannot find function `setns` in crate `libc` --> crates/netbench/src/ns.rs:56:26 | 56 | if libc::setns(fd, libc::CLONE_NEWNET) != 0 { | ^^^^^ not found in `libc` error[E0425]: cannot find value `CLONE_NEWNET` in crate `libc` --> crates/netbench/src/ns.rs:56:42 | 56 | if libc::setns(fd, libc::CLONE_NEWNET) != 0 { | ^^^^^^^^^^^^ not found in `libc` error[E0425]: cannot find function `unshare` in crate `libc` --> crates/netbench/src/ns.rs:132:22 | 132 | if libc::unshare(libc::CLONE_NEWNS) != 0 { | ^^^^^^^ not found in `libc` error[E0425]: cannot find value `CLONE_NEWNS` in crate `libc` --> crates/netbench/src/ns.rs:132:36 | 132 | if libc::unshare(libc::CLONE_NEWNS) != 0 { | ^^^^^^^^^^^ not found in `libc` error[E0425]: cannot find value `MS_REC` in crate `libc` --> crates/netbench/src/ns.rs:139:23 | 139 | libc::MS_REC | libc::MS_PRIVATE, | ^^^^^^ not found in `libc` error[E0425]: cannot find value `MS_PRIVATE` in crate `libc` --> crates/netbench/src/ns.rs:139:38 | 139 | libc::MS_REC | libc::MS_PRIVATE, | ^^^^^^^^^^ | ::: /nix/store/437y0cid064k7x0xd5c7xkknsx75b1rj-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/libc-0.2.189/src/unix/bsd/apple/mod.rs:2166:1 | 2166 | pub const MAP_PRIVATE: c_int = 0x0002; | ---------------------------- similarly named constant `MAP_PRIVATE` defined here | help: a constant with a similar name exists | 139 - libc::MS_REC | libc::MS_PRIVATE, 139 + libc::MS_REC | libc::MAP_PRIVATE, | error[E0425]: cannot find value `MS_BIND` in crate `libc` --> crates/netbench/src/ns.rs:149:23 | 149 | libc::MS_BIND, | ^^^^^^^ not found in `libc` error[E0425]: cannot find function `unshare` in crate `libc` --> crates/netbench/src/ns.rs:179:22 | 179 | if libc::unshare(libc::CLONE_NEWNS) != 0 { | ^^^^^^^ not found in `libc` error[E0425]: cannot find value `CLONE_NEWNS` in crate `libc` --> crates/netbench/src/ns.rs:179:36 | 179 | if libc::unshare(libc::CLONE_NEWNS) != 0 { | ^^^^^^^^^^^ not found in `libc` error[E0425]: cannot find value `MS_REC` in crate `libc` --> crates/netbench/src/ns.rs:186:23 | 186 | libc::MS_REC | libc::MS_PRIVATE, | ^^^^^^ not found in `libc` error[E0425]: cannot find value `MS_PRIVATE` in crate `libc` --> crates/netbench/src/ns.rs:186:38 | 186 | libc::MS_REC | libc::MS_PRIVATE, | ^^^^^^^^^^ | ::: /nix/store/437y0cid064k7x0xd5c7xkknsx75b1rj-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/libc-0.2.189/src/unix/bsd/apple/mod.rs:2166:1 | 2166 | pub const MAP_PRIVATE: c_int = 0x0002; | ---------------------------- similarly named constant `MAP_PRIVATE` defined here | help: a constant with a similar name exists | 186 - libc::MS_REC | libc::MS_PRIVATE, 186 + libc::MS_REC | libc::MAP_PRIVATE, | error[E0061]: this function takes 4 arguments but 5 arguments were supplied --> crates/netbench/src/ns.rs:135:16 | 135 | if libc::mount( | ^^^^^^^^^^^ ... 140 | ptr::null(), | ----------- unexpected argument #5 of type `*const _` | note: expected `i32`, found `*const _` --> crates/netbench/src/ns.rs:138:17 | 138 | ptr::null(), | ^^^^^^^^^^^ = note: expected type `i32` found raw pointer `*const _` note: function defined here --> /nix/store/437y0cid064k7x0xd5c7xkknsx75b1rj-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/libc-0.2.189/src/unix/bsd/apple/mod.rs:4674:12 | 4674 | pub fn mount( | ^^^^^ help: remove the extra argument | 138 ~ /* i32 */, 139 ~ libc::MS_REC | libc::MS_PRIVATE, | error[E0061]: this function takes 4 arguments but 5 arguments were supplied --> crates/netbench/src/ns.rs:145:16 | 145 | if libc::mount( | ^^^^^^^^^^^ ... 150 | ptr::null(), | ----------- unexpected argument #5 of type `*const _` | note: expected `i32`, found `*const _` --> crates/netbench/src/ns.rs:148:17 | 148 | ptr::null(), | ^^^^^^^^^^^ = note: expected type `i32` found raw pointer `*const _` note: function defined here --> /nix/store/437y0cid064k7x0xd5c7xkknsx75b1rj-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/libc-0.2.189/src/unix/bsd/apple/mod.rs:4674:12 | 4674 | pub fn mount( | ^^^^^ help: remove the extra argument | 148 ~ /* i32 */, 149 ~ libc::MS_BIND, | error[E0061]: this function takes 4 arguments but 5 arguments were supplied --> crates/netbench/src/ns.rs:182:16 | 182 | if libc::mount( | ^^^^^^^^^^^ ... 187 | ptr::null(), | ----------- unexpected argument #5 of type `*const _` | note: expected `i32`, found `*const _` --> crates/netbench/src/ns.rs:185:17 | 185 | ptr::null(), | ^^^^^^^^^^^ = note: expected type `i32` found raw pointer `*const _` note: function defined here --> /nix/store/437y0cid064k7x0xd5c7xkknsx75b1rj-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/libc-0.2.189/src/unix/bsd/apple/mod.rs:4674:12 | 4674 | pub fn mount( | ^^^^^ help: remove the extra argument | 185 ~ /* i32 */, 186 ~ libc::MS_REC | libc::MS_PRIVATE, | error[E0061]: this function takes 4 arguments but 5 arguments were supplied --> crates/netbench/src/ns.rs:192:16 | 192 | if libc::mount( | ^^^^^^^^^^^ ... 197 | opts.as_ptr().cast(), | -------------------- unexpected argument #5 of type `*const _` | note: expected `i32`, found `*const i8` --> crates/netbench/src/ns.rs:195:17 | 195 | ty.as_ptr(), | ^^^^^^^^^^^ = note: expected type `i32` found raw pointer `*const i8` note: expected `*mut c_void`, found `usize` --> crates/netbench/src/ns.rs:196:17 | 196 | 0, | ^ = note: expected raw pointer `*mut c_void` found type `usize` note: function defined here --> /nix/store/437y0cid064k7x0xd5c7xkknsx75b1rj-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/libc-0.2.189/src/unix/bsd/apple/mod.rs:4674:12 | 4674 | pub fn mount( | ^^^^^ help: if you meant to create a null pointer, use `std::ptr::null_mut()` | 196 - 0, 196 + std::ptr::null_mut(), | help: remove the extra argument | 195 ~ /* i32 */, 196 ~ /* *mut c_void */, | Some errors have detailed explanations: E0061, E0425. For more information about an error, try `rustc --explain E0061`. error: could not compile `netbench` (bin "netbench") due to 17 previous errors warning: build failed, waiting for other jobs to finish...