+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/citron-0.15.0/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/citron-0.15.0/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for citron-0.15.0
   Compiling proc-macro2 v1.0.36
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.85
   Compiling libc v0.2.124
   Compiling bitflags v1.2.1
   Compiling version_check v0.9.4
   Compiling pkg-config v0.3.24
   Compiling memchr v2.4.1
   Compiling nix v0.17.0
   Compiling autocfg v1.0.1
   Compiling serde_derive v1.0.133
   Compiling unicode-segmentation v1.8.0
   Compiling serde v1.0.133
   Compiling unicode-width v0.1.9
   Compiling minimal-lexical v0.2.1
   Compiling cfg-if v0.1.10
   Compiling void v1.0.2
   Compiling byteorder v1.4.3
   Compiling libmacchina v6.1.1
   Compiling hashbrown v0.11.2
   Compiling linked-hash-map v0.5.4
   Compiling home v0.5.3
   Compiling num_threads v0.1.4
   Compiling cfg-if v1.0.0
   Compiling ryu v1.0.9
   Compiling lazy_static v1.4.0
   Compiling bytesize v1.1.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling libdbus-sys v0.2.2
   Compiling indexmap v1.8.0
   Compiling heck v0.3.3
   Compiling textwrap v0.11.0
   Compiling yaml-rust v0.4.5
   Compiling quote v1.0.14
   Compiling if-addrs v0.6.7
   Compiling num_cpus v1.13.1
   Compiling memmap2 v0.5.3
   Compiling time v0.3.9
error[E0432]: unresolved import `self::os`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/features.rs:2:15
  |
2 | pub use self::os::*;
  |               ^^ could not find `os` in `self`

error[E0432]: unresolved import `self::consts`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:7:15
  |
7 | pub use self::consts::*;
  |               ^^^^^^ could not find `consts` in `self`

error[E0432]: unresolved import `self::addr::LinkAddr`
  --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/socket/mod.rs:30:5
   |
30 |     LinkAddr,
   |     ^^^^^^^^ no `LinkAddr` in `sys::socket::addr`

error[E0432]: unresolved import `errno::Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/dir.rs:2:5
  |
2 | use errno::Errno;
  |     ^^^^^^^-----
  |     |      |
  |     |      help: a similar name exists in the module: `errno`
  |     no `Errno` in `errno`

error[E0432]: unresolved import `self::Errno`
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:133:15
    |
133 |     use self::Errno::*;
    |               ^^^^^ could not find `Errno` in `self`

error[E0432]: unresolved import `errno::Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/fcntl.rs:2:5
  |
2 | use errno::Errno;
  |     ^^^^^^^-----
  |     |      |
  |     |      help: a similar name exists in the module: `errno`
  |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
  --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/poll.rs:10:5
   |
10 | use errno::Errno;
   |     ^^^^^^^-----
   |     |      |
   |     |      help: a similar name exists in the module: `errno`
   |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
  --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/pty.rs:15:5
   |
15 | use errno::Errno;
   |     ^^^^^^^-----
   |     |      |
   |     |      help: a similar name exists in the module: `errno`
   |     no `Errno` in `errno`

error[E0432]: unresolved import `Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sched.rs:2:6
  |
2 | use {Errno, Result};
  |      ^^^^^
  |      |
  |      no `Errno` in the root
  |      help: a similar name exists in the module: `errno`

error[E0432]: unresolved import `errno::Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/mman.rs:4:5
  |
4 | use errno::Errno;
  |     ^^^^^^^-----
  |     |      |
  |     |      help: a similar name exists in the module: `errno`
  |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/select.rs:6:5
  |
6 | use errno::Errno;
  |     ^^^^^^^-----
  |     |      |
  |     |      help: a similar name exists in the module: `errno`
  |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/signal.rs:8:5
  |
8 | use errno::Errno;
  |     ^^^^^^^-----
  |     |      |
  |     |      help: a similar name exists in the module: `errno`
  |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/socket/mod.rs:5:5
  |
5 | use errno::Errno;
  |     ^^^^^^^-----
  |     |      |
  |     |      help: a similar name exists in the module: `errno`
  |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/socket/addr.rs:3:5
  |
3 | use errno::Errno;
  |     ^^^^^^^-----
  |     |      |
  |     |      help: a similar name exists in the module: `errno`
  |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/socket/sockopt.rs:3:5
  |
3 | use errno::Errno;
  |     ^^^^^^^-----
  |     |      |
  |     |      help: a similar name exists in the module: `errno`
  |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/stat.rs:5:5
  |
5 | use errno::Errno;
  |     ^^^^^^^-----
  |     |      |
  |     |      help: a similar name exists in the module: `errno`
  |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
  --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/statvfs.rs:11:5
   |
11 | use errno::Errno;
   |     ^^^^^^^-----
   |     |      |
   |     |      help: a similar name exists in the module: `errno`
   |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/termios.rs:161:5
    |
161 | use errno::Errno;
    |     ^^^^^^^-----
    |     |      |
    |     |      help: a similar name exists in the module: `errno`
    |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/uio.rs:5:5
  |
