[package - main-amd64-default][net-p2p/ethash] Failed for ethash-1.0.1_2 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Wed, 19 Jun 2024 04:09:20 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/beefy18/data/main-amd64-default/pe0861e7ef8ca_se2ad879d4c6/logs/ethash-1.0.1_2.log
Build URL:      https://pkg-status.freebsd.org/beefy18/build.html?mastername=main-amd64-default&build=pe0861e7ef8ca_se2ad879d4c6
Log:

=>> Building net-p2p/ethash
build started at Wed Jun 19 04:09:14 UTC 2024
port directory: /usr/ports/net-p2p/ethash
package name: ethash-1.0.1_2
building for: FreeBSD main-amd64-default-job-03 15.0-CURRENT FreeBSD 15.0-CURRENT 1500019 amd64
maintained by: bofh@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 489 Jun 18 01:01 /usr/ports/net-p2p/ethash/Makefile
Ports top last git commit: e0861e7ef8c
Ports top unclean checkout: no
Port dir last git commit: 5add937f95a
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.1-30-g79e3edcd
Host OSVERSION: 1500018
Jail OSVERSION: 1500019
Job Id: 03




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



---Begin Environment---
SHELL=/bin/sh
OSVERSION=1500019
UNAME_v=FreeBSD 15.0-CURRENT 1500019
UNAME_r=15.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.1-30-g79e3edcd
MASTERMNT=/usr/local/poudriere/data/.m/main-amd64-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-amd64-default/03/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=main-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/main-amd64-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.1-30-g79e3edcd
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---
# 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
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
####  ####
# 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)  33554432
stack size              (kbytes, -s)  524288
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_2 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.21.3.pkg
[main-amd64-default-job-03] Installing pkg-1.21.3...
[main-amd64-default-job-03] Extracting pkg-1.21.3: .......... done
===>   ethash-1.0.1_2 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of ethash-1.0.1_2
===========================================================================
=======================<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_2 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_2 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_2 for building
===>  Extracting for ethash-1.0.1_2
=> 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_2
===>  Applying FreeBSD patches for ethash-1.0.1_2 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_2 depends on file: /usr/local/bin/cmake - not found
===>   Installing existing package /packages/All/cmake-core-3.29.5.pkg
[main-amd64-default-job-03] Installing cmake-core-3.29.5...
[main-amd64-default-job-03] `-- Installing expat-2.6.2...
[main-amd64-default-job-03] `-- Extracting expat-2.6.2: .......... done
[main-amd64-default-job-03] `-- Installing jsoncpp-1.9.5...
[main-amd64-default-job-03] `-- Extracting jsoncpp-1.9.5: .......... done
[main-amd64-default-job-03] `-- Installing libuv-1.48.0...
[main-amd64-default-job-03] `-- Extracting libuv-1.48.0: .......... done
[main-amd64-default-job-03] `-- Installing rhash-1.4.4_1...
[main-amd64-default-job-03] |   `-- Installing gettext-runtime-0.22.5...
[main-amd64-default-job-03] |   | `-- Installing indexinfo-0.3.1...
[main-amd64-default-job-03] |   | `-- Extracting indexinfo-0.3.1: .... done
[main-amd64-default-job-03] |   `-- Extracting gettext-runtime-0.22.5: .......... done
[main-amd64-default-job-03] `-- Extracting rhash-1.4.4_1: .......... done
[main-amd64-default-job-03] Extracting cmake-core-3.29.5: .......... done
===>   ethash-1.0.1_2 depends on file: /usr/local/bin/cmake - found
===>   Returning to build of ethash-1.0.1_2
===>   ethash-1.0.1_2 depends on executable: ninja - not found
===>   Installing existing package /packages/All/ninja-1.11.1,4.pkg
[main-amd64-default-job-03] Installing ninja-1.11.1,4...
[main-amd64-default-job-03] `-- Installing python311-3.11.9...
[main-amd64-default-job-03] |   `-- Installing libffi-3.4.6...
[main-amd64-default-job-03] |   `-- Extracting libffi-3.4.6: .......... done
[main-amd64-default-job-03] |   `-- Installing mpdecimal-4.0.0...
[main-amd64-default-job-03] |   `-- Extracting mpdecimal-4.0.0: .......... done
[main-amd64-default-job-03] |   `-- Installing readline-8.2.10...
[main-amd64-default-job-03] |   `-- Extracting readline-8.2.10: .......... done
[main-amd64-default-job-03] `-- Extracting python311-3.11.9: .......... done
[main-amd64-default-job-03] Extracting ninja-1.11.1,4: ........ done
=====
Message from python311-3.11.9:

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

py311-gdbm       databases/py-gdbm@py311
py311-sqlite3    databases/py-sqlite3@py311
py311-tkinter    x11-toolkits/py-tkinter@py311
===>   ethash-1.0.1_2 depends on executable: ninja - found
===>   Returning to build of ethash-1.0.1_2
===========================================================================
=======================<phase: lib-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   ethash-1.0.1_2 depends on shared library: libbenchmark.so - not found
===>   Installing existing package /packages/All/benchmark-1.8.4.pkg
[main-amd64-default-job-03] Installing benchmark-1.8.4...
[main-amd64-default-job-03] Extracting benchmark-1.8.4: .......... done
===>   ethash-1.0.1_2 depends on shared library: libbenchmark.so - found (/usr/local/lib/libbenchmark.so)
===>   Returning to build of ethash-1.0.1_2
===>   ethash-1.0.1_2 depends on shared library: libgtest.so - not found
===>   Installing existing package /packages/All/googletest-1.14.0.pkg
[main-amd64-default-job-03] Installing googletest-1.14.0...
[main-amd64-default-job-03] Extracting googletest-1.14.0: .......... done
===>   ethash-1.0.1_2 depends on shared library: libgtest.so - found (/usr/local/lib/libgtest.so)
===>   Returning to build of ethash-1.0.1_2
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Configuring for ethash-1.0.1_2
===>  Performing out-of-source build
/bin/mkdir -p /wrkdirs/usr/ports/net-p2p/ethash/work/.build
-- The C compiler identification is Clang 18.1.6
-- The CXX compiler identification is Clang 18.1.6
-- 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 (1.0s)
-- 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_2
[ 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 -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.
[ 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 -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.
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