[package - main-i386-default][net-p2p/ethash] Failed for ethash-1.0.1_1 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Thu, 11 Apr 2024 10:39:33 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     bofh@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/beefy17/data/main-i386-default/pb7573d3199cc_sfb8a8333b48/logs/ethash-1.0.1_1.log
Build URL:      https://pkg-status.freebsd.org/beefy17/build.html?mastername=main-i386-default&build=pb7573d3199cc_sfb8a8333b48
Log:

=>> Building net-p2p/ethash
build started at Thu Apr 11 10:39:28 UTC 2024
port directory: /usr/ports/net-p2p/ethash
package name: ethash-1.0.1_1
building for: FreeBSD main-i386-default-job-12 15.0-CURRENT FreeBSD 15.0-CURRENT 1500018 i386
maintained by: bofh@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 489 Aug 17  2023 /usr/ports/net-p2p/ethash/Makefile
Ports top last git commit: b7573d3199c
Ports top unclean checkout: no
Port dir last git commit: b4d51fb2ec1
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.1-1-g1e9f97d6
Host OSVERSION: 1500006
Jail OSVERSION: 1500018
Job Id: 12




!!! Jail is newer than host. (Jail: 1500018, Host: 1500006) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/sh
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
OSVERSION=1500018
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
UNAME_m=i386
UNAME_p=i386
UNAME_r=15.0-CURRENT
LOCALBASE=/usr/local
UNAME_v=FreeBSD 15.0-CURRENT 1500018
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.1-1-g1e9f97d6
MASTERMNT=/usr/local/poudriere/data/.m/main-i386-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/usr/local/poudriere/data/.m/main-i386-default/12/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=main-i386-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/main-i386-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.1-1-g1e9f97d6
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
---End OPTIONS List---

--MAINTAINER--
bofh@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/net-p2p/ethash/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/net-p2p/ethash/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/net-p2p/ethash/work/.cache  HOME=/wrkdirs/usr/ports/net-p2p/ethash/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net-p2p/ethash/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net-p2p/ethash/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
NINJA_STATUS="[%p %s/%t] " XDG_DATA_HOME=/wrkdirs/usr/ports/net-p2p/ethash/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/net-p2p/ethash/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/net-p2p/ethash/work/.cache  HOME=/wrkdirs/usr/ports/net-p2p/ethash/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net-p2p/ethash/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net-p2p/ethash/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES DESTDIR=/wrkdirs/usr/ports/net-p2p/ethash/work/stage PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing  " BSD_INSTALL_
PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
CMAKE_BUILD_TYPE="release" OSREL=15.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/ethash"  EXAMPLESDIR="share/examples/ethash"  DATADIR="share/ethash"  WWWDIR="www/ethash"  ETCDIR="etc/ethash"
--End PLIST_SUB--

