+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/kalker-2.0.1/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/kalker-2.0.1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for kalker-2.0.1
   Compiling libc v0.2.81
   Compiling log v0.4.11
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.54
   Compiling wasm-bindgen-shared v0.2.69
   Compiling quote v1.0.7
   Compiling cfg-if v0.1.10
   Compiling gmp-mpfr-sys v1.4.10
   Compiling bumpalo v3.4.0
   Compiling cfg-if v1.0.0
   Compiling lazy_static v1.4.0
   Compiling memchr v2.3.4
   Compiling wasm-bindgen-backend v0.2.69
   Compiling az v1.2.0
   Compiling bitflags v1.2.1
   Compiling wasm-bindgen-macro-support v0.2.69
   Compiling wasm-bindgen v0.2.69
   Compiling rug v1.17.0
   Compiling wasm-bindgen-macro v0.2.69
   Compiling dirs-sys-next v0.1.1
   Compiling dirs-next v2.0.0
   Compiling nix v0.19.1
error[E0432]: unresolved import `self::os`
 --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/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/math/kalker/work/vendor/nix-0.19.1/src/errno.rs:6:15
  |
6 | pub use self::consts::*;
  |               ^^^^^^ could not find `consts` in `self`

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

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

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

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

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

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

error[E0432]: unresolved import `crate::Errno`
 --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/sched.rs:1:13
  |
1 | use crate::{Errno, Result};
  |             ^^^^^
  |             |
  |             no `Errno` in the root
  |             help: a similar name exists in the module: `errno`

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

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

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

error[E0432]: unresolved import `crate::errno::Errno`
 --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/sys/socket/mod.rs:5:28
  |
5 | use crate::{Error, Result, errno::Errno};
  |                            ^^^^^^^-----
  |                            |      |
  |                            |      help: a similar name exists in the module: `errno`
  |                            no `Errno` in `errno`

error[E0432]: unresolved import `crate::errno::Errno`
 --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/sys/socket/addr.rs:3:5
  |
3 | use crate::errno::Errno;
  |     ^^^^^^^^^^^^^^^^^^^ no `Errno` in `errno`
  |
help: a similar name exists in the module
  |
3 | use crate::errno::errno;
  |                   ~~~~~
help: consider importing this unresolved item instead
  |
3 | use crate::sys::socket::Errno;
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0432]: unresolved import `crate::errno::Errno`
 --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/sys/socket/sockopt.rs:4:5
  |
4 | use crate::errno::Errno;
  |     ^^^^^^^^^^^^^^^^^^^ no `Errno` in `errno`
  |
help: a similar name exists in the module
  |
4 | use crate::errno::errno;
  |                   ~~~~~
help: consider importing this unresolved item instead
  |
4 | use crate::sys::socket::Errno;
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0432]: unresolved import `crate::errno::Errno`
 --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/sys/stat.rs:4:30
  |
4 | use crate::{Result, NixPath, errno::Errno};
  |                              ^^^^^^^-----
  |                              |      |
  |                              |      help: a similar name exists in the module: `errno`
  |                              no `Errno` in `errno`

error[E0432]: unresolved import `crate::errno::Errno`
  --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/sys/statvfs.rs:10:30
   |
10 | use crate::{Result, NixPath, errno::Errno};
   |                              ^^^^^^^-----
   |                              |      |
   |                              |      help: a similar name exists in the module: `errno`
   |                              no `Errno` in `errno`

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

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

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

error[E0432]: unresolved import `crate::Errno`
  --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/time.rs:10:13
   |
10 | use crate::{Errno, Result};
   |             ^^^^^
   |             |
   |             no `Errno` in the root
   |             help: a similar name exists in the module: `errno`

error[E0432]: unresolved import `crate::errno::Errno`
 --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/unistd.rs:5:26
  |
5 | use crate::errno::{self, Errno};
  |                          ^^^^^
  |                          |
  |                          no `Errno` in `errno`
  |                          help: a similar name exists in the module: `errno`

error[E0432]: unresolved import `crate::errno::Errno`
    --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/unistd.rs:1699:9
     |
1699 |     use crate::errno::Errno;
     |         ^^^^^^^^^^^^^^^^^^^ no `Errno` in `errno`
     |
help: a similar name exists in the module
     |
1699 |     use crate::errno::errno;
     |                       ~~~~~
help: consider importing this unresolved item instead
     |
1699 |     use crate::unistd::Errno;
     |         ~~~~~~~~~~~~~~~~~~~~~

error[E0432]: unresolved import `errno::Errno`
  --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/lib.rs:85:5
   |
85 | 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/math/kalker/work/vendor/nix-0.19.1/src/errno.rs:114:5
    |
114 |     Errno::from_i32(errno())
    |     ^^^^^ use of undeclared type `Errno`

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

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

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

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

error[E0412]: cannot find type `Errno` in this scope
   --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/errno.rs:107:11
    |
