+ 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/megacmd-1.6.3/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/megacmd-1.6.3/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for megacmd-1.6.3
/opt/pkg/bin/bmake  all-recursive
Making all in sdk
/opt/pkg/bin/bmake  all-recursive
Making all in include
  CXX      src/crypto/libmega_la-cryptopp.lo
In file included from ./include/mega/crypto/cryptopp.h:39,
                 from ./include/mega/types.h:69,
                 from ./include/mega.h:33,
                 from src/crypto/cryptopp.cpp:22:
/home/pbulk/build/net/megacmd/work/.buildlink/include/cryptopp/pwdbased.h: In instantiation of 'std::size_t CryptoPP::PKCS5_PBKDF2_HMAC<T>::DeriveKey(CryptoPP::byte*, std::size_t, CryptoPP::byte, const CryptoPP::byte*, std::size_t, const CryptoPP::byte*, std::size_t, unsigned int, double) const [with T = CryptoPP::SHA512; std::size_t = long unsigned int; CryptoPP::byte = unsigned char]':
src/crypto/cryptopp.cpp:908:21:   required from here
/home/pbulk/build/net/megacmd/work/.buildlink/include/cryptopp/pwdbased.h:287:91: warning: conversion from 'std::size_t' {aka 'long unsigned int'} to 'double' may change value [-Wconversion]
  287 |                         timeInSeconds = timeInSeconds / ((derivedLen + buffer.size() - 1) / buffer.size());
      |                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
  CXX      src/db/libmega_la-sqlite.lo
  CXX      src/gfx/libmega_la-external.lo
  CXX      src/crypto/libmega_la-sodium.lo
  CXX      src/posix/libmega_la-fs.lo
src/posix/fs.cpp: In static member function 'static void mega::PosixFileSystemAccess::emptydirlocal(const mega::LocalPath&, dev_t)':
src/posix/fs.cpp:1093:24: error: 'struct dirent' has no member named 'd_type'
 1093 |                 if (d->d_type != DT_DIR
      |                        ^~~~~~
src/posix/fs.cpp:1093:34: error: 'DT_DIR' was not declared in this scope
 1093 |                 if (d->d_type != DT_DIR
      |                                  ^~~~~~
src/posix/fs.cpp: In member function 'virtual void mega::PosixFileSystemAccess::osversion(std::string*, bool) const':
src/posix/fs.cpp:1431:12: error: expected ';' before 'uts'
 1431 |     utsname uts;
      |            ^~~~
      |            ;
src/posix/fs.cpp:1431:5: warning: statement has no effect [-Wunused-value]
 1431 |     utsname uts;
      |     ^~~~~~~
src/posix/fs.cpp:1433:17: error: 'uts' was not declared in this scope; did you mean 'puts'?
 1433 |     if (!uname(&uts))
      |                 ^~~
      |                 puts
src/posix/fs.cpp: In member function 'virtual fsfp_t mega::PosixFileSystemAccess::fsFingerprint(const mega::LocalPath&) const':
src/posix/fs.cpp:1930:19: error: aggregate 'mega::PosixFileSystemAccess::fsFingerprint(const mega::LocalPath&) const::statfs statfsbuf' has incomplete type and cannot be defined
 1930 |     struct statfs statfsbuf;
      |                   ^~~~~~~~~
src/posix/fs.cpp:1933:50: error: invalid use of incomplete type 'struct mega::PosixFileSystemAccess::fsFingerprint(const mega::LocalPath&) const::statfs'
 1933 |     if (statfs(path.localpath.c_str(), &statfsbuf))
      |                                                  ^
src/posix/fs.cpp:1930:12: note: forward declaration of 'struct mega::PosixFileSystemAccess::fsFingerprint(const mega::LocalPath&) const::statfs'
 1930 |     struct statfs statfsbuf;
      |            ^~~~~~
src/posix/fs.cpp: In member function 'virtual m_off_t mega::PosixFileSystemAccess::availableDiskSpace(const mega::LocalPath&)':
src/posix/fs.cpp:2261:19: error: aggregate 'mega::PosixFileSystemAccess::availableDiskSpace(const mega::LocalPath&)::statfs buffer' has incomplete type and cannot be defined
 2261 |     struct statfs buffer;
      |                   ^~~~~~
src/posix/fs.cpp:2264:58: error: invalid use of incomplete type 'struct mega::PosixFileSystemAccess::availableDiskSpace(const mega::LocalPath&)::statfs'
 2264 |     if (statfs(adjustBasePath(drivePath).c_str(), &buffer) < 0)
      |                                                          ^
src/posix/fs.cpp:2261:12: note: forward declaration of 'struct mega::PosixFileSystemAccess::availableDiskSpace(const mega::LocalPath&)::statfs'
 2261 |     struct statfs buffer;
      |            ^~~~~~
*** [src/posix/libmega_la-fs.lo] Error code 1

bmake[4]: stopped in /home/pbulk/build/net/megacmd/work/MEGAcmd-1.6.3_Linux/sdk
1 error

bmake[4]: stopped in /home/pbulk/build/net/megacmd/work/MEGAcmd-1.6.3_Linux/sdk
*** [all-recursive] Error code 1

bmake[3]: stopped in /home/pbulk/build/net/megacmd/work/MEGAcmd-1.6.3_Linux/sdk
1 error

bmake[3]: stopped in /home/pbulk/build/net/megacmd/work/MEGAcmd-1.6.3_Linux/sdk
*** [all] Error code 2

bmake[2]: stopped in /home/pbulk/build/net/megacmd/work/MEGAcmd-1.6.3_Linux/sdk
1 error

bmake[2]: stopped in /home/pbulk/build/net/megacmd/work/MEGAcmd-1.6.3_Linux/sdk
*** [all-recursive] Error code 1

bmake[1]: stopped in /home/pbulk/build/net/megacmd/work/MEGAcmd-1.6.3_Linux
1 error

bmake[1]: stopped in /home/pbulk/build/net/megacmd/work/MEGAcmd-1.6.3_Linux
*** [all] Error code 2

bmake: stopped in /home/pbulk/build/net/megacmd/work/MEGAcmd-1.6.3_Linux
1 error

bmake: stopped in /home/pbulk/build/net/megacmd/work/MEGAcmd-1.6.3_Linux
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/net/megacmd
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/net/megacmd