Skip to content

Unable to compile on NetBSD/amd64 #2801

@drixter

Description

@drixter

Hi team,

I'm trying to compile brush on NetBSD:

Unable to compile on NetBSD/amd64
#1195

and getting some errors related to nix:

  Compiling strip-ansi-escapes v0.2.1
   Compiling strum v0.27.2
   Compiling icu_locale v2.2.0
   Compiling crossterm v0.29.0
   Compiling brush-core v0.5.0 (/usr/work/amd64/wip/brush/work/brush-brush-shell-v0.4.0/brush-core)
error[E0433]: cannot find `Id` in `wait`
   --> brush-core/src/sys/unix/signal.rs:99:44
    |
 99 |     nix::sys::wait::waitid(nix::sys::wait::Id::All, flags)
    |                                            ^^ could not find `Id` in `wait`
    |
note: found an item that was configured out
   --> /usr/work/amd64/wip/brush/work/vendor/nix-0.31.2/src/sys/wait.rs:333:10
    |
326 |   #[cfg(any(
    |  __________-
327 | |     target_os = "android",
328 | |     target_os = "freebsd",
329 | |     target_os = "haiku",
330 | |     all(target_os = "linux", not(target_env = "uclibc")),
331 | | ))]
    | |_- the item is gated here
332 |   #[derive(Debug)]
333 |   pub enum Id<'fd> {
    |            ^^

error[E0425]: cannot find function `waitid` in module `nix::sys::wait`
   --> brush-core/src/sys/unix/signal.rs:99:21
    |
 99 |       nix::sys::wait::waitid(nix::sys::wait::Id::All, flags)
    |                       ^^^^^^
    |
   ::: /usr/work/amd64/wip/brush/work/vendor/nix-0.31.2/src/sys/wait.rs:291:1
    |
291 | / pub fn waitpid<P: Into<Option<Pid>>>(
292 | |     pid: P,
293 | |     options: Option<WaitPidFlag>,
294 | | ) -> Result<WaitStatus> {
    | |_______________________- similarly named function `waitpid` defined here
    |
note: found an item that was configured out
   --> /usr/work/amd64/wip/brush/work/vendor/nix-0.31.2/src/sys/wait.rs:360:8
    |
354 |   #[cfg(any(
    |  __________-
355 | |     target_os = "android",
356 | |     target_os = "freebsd",
357 | |     target_os = "haiku",
358 | |     all(target_os = "linux", not(target_env = "uclibc")),
359 | | ))]
    | |_- the item is gated here
360 |   pub fn waitid(id: Id, flags: WaitPidFlag) -> Result<WaitStatus> {
    |          ^^^^^^
help: a function with a similar name exists
    |
 99 |     nix::sys::wait::waitpid(nix::sys::wait::Id::All, flags)
    |                         +

   Compiling addr2line v0.25.1
   Compiling fluent v0.17.0
   Compiling os_display v0.1.4
   Compiling fd-lock v4.0.4
   Compiling serde_spanned v1.1.1
   Compiling toml_datetime v1.1.1+spec-1.1.0
   Compiling itertools v0.13.0
   Compiling uucore_procs v0.8.0
   Compiling nibble_vec v0.1.0
   Compiling konst_macro_rules v0.2.19
   Compiling rustc-demangle v0.1.27
   Compiling toml_writer v1.1.1+spec-1.1.0
   Compiling lazy_static v1.5.0
   Compiling endian-type v0.2.0
   Compiling unit-prefix v0.5.2
   Compiling unicase v2.9.0
   Compiling hashbrown v0.17.0
   Compiling unicode-xid v0.2.6
   Compiling radix_trie v0.3.0
   Compiling const_format_proc_macros v0.2.34
   Compiling toml v1.1.2+spec-1.1.0
   Compiling sharded-slab v0.1.7
   Compiling konst v0.2.20
   Compiling git-version-macro v0.3.9
   Compiling tracing-log v0.2.0
   Compiling indexmap v2.14.0
   Compiling uuid v1.23.1
   Compiling reedline v0.47.0
   Compiling sysinfo v0.38.4
   Compiling thread_local v1.1.9
   Compiling git-version v0.3.9
   Compiling const_format v0.2.36
   Compiling tracing-subscriber v0.3.23
   Compiling etcetera v0.11.0
Some errors have detailed explanations: E0425, E0433.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `brush-core` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
*** Error code 101

NetBSD devil.e-utp.net 11.0_RC4 NetBSD 11.0_RC4 (DEVIL) #12: Mon May 25 20:18:27 CEST 2026 root@devil.e-utp.net:/usr/obj/sys/arch/amd64/compile/DEVIL amd64

Can someone take a look on that?
I'm open for testing if needed.

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions