Running phase: unpackPhase unpacking source archive /nix/store/18an47sjwsmrsycdcy7262shws91kyr1-source source root is source Running phase: patchPhase Executing configureCargoCommonVars decompressing cargo artifacts from /nix/store/clp5xm99pm33kmh8pc8h6i7zp0wwm1n9-tincd-deps-0.1.0/target.tar.zst to target Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase will append /nix/var/nix/builds/nix-16674-1874902649/source/.cargo-home/config.toml with contents of /nix/store/6p5481rnj2r11r97n3671mr0lvznkb9r-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 -p tincd -p tinc-tools Compiling tinc-proto v0.0.0 (/nix/var/nix/builds/nix-16674-1874902649/source/crates/tinc-proto) Compiling tinc-crypto v0.0.0 (/nix/var/nix/builds/nix-16674-1874902649/source/crates/tinc-crypto) Compiling tincd v0.1.0 (/nix/var/nix/builds/nix-16674-1874902649/source/crates/tincd) Compiling tinc-device v0.0.0 (/nix/var/nix/builds/nix-16674-1874902649/source/crates/tinc-device) warning: tincd@0.1.0: Warning: supplying the --target arm64-apple-macosx != arm64-apple-darwin argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead. Compiling tinc-conf v0.0.0 (/nix/var/nix/builds/nix-16674-1874902649/source/crates/tinc-conf) Compiling tinc-sptps v0.0.0 (/nix/var/nix/builds/nix-16674-1874902649/source/crates/tinc-sptps) Compiling tinc-tools v0.0.0 (/nix/var/nix/builds/nix-16674-1874902649/source/crates/tinc-tools) error[E0432]: unresolved import `crate::bind_to_interface` --> crates/tincd/src/listen.rs:18:5 | 18 | use crate::bind_to_interface; | ^^^^^^^^^^^^^^^^^^^^^^^^ no `bind_to_interface` in the root | note: found an item that was configured out --> crates/tincd/src/lib.rs:69:5 | 67 | #[cfg(target_os = "linux")] | ------------------- the item is gated behind the `linux` feature 68 | pub(crate) use platform::{ 69 | bind_to_interface, msg_nosignal, set_cloexec, set_nosigpipe, set_udp_tos, sock_cloexec_flag, | ^^^^^^^^^^^^^^^^^ error[E0425]: cannot find function `msg_nosignal` in the crate root --> crates/tincd/src/conn.rs:737:62 | 737 | let n = match send(self.fd.as_raw_fd(), live, crate::msg_nosignal()) { | ^^^^^^^^^^^^ not found in the crate root | note: found an item that was configured out --> crates/tincd/src/lib.rs:69:24 | 67 | #[cfg(target_os = "linux")] | ------------------- the item is gated behind the `linux` feature 68 | pub(crate) use platform::{ 69 | bind_to_interface, msg_nosignal, set_cloexec, set_nosigpipe, set_udp_tos, sock_cloexec_flag, | ^^^^^^^^^^^^ help: consider importing this function | 11 + use crate::platform::msg_nosignal; | help: if you import `msg_nosignal`, refer to it directly | 737 - let n = match send(self.fd.as_raw_fd(), live, crate::msg_nosignal()) { 737 + let n = match send(self.fd.as_raw_fd(), live, msg_nosignal()) { | error[E0425]: cannot find function `sock_cloexec_flag` in the crate root --> crates/tincd/src/daemon/net/icmp.rs:234:54 | 234 | let sock = socket(af, SockType::Datagram, crate::sock_cloexec_flag(), None).ok()?; | ^^^^^^^^^^^^^^^^^ not found in the crate root | note: found an item that was configured out --> crates/tincd/src/lib.rs:69:79 | 67 | #[cfg(target_os = "linux")] | ------------------- the item is gated behind the `linux` feature 68 | pub(crate) use platform::{ 69 | bind_to_interface, msg_nosignal, set_cloexec, set_nosigpipe, set_udp_tos, sock_cloexec_flag, | ^^^^^^^^^^^^^^^^^ help: consider importing this function | 1 + use crate::platform::sock_cloexec_flag; | help: if you import `sock_cloexec_flag`, refer to it directly | 234 - let sock = socket(af, SockType::Datagram, crate::sock_cloexec_flag(), None).ok()?; 234 + let sock = socket(af, SockType::Datagram, sock_cloexec_flag(), None).ok()?; | error[E0425]: cannot find function `set_nosigpipe` in the crate root --> crates/tincd/src/daemon/net/rx.rs:39:24 | 39 | crate::set_nosigpipe(&pair.0); | ^^^^^^^^^^^^^ not found in the crate root | note: found an item that was configured out --> crates/tincd/src/lib.rs:69:51 | 67 | #[cfg(target_os = "linux")] | ------------------- the item is gated behind the `linux` feature 68 | pub(crate) use platform::{ 69 | bind_to_interface, msg_nosignal, set_cloexec, set_nosigpipe, set_udp_tos, sock_cloexec_flag, | ^^^^^^^^^^^^^ help: consider importing this function | 1 + use crate::platform::set_nosigpipe; | help: if you import `set_nosigpipe`, refer to it directly | 39 - crate::set_nosigpipe(&pair.0); 39 + set_nosigpipe(&pair.0); | error[E0425]: cannot find function `set_udp_tos` in the crate root --> crates/tincd/src/daemon/net/sptps.rs:789:12 | 789 | crate::set_udp_tos(l.udp.as_fd(), is_ipv6, prio); | ^^^^^^^^^^^ not found in the crate root | note: found an item that was configured out --> crates/tincd/src/lib.rs:69:66 | 67 | #[cfg(target_os = "linux")] | ------------------- the item is gated behind the `linux` feature 68 | pub(crate) use platform::{ 69 | bind_to_interface, msg_nosignal, set_cloexec, set_nosigpipe, set_udp_tos, sock_cloexec_flag, | ^^^^^^^^^^^ help: consider importing this function | 1 + use crate::platform::set_udp_tos; | help: if you import `set_udp_tos`, refer to it directly | 789 - crate::set_udp_tos(l.udp.as_fd(), is_ipv6, prio); 789 + set_udp_tos(l.udp.as_fd(), is_ipv6, prio); | error[E0425]: cannot find function `set_nosigpipe` in the crate root --> crates/tincd/src/listen.rs:285:12 | 285 | crate::set_nosigpipe(&s); | ^^^^^^^^^^^^^ not found in the crate root | note: found an item that was configured out --> crates/tincd/src/lib.rs:69:51 | 67 | #[cfg(target_os = "linux")] | ------------------- the item is gated behind the `linux` feature 68 | pub(crate) use platform::{ 69 | bind_to_interface, msg_nosignal, set_cloexec, set_nosigpipe, set_udp_tos, sock_cloexec_flag, | ^^^^^^^^^^^^^ help: consider importing this function | 12 + use crate::platform::set_nosigpipe; | help: if you import `set_nosigpipe`, refer to it directly | 285 - crate::set_nosigpipe(&s); 285 + set_nosigpipe(&s); | error[E0425]: cannot find function `bind_to_interface` in the crate root --> crates/tincd/src/outgoing.rs:130:32 | 130 | && let Err(e) = crate::bind_to_interface(sock, iface) | ^^^^^^^^^^^^^^^^^ not found in the crate root | note: found an item that was configured out --> crates/tincd/src/lib.rs:69:5 | 67 | #[cfg(target_os = "linux")] | ------------------- the item is gated behind the `linux` feature 68 | pub(crate) use platform::{ 69 | bind_to_interface, msg_nosignal, set_cloexec, set_nosigpipe, set_udp_tos, sock_cloexec_flag, | ^^^^^^^^^^^^^^^^^ help: consider importing this function | 19 + use crate::platform::bind_to_interface; | help: if you import `bind_to_interface`, refer to it directly | 130 - && let Err(e) = crate::bind_to_interface(sock, iface) 130 + && let Err(e) = bind_to_interface(sock, iface) | error[E0425]: cannot find function `set_nosigpipe` in the crate root --> crates/tincd/src/outgoing.rs:155:20 | 155 | crate::set_nosigpipe(&s); | ^^^^^^^^^^^^^ not found in the crate root | note: found an item that was configured out --> crates/tincd/src/lib.rs:69:51 | 67 | #[cfg(target_os = "linux")] | ------------------- the item is gated behind the `linux` feature 68 | pub(crate) use platform::{ 69 | bind_to_interface, msg_nosignal, set_cloexec, set_nosigpipe, set_udp_tos, sock_cloexec_flag, | ^^^^^^^^^^^^^ help: consider importing this function | 19 + use crate::platform::set_nosigpipe; | help: if you import `set_nosigpipe`, refer to it directly | 155 - crate::set_nosigpipe(&s); 155 + set_nosigpipe(&s); | error[E0425]: cannot find function `set_nosigpipe` in the crate root --> crates/tincd/src/outgoing.rs:228:12 | 228 | crate::set_nosigpipe(&sock); | ^^^^^^^^^^^^^ not found in the crate root | note: found an item that was configured out --> crates/tincd/src/lib.rs:69:51 | 67 | #[cfg(target_os = "linux")] | ------------------- the item is gated behind the `linux` feature 68 | pub(crate) use platform::{ 69 | bind_to_interface, msg_nosignal, set_cloexec, set_nosigpipe, set_udp_tos, sock_cloexec_flag, | ^^^^^^^^^^^^^ help: consider importing this function | 19 + use crate::platform::set_nosigpipe; | help: if you import `set_nosigpipe`, refer to it directly | 228 - crate::set_nosigpipe(&sock); 228 + set_nosigpipe(&sock); | error[E0425]: cannot find function `sock_cloexec_flag` in the crate root --> crates/tincd/src/outgoing.rs:615:16 | 615 | crate::sock_cloexec_flag(), | ^^^^^^^^^^^^^^^^^ not found in the crate root | note: found an item that was configured out --> crates/tincd/src/lib.rs:69:79 | 67 | #[cfg(target_os = "linux")] | ------------------- the item is gated behind the `linux` feature 68 | pub(crate) use platform::{ 69 | bind_to_interface, msg_nosignal, set_cloexec, set_nosigpipe, set_udp_tos, sock_cloexec_flag, | ^^^^^^^^^^^^^^^^^ help: consider importing this function | 19 + use crate::platform::sock_cloexec_flag; | help: if you import `sock_cloexec_flag`, refer to it directly | 615 - crate::sock_cloexec_flag(), 615 + sock_cloexec_flag(), | error[E0425]: cannot find function `set_cloexec` in the crate root --> crates/tincd/src/outgoing.rs:617:12 | 617 | crate::set_cloexec(&parent_fd); | ^^^^^^^^^^^ not found in the crate root | note: found an item that was configured out --> crates/tincd/src/lib.rs:69:38 | 67 | #[cfg(target_os = "linux")] | ------------------- the item is gated behind the `linux` feature 68 | pub(crate) use platform::{ 69 | bind_to_interface, msg_nosignal, set_cloexec, set_nosigpipe, set_udp_tos, sock_cloexec_flag, | ^^^^^^^^^^^ help: consider importing this function | 19 + use crate::platform::set_cloexec; | help: if you import `set_cloexec`, refer to it directly | 617 - crate::set_cloexec(&parent_fd); 617 + set_cloexec(&parent_fd); | error[E0425]: cannot find function `set_cloexec` in the crate root --> crates/tincd/src/outgoing.rs:618:12 | 618 | crate::set_cloexec(&child_fd); | ^^^^^^^^^^^ not found in the crate root | note: found an item that was configured out --> crates/tincd/src/lib.rs:69:38 | 67 | #[cfg(target_os = "linux")] | ------------------- the item is gated behind the `linux` feature 68 | pub(crate) use platform::{ 69 | bind_to_interface, msg_nosignal, set_cloexec, set_nosigpipe, set_udp_tos, sock_cloexec_flag, | ^^^^^^^^^^^ help: consider importing this function | 19 + use crate::platform::set_cloexec; | help: if you import `set_cloexec`, refer to it directly | 618 - crate::set_cloexec(&child_fd); 618 + set_cloexec(&child_fd); | error[E0425]: cannot find function `setsockopt` in this scope --> crates/tincd/src/listen.rs:86:21 | 86 | if let Err(e) = setsockopt(&s.as_fd(), opt, &size) { | ^^^^^^^^^^ not found in this scope error[E0433]: cannot find module or crate `sockopt` in this scope --> crates/tincd/src/listen.rs:458:9 | 458 | sockopt::RcvBuf, | ^^^^^^^ use of unresolved module or unlinked crate `sockopt` | = help: if you wanted to use a crate named `sockopt`, use `cargo add sockopt` to add it to your `Cargo.toml` error[E0433]: cannot find module or crate `sockopt` in this scope --> crates/tincd/src/listen.rs:465:9 | 465 | sockopt::SndBuf, | ^^^^^^^ use of unresolved module or unlinked crate `sockopt` | = help: if you wanted to use a crate named `sockopt`, use `cargo add sockopt` to add it to your `Cargo.toml` warning: unused variable: `n_shards` --> crates/tincd/src/daemon/setup.rs:659:13 | 659 | let n_shards = if shard_tuns.is_empty() { | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_shards` | = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default Some errors have detailed explanations: E0425, E0432, E0433. For more information about an error, try `rustc --explain E0425`. warning: `tincd` (lib) generated 1 warning warning: tincd@0.1.0: Warning: supplying the --target arm64-apple-macosx != arm64-apple-darwin argument to a nix-wrapped compiler may not work correctly - cc-wrapper is currently not designed with multi-target compilers in mind. You may want to use an un-wrapped compiler instead. error: could not compile `tincd` (lib) due to 15 previous errors; 1 warning emitted warning: build failed, waiting for other jobs to finish...