107 | 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/math/kalker/work/vendor/nix-0.19.1/src/errno.rs:108:18
    |
108 |     fn from(err: Errno) -> Self {
    |                  ^^^^^ not found in this scope

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

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

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

error[E0425]: cannot find value `O_DIRECTORY` in crate `libc`
  --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/fcntl.rs:66:9
   |
66 |         O_DIRECTORY;
   |         ^^^^^^^^^^^ not found in `libc`

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

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

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

error[E0425]: cannot find function `getgrouplist` in crate `libc`
    --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/unistd.rs:1527:19
     |
1527 |             libc::getgrouplist(user.as_ptr(),
     |                   ^^^^^^^^^^^^
     |
    ::: /home/pbulk/build/math/kalker/work/vendor/libc-0.2.81/src/unix/mod.rs:921:5
     |
921  |     pub fn getgroups(ngroups_max: ::c_int, groups: *mut gid_t) -> ::c_int;
     |     --------------------------------------------------------------------- similarly named function `getgroups` defined here
     |
help: a function with a similar name exists
     |
1527 |             libc::getgroups(user.as_ptr(),
     |                   ~~~~~~~~~
help: consider importing this function
     |
4    | use crate::unistd::getgrouplist;
     |
help: if you import `getgrouplist`, refer to it directly
     |
1527 -             libc::getgrouplist(user.as_ptr(),
1527 +             getgrouplist(user.as_ptr(),
     |

error[E0081]: discriminant value `12` assigned more than once
   --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/sys/socket/addr.rs:33:1
    |
33  | pub enum AddressFamily {
    | ^^^^^^^^^^^^^^^^^^^^^^
...
68  |     Decnet = libc::AF_DECnet,
    |              --------------- `12` assigned here
...
101 |     Bluetooth = libc::AF_BLUETOOTH,
    |                 ------------------ `12` assigned here

error[E0081]: discriminant value `4` assigned more than once
   --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/macros.rs:95:9
    |
95  | /         $v enum $BitFlags {
96  | |             $($entries)*
97  | |         }
    | |_________^
...
164 |                   $entry = libc::$entry,
    |                            ------------
    |                            |
    |                            `4` assigned here
    |                            `4` assigned here
    |
   ::: /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/sys/termios.rs:498:1
    |
498 | / libc_enum! {
499 | |     /// Indices into the `termios.c_cc` array for special characters.
500 | |     #[repr(usize)]
501 | |     pub enum SpecialCharacterIndices {
...   |
540 | |     }
541 | | }
    | |_- 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/math/kalker/work/vendor/nix-0.19.1/src/macros.rs:95:9
    |
95  | /         $v enum $BitFlags {
96  | |             $($entries)*
97  | |         }
    | |_________^
...
164 |                   $entry = libc::$entry,
    |                            ------------
    |                            |
    |                            `5` assigned here
    |                            `5` assigned here
    |
   ::: /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/sys/termios.rs:498:1
    |
498 | / libc_enum! {
499 | |     /// Indices into the `termios.c_cc` array for special characters.
500 | |     #[repr(usize)]
501 | |     pub enum SpecialCharacterIndices {
...   |
540 | |     }
541 | | }
    | |_- 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/math/kalker/work/vendor/nix-0.19.1/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/math/kalker/work/vendor/nix-0.19.1/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[E0425]: cannot find function `errno_location` in this scope
  --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/errno.rs:34:10
   |
34 |         *errno_location() = 0;
   |          ^^^^^^^^^^^^^^ not found in this scope

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

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

error[E0308]: mismatched types
    --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/unistd.rs:918:47
     |
918  |     let res = unsafe { libc::sethostname(ptr, len) };
     |                        -----------------      ^^^ expected `i32`, found `usize`
     |                        |
     |                        arguments to this function are incorrect
     |
note: function defined here
    --> /home/pbulk/build/math/kalker/work/vendor/libc-0.2.81/src/unix/solarish/mod.rs:2279:12
     |
2279 |     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
     |
918  |     let res = unsafe { libc::sethostname(ptr, len.try_into().unwrap()) };
     |                                                  ++++++++++++++++++++

error[E0308]: mismatched types
    --> /home/pbulk/build/math/kalker/work/vendor/nix-0.19.1/src/unistd.rs:1482:25
     |
1482 |         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/math/kalker/work/vendor/libc-0.2.81/src/unix/solarish/mod.rs:2218:12
     |
2218 |     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
     |
1482 |         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/math/kalker/work/vendor/nix-0.19.1/src/unistd.rs:2563:58
     |
2563 |                 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/math/kalker/work/vendor/nix-0.19.1/src/unistd.rs:2565:31
     |
2565 |                 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/math/kalker/work/vendor/nix-0.19.1/src/unistd.rs:2567:31
     |
2567 |                 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 52 previous errors
*** Error code 101

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-2022Q4-x86_64/math/kalker
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-2022Q4-x86_64/math/kalker