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

From: <pkg-fallout_at_FreeBSD.org>
Date: Fri, 21 Jun 2024 14:25:50 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/pf558721194b8_s42c545c5f8a/logs/ethash-1.0.1_2.log
Build URL:      https://pkg-status.freebsd.org/beefy17/build.html?mastername=main-i386-default&build=pf558721194b8_s42c545c5f8a
Log:

=>> Building net-p2p/ethash
build started at Fri Jun 21 14:25:43 UTC 2024
port directory: /usr/ports/net-p2p/ethash
package name: ethash-1.0.1_2
building for: FreeBSD main-i386-default-job-06 15.0-CURRENT FreeBSD 15.0-CURRENT 1500019 i386
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: f558721194b
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: 06




!!! 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
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
OSVERSION=1500019
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 1500019
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-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/06/.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-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
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_2 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.21.3.pkg
[main-i386-default-job-06] Installing pkg-1.21.3...
[main-i386-default-job-06] 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-i386-default-job-06] Installing cmake-core-3.29.5...
[main-i386-default-job-06] `-- Installing expat-2.6.2...
[main-i386-default-job-06] `-- Extracting expat-2.6.2: .......... done
[main-i386-default-job-06] `-- Installing jsoncpp-1.9.5...
[main-i386-default-job-06] `-- Extracting jsoncpp-1.9.5: .......... done
[main-i386-default-job-06] `-- Installing libuv-1.48.0...
[main-i386-default-job-06] `-- Extracting libuv-1.48.0: .......... done
[main-i386-default-job-06] `-- Installing rhash-1.4.4_1...
[main-i386-default-job-06] |   `-- Installing gettext-runtime-0.22.5...
[main-i386-default-job-06] |   | `-- Installing indexinfo-0.3.1...
[main-i386-default-job-06] |   | `-- Extracting indexinfo-0.3.1: .... done
[main-i386-default-job-06] |   `-- Extracting gettext-runtime-0.22.5: .......... done
[main-i386-default-job-06] `-- Extracting rhash-1.4.4_1: .......... done
[main-i386-default-job-06] 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-i386-default-job-06] Installing ninja-1.11.1,4...
[main-i386-default-job-06] `-- Installing python311-3.11.9...
[main-i386-default-job-06] |   `-- Installing libffi-3.4.6...
[main-i386-default-job-06] |   `-- Extracting libffi-3.4.6: .......... done
[main-i386-default-job-06] |   `-- Installing mpdecimal-4.0.0...
[main-i386-default-job-06] |   `-- Extracting mpdecimal-4.0.0: .......... done
[main-i386-default-job-06] |   `-- Installing readline-8.2.10...
[main-i386-default-job-06] |   `-- Extracting readline-8.2.10: .......... done
[main-i386-default-job-06] `-- Extracting python311-3.11.9: .......... done
[main-i386-default-job-06] 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-i386-default-job-06] Installing benchmark-1.8.4...
[main-i386-default-job-06] 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-i386-default-job-06] Installing googletest-1.14.0...
[main-i386-default-job-06] 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 (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_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