5 | use errno::Errno;
  |     ^^^^^^^-----
  |     |      |
  |     |      help: a similar name exists in the module: `errno`
  |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/wait.rs:3:5
  |
3 | use errno::Errno;
  |     ^^^^^^^-----
  |     |      |
  |     |      help: a similar name exists in the module: `errno`
  |     no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
 --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/unistd.rs:3:19
  |
3 | use errno::{self, Errno};
  |                   ^^^^^
  |                   |
  |                   no `Errno` in `errno`
  |                   help: a similar name exists in the module: `errno`

error[E0432]: unresolved import `errno::Errno`
    --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/unistd.rs:1720:9
     |
1720 |     use errno::Errno;
     |         ^^^^^^^-----
     |         |      |
     |         |      help: a similar name exists in the module: `errno`
     |         no `Errno` in `errno`

error[E0432]: unresolved import `errno::Errno`
  --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/lib.rs:87:5
   |
87 | use errno::Errno;
   |     ^^^^^^^-----
   |     |      |
   |     |      help: a similar name exists in the module: `errno`
   |     no `Errno` in `errno`

error[E0433]: failed to resolve: use of undeclared type `Errno`
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:129:5
    |
129 |     Errno::from_i32(errno())
    |     ^^^^^ use of undeclared type `Errno`

error[E0425]: cannot find function `errno_location` in this scope
  --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:50:6
   |
50 |     *errno_location() = 0;
   |      ^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `errno_location` in this scope
  --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:56:11
   |
56 |         (*errno_location()) as i32
   |           ^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type `Errno` in this scope
  --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:60:6
   |