--SUB_LIST--
PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/ethash DOCSDIR=/usr/local/share/doc/ethash EXAMPLESDIR=/usr/local/share/examples/ethash  WWWDIR=/usr/local/www/ethash ETCDIR=/usr/local/etc/ethash
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=i386
MACHINE_ARCH=i386
ARCH=${MACHINE_ARCH}
####  ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  524288
stack size              (kbytes, -s)  65536
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  8192
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   ethash-1.0.1_1 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.21.0.pkg
[main-i386-default-job-12] Installing pkg-1.21.0...
[main-i386-default-job-12] Extracting pkg-1.21.0: .......... done
===>   ethash-1.0.1_1 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of ethash-1.0.1_1
===========================================================================
=======================<phase: fetch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by ethash-1.0.1_1 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by ethash-1.0.1_1 for building
=> SHA256 Checksum OK for chfast-ethash-v1.0.1_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: extract        >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License APACHE20 accepted by the user
===> Fetching all distfiles required by ethash-1.0.1_1 for building
===>  Extracting for ethash-1.0.1_1
=> SHA256 Checksum OK for chfast-ethash-v1.0.1_GH0.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: patch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Patching for ethash-1.0.1_1
===>  Applying FreeBSD patches for ethash-1.0.1_1 from /usr/ports/net-p2p/ethash/files
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   ethash-1.0.1_1 depends on file: /usr/local/bin/cmake - not found
===>   Installing existing package /packages/All/cmake-core-3.28.3.pkg
[main-i386-default-job-12] Installing cmake-core-3.28.3...
[main-i386-default-job-12] `-- Installing expat-2.6.2...
[main-i386-default-job-12] `-- Extracting expat-2.6.2: .......... done
[main-i386-default-job-12] `-- Installing jsoncpp-1.9.5...
[main-i386-default-job-12] `-- Extracting jsoncpp-1.9.5: .......... done
[main-i386-default-job-12] `-- Installing libuv-1.48.0...
[main-i386-default-job-12] `-- Extracting libuv-1.48.0: .......... done
[main-i386-default-job-12] `-- Installing rhash-1.4.4_1...
[main-i386-default-job-12] |   `-- Installing gettext-runtime-0.22.5...
[main-i386-default-job-12] |   | `-- Installing indexinfo-0.3.1...
[main-i386-default-job-12] |   | `-- Extracting indexinfo-0.3.1: .... done
[main-i386-default-job-12] |   `-- Extracting gettext-runtime-0.22.5: .......... done
[main-i386-default-job-12] `-- Extracting rhash-1.4.4_1: .......... done
[main-i386-default-job-12] Extracting cmake-core-3.28.3: .......... done
===>   ethash-1.0.1_1 depends on file: /usr/local/bin/cmake - found
===>   Returning to build of ethash-1.0.1_1
===>   ethash-1.0.1_1 depends on executable: ninja - not found
===>   Installing existing package /packages/All/ninja-1.11.1,2.pkg
[main-i386-default-job-12] Installing ninja-1.11.1,2...
[main-i386-default-job-12] `-- Installing python39-3.9.18_2...
[main-i386-default-job-12] |   `-- Installing libffi-3.4.4_1...
[main-i386-default-job-12] |   `-- Extracting libffi-3.4.4_1: .......... done
[main-i386-default-job-12] |   `-- Installing mpdecimal-4.0.0...
[main-i386-default-job-12] |   `-- Extracting mpdecimal-4.0.0: .......... done
[main-i386-default-job-12] |   `-- Installing readline-8.2.10...
[main-i386-default-job-12] |   `-- Extracting readline-8.2.10: .......... done
[main-i386-default-job-12] `-- Extracting python39-3.9.18_2: .......... done
[main-i386-default-job-12] Extracting ninja-1.11.1,2: ........ done
=====
Message from python39-3.9.18_2:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py39-gdbm       databases/py-gdbm@py39
py39-sqlite3    databases/py-sqlite3@py39
py39-tkinter    x11-toolkits/py-tkinter@py39
===>   ethash-1.0.1_1 depends on executable: ninja - found
===>   Returning to build of ethash-1.0.1_1
===========================================================================
=======================<phase: lib-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   ethash-1.0.1_1 depends on shared library: libbenchmark.so - not found
===>   Installing existing package /packages/All/benchmark-1.8.3.pkg
[main-i386-default-job-12] Installing benchmark-1.8.3...
[main-i386-default-job-12] Extracting benchmark-1.8.3: .......... done
===>   ethash-1.0.1_1 depends on shared library: libbenchmark.so - found (/usr/local/lib/libbenchmark.so)
===>   Returning to build of ethash-1.0.1_1
===>   ethash-1.0.1_1 depends on shared library: libgtest.so - not found
===>   Installing existing package /packages/All/googletest-1.14.0.pkg
[main-i386-default-job-12] Installing googletest-1.14.0...
[main-i386-default-job-12] Extracting googletest-1.14.0: .......... done
===>   ethash-1.0.1_1 depends on shared library: libgtest.so - found (/usr/local/lib/libgtest.so)
===>   Returning to build of ethash-1.0.1_1
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Configuring for ethash-1.0.1_1
===>  Performing out-of-source build
/bin/mkdir -p /wrkdirs/usr/ports/net-p2p/ethash/work/.build
-- The C compiler identification is Clang 18.1.3
-- The CXX compiler identification is Clang 18.1.3
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test fstack-protector
-- Performing Test fstack-protector - Success
-- Configuring done (0.9s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_COLOR_MAKEFILE
    CMAKE_MODULE_LINKER_FLAGS
    CMAKE_SHARED_LINKER_FLAGS
    CMAKE_VERBOSE_MAKEFILE
    FETCHCONTENT_FULLY_DISCONNECTED
    HUNTER_ENABLED
    THREADS_HAVE_PTHREAD_ARG


-- Build files have been written to: /wrkdirs/usr/ports/net-p2p/ethash/work/.build
===========================================================================
=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building for ethash-1.0.1_1
[ 14% 3/7] /usr/bin/cc  -I/wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/include -O2 -pipe  -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -std=c17 -Wpedantic -Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -fno-stack-protector -Wcast-qual -Wmissing-declarations -Wundef -Wunreachable-code -Wmissing-prototypes -Wduplicate-enum -Wnewline-eof -Wunreachable-code-aggressive -MD -MT lib/ethash/CMakeFiles/ethash.dir/primes.c.o -MF lib/ethash/CMakeFiles/ethash.dir/primes.c.o.d -o lib/ethash/CMakeFiles/ethash.dir/primes.c.o -c /wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/ethash/primes.c
[ 28% 4/7] /usr/bin/cc  -I/wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/include -O2 -pipe  -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -std=c17 -Wpedantic -Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -fno-stack-protector -Wcast-qual -Wmissing-declarations -Wundef -Wunreachable-code -Wmissing-prototypes -Wduplicate-enum -Wnewline-eof -Wunreachable-code-aggressive -MD -MT lib/keccak/CMakeFiles/keccak.dir/keccak.c.o -MF lib/keccak/CMakeFiles/keccak.dir/keccak.c.o.d -o lib/keccak/CMakeFiles/keccak.dir/keccak.c.o -c /wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/keccak/keccak.c
[ 42% 5/7] : && /usr/local/bin/cmake -E rm -f lib/keccak/libkeccak.a && /usr/bin/llvm-ar qc lib/keccak/libkeccak.a  lib/keccak/CMakeFiles/keccak.dir/keccak.c.o && /usr/bin/llvm-ranlib lib/keccak/libkeccak.a && :
[ 57% 5/7] /usr/bin/c++  -I/wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/include -O2 -pipe -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -std=c++17 -Wpedantic -Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -fno-stack-protector -Wcast-qual -Wmissing-declarations -Wundef -Wunreachable-code -Wduplicate-enum -Wnewline-eof -Wunreachable-code-aggressive -fno-rtti -MD -MT lib/ethash/CMakeFiles/ethash.dir/ethash.cpp.o -MF lib/ethash/CMakeFiles/ethash.dir/ethash.cpp.o.d -o lib/ethash/CMakeFiles/ethash.dir/ethash.cpp.o -c /wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/ethash/ethash.cpp
FAILED: lib/ethash/CMakeFiles/ethash.dir/ethash.cpp.o 
/usr/bin/c++  -I/wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/include -O2 -pipe -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -std=c++17 -Wpedantic -Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -fno-stack-protector -Wcast-qual -Wmissing-declarations -Wundef -Wunreachable-code -Wduplicate-enum -Wnewline-eof -Wunreachable-code-aggressive -fno-rtti -MD -MT lib/ethash/CMakeFiles/ethash.dir/ethash.cpp.o -MF lib/ethash/CMakeFiles/ethash.dir/ethash.cpp.o.d -o lib/ethash/CMakeFiles/ethash.dir/ethash.cpp.o -c /wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/ethash/ethash.cpp
In file included from /wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/ethash/ethash.cpp:5:
In file included from /wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/ethash/ethash-internal.hpp:11:
/wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/ethash/endianness.hpp:52:58: error: use of undeclared identifier 'bswap32'
   52 |     static uint32_t uint32(uint32_t x) noexcept { return bswap32(x); }
      |                                                          ^
/wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/ethash/endianness.hpp:53:58: error: use of undeclared identifier 'bswap64'
   53 |     static uint64_t uint64(uint64_t x) noexcept { return bswap64(x); }
      |                                                          ^
2 errors generated.
[ 71% 5/7] /usr/bin/c++  -I/wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/include -O2 -pipe -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -Wpedantic -Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -fno-stack-protector -Wcast-qual -Wmissing-declarations -Wundef -Wunreachable-code -Wduplicate-enum -Wnewline-eof -Wunreachable-code-aggressive -fno-rtti -MD -MT lib/global_context/CMakeFiles/global-context.dir/global_context.cpp.o -MF lib/global_context/CMakeFiles/global-context.dir/global_context.cpp.o.d -o lib/global_context/CMakeFiles/global-context.dir/global_context.cpp.o -c /wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/global_context/global_context.cpp
FAILED: lib/global_context/CMakeFiles/global-context.dir/global_context.cpp.o 
/usr/bin/c++  -I/wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/include -O2 -pipe -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -Wno-error=deprecated-declarations -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -Wpedantic -Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -fno-stack-protector -Wcast-qual -Wmissing-declarations -Wundef -Wunreachable-code -Wduplicate-enum -Wnewline-eof -Wunreachable-code-aggressive -fno-rtti -MD -MT lib/global_context/CMakeFiles/global-context.dir/global_context.cpp.o -MF lib/global_context/CMakeFiles/global-context.dir/global_context.cpp.o.d -o lib/global_context/CMakeFiles/global-context.dir/global_context.cpp.o -c /wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/global_context/global_context.cpp
In file included from /wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/global_context/global_context.cpp:5:
In file included from /wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/global_context/../ethash/ethash-internal.hpp:11:
/wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/global_context/../ethash/endianness.hpp:52:58: error: use of undeclared identifier 'bswap32'
   52 |     static uint32_t uint32(uint32_t x) noexcept { return bswap32(x); }
      |                                                          ^
/wrkdirs/usr/ports/net-p2p/ethash/work/ethash-1.0.1/lib/global_context/../ethash/endianness.hpp:53:58: error: use of undeclared identifier 'bswap64'
   53 |     static uint64_t uint64(uint64_t x) noexcept { return bswap64(x); }
      |                                                          ^
2 errors generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/net-p2p/ethash