60 | impl Errno {
   |      ^^^^^ not found in this scope

error[E0412]: cannot find type `Errno` in this scope
  --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:69:34
   |
69 |     pub fn from_i32(err: i32) -> Errno {
   |                                  ^^^^^ not found in this scope

error[E0425]: cannot find function `from_i32` in this scope
  --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:70:9
   |
70 |         from_i32(err)
   |         ^^^^^^^^ not found in this scope
   |
help: consider using the associated function
   |
70 |         Self::from_i32(err)
   |         ~~~~~~~~~~~~~~

error[E0412]: cannot find type `Errno` in this scope
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:114:23
    |
114 | impl error::Error for Errno {}
    |                       ^^^^^ not found in this scope

error[E0412]: cannot find type `Errno` in this scope
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:116:23
    |
116 | impl fmt::Display for Errno {
    |                       ^^^^^ not found in this scope

error[E0412]: cannot find type `Errno` in this scope
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:122:11
    |
122 | impl From<Errno> for io::Error {
    |     -     ^^^^^ not found in this scope
    |     |
    |     help: you might be missing a type parameter: `<Errno>`

error[E0412]: cannot find type `Errno` in this scope
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:123:18
    |
123 |     fn from(err: Errno) -> Self {
    |                  ^^^^^ not found in this scope

error[E0412]: cannot find type `Errno` in this scope
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:128:14
    |
128 | fn last() -> Errno {
    |              ^^^^^ not found in this scope

error[E0412]: cannot find type `Errno` in this scope
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/errno.rs:132:16
    |
132 | fn desc(errno: Errno) -> &'static str {
    |                ^^^^^ not found in this scope

error[E0425]: cannot find value `O_ASYNC` in crate `libc`
    --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/fcntl.rs:47:9
     |
47   |         O_ASYNC;
     |         ^^^^^^^ help: a constant with a similar name exists: `O_DSYNC`
     |
    ::: /home/pbulk/build/x11/citron/work/vendor/libc-0.2.124/src/unix/solarish/mod.rs:1284:1
     |
1284 | pub const O_DSYNC: ::c_int = 0x40;
     | -------------------------- similarly named constant `O_DSYNC` defined here

error[E0425]: cannot find value `AF_BLUETOOTH` in crate `libc`
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/socket/addr.rs:102:23
    |
102 |     Bluetooth = libc::AF_BLUETOOTH,
    |                       ^^^^^^^^^^^^ not found in `libc`

error[E0425]: cannot find value `AF_ISDN` in crate `libc`
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/socket/addr.rs:107:18
    |
107 |     Isdn = libc::AF_ISDN,
    |                  ^^^^^^^ not found in `libc`

error[E0425]: cannot find value `SO_REUSEPORT` in crate `libc`
    --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/socket/sockopt.rs:213:56
     |
213  | sockopt_impl!(Both, ReusePort, libc::SOL_SOCKET, libc::SO_REUSEPORT, bool);
     |                                                        ^^^^^^^^^^^^ help: a constant with a similar name exists: `SO_REUSEADDR`
     |
    ::: /home/pbulk/build/x11/citron/work/vendor/libc-0.2.124/src/unix/solarish/mod.rs:1802:1
     |
1802 | pub const SO_REUSEADDR: ::c_int = 0x0004;
     | ------------------------------- similarly named constant `SO_REUSEADDR` defined here

error[E0081]: discriminant value `12` assigned more than once
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/socket/addr.rs:34:1
    |
34  | pub enum AddressFamily {
    | ^^^^^^^^^^^^^^^^^^^^^^
...
69  |     Decnet = libc::AF_DECnet,
    |              --------------- first assignment of `12`
...
102 |     Bluetooth = libc::AF_BLUETOOTH,
    |                 ------------------ second assignment of `12`

error[E0081]: discriminant value `4` assigned more than once
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/macros.rs:95:9
    |
95  | /         $v enum $BitFlags {
96  | |             $($entries)*
97  | |         }
    | |_________^
...
164 |                   $entry = libc::$entry,
    |                            ------------
    |                            |
    |                            first assignment of `4`
    |                            second assignment of `4`
    |
   ::: /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/termios.rs:537:1
    |
537 | / libc_enum! {
538 | |     /// Indices into the `termios.c_cc` array for special characters.
539 | |     #[repr(usize)]
540 | |     pub enum SpecialCharacterIndices {
...   |
579 | |     }
580 | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0081]: discriminant value `5` assigned more than once
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/macros.rs:95:9
    |
95  | /         $v enum $BitFlags {
96  | |             $($entries)*
97  | |         }
    | |_________^
...
164 |                   $entry = libc::$entry,
    |                            ------------
    |                            |
    |                            first assignment of `5`
    |                            second assignment of `5`
    |
   ::: /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/sys/termios.rs:537:1
    |
537 | / libc_enum! {
538 | |     /// Indices into the `termios.c_cc` array for special characters.
539 | |     #[repr(usize)]
540 | |     pub enum SpecialCharacterIndices {
...   |
579 | |     }
580 | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `libc_enum` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0609]: no field `d_fileno` on type `dirent`
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/dir.rs:171:26
    |
171 |         u64::from(self.0.d_fileno)
    |                          ^^^^^^^^ unknown field
    |
    = note: available fields are: `d_ino`, `d_off`, `d_reclen`, `d_name`

error[E0609]: no field `d_type` on type `dirent`
   --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/dir.rs:185:22
    |
185 |         match self.0.d_type {
    |                      ^^^^^^ unknown field
    |
    = note: available fields are: `d_ino`, `d_off`, `d_reclen`, `d_name`

error[E0308]: mismatched types
    --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/unistd.rs:896:47
     |
896  |     let res = unsafe { libc::sethostname(ptr, len) };
     |                        -----------------      ^^^ expected `i32`, found `usize`
     |                        |
     |                        arguments to this function are incorrect
     |
note: function defined here
    --> /home/pbulk/build/x11/citron/work/vendor/libc-0.2.124/src/unix/solarish/mod.rs:2759:12
     |
2759 |     pub fn sethostname(name: *const ::c_char, len: ::c_int) -> ::c_int;
     |            ^^^^^^^^^^^
help: you can convert a `usize` to an `i32` and panic if the converted value doesn't fit
     |
896  |     let res = unsafe { libc::sethostname(ptr, len.try_into().unwrap()) };
     |                                                  ++++++++++++++++++++

error[E0308]: mismatched types
    --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/unistd.rs:1500:25
     |
1500 |         libc::setgroups(groups.len() as setgroups_ngroups_t, groups.as_ptr() as *const gid_t)
     |         --------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `usize`
     |         |
     |         arguments to this function are incorrect
     |
note: function defined here
    --> /home/pbulk/build/x11/citron/work/vendor/libc-0.2.124/src/unix/solarish/mod.rs:2715:12
     |
2715 |     pub fn setgroups(ngroups: ::c_int, ptr: *const ::gid_t) -> ::c_int;
     |            ^^^^^^^^^
help: you can convert a `usize` to an `i32` and panic if the converted value doesn't fit
     |
1500 |         libc::setgroups((groups.len() as setgroups_ngroups_t).try_into().unwrap(), groups.as_ptr() as *const gid_t)
     |                         +                                   +++++++++++++++++++++

error[E0609]: no field `pw_class` on type `passwd`
    --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/unistd.rs:2528:58
     |
2528 |                 class: CString::new(CStr::from_ptr((*pw).pw_class).to_bytes()).unwrap(),
     |                                                          ^^^^^^^^ unknown field
     |
     = note: available fields are: `pw_name`, `pw_passwd`, `pw_uid`, `pw_gid`, `pw_age` ... and 4 others

error[E0609]: no field `pw_change` on type `passwd`
    --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/unistd.rs:2530:31
     |
2530 |                 change: (*pw).pw_change,
     |                               ^^^^^^^^^ help: a field with a similar name exists: `pw_age`

error[E0609]: no field `pw_expire` on type `passwd`
    --> /home/pbulk/build/x11/citron/work/vendor/nix-0.17.0/src/unistd.rs:2532:31
     |
2532 |                 expire: (*pw).pw_expire
     |                               ^^^^^^^^^ unknown field
     |
     = note: available fields are: `pw_name`, `pw_passwd`, `pw_uid`, `pw_gid`, `pw_age` ... and 4 others

Some errors have detailed explanations: E0081, E0308, E0412, E0425, E0432, E0433, E0609.
For more information about an error, try `rustc --explain E0081`.
error: could not compile `nix` due to 49 previous errors
*** Error code 101

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/citron
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/citron