[package - 142amd64-default][math/py-keras] Failed for py311-keras-2.9.0_2 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Fri, 05 Sep 2025 01:12:30 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:     yuri@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/beefy22/data/142amd64-default/4aaf5f3c0b5a/logs/py311-keras-2.9.0_2.log
Build URL:      https://pkg-status.freebsd.org/beefy22/build.html?mastername=142amd64-default&build=4aaf5f3c0b5a
Log:

=>> Building math/py-keras
build started at Fri Sep  5 01:10:50 UTC 2025
port directory: /usr/ports/math/py-keras
package name: py311-keras-2.9.0_2
building for: FreeBSD 142amd64-default-job-02 14.2-RELEASE-p5 FreeBSD 14.2-RELEASE-p5 amd64
maintained by: yuri@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 3616 Sep  2 01:01 /usr/ports/math/py-keras/Makefile
Ports top last git commit: 4aaf5f3c0b
Ports top unclean checkout: no
Port dir last git commit: b304d8ab18
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.3
Host OSVERSION: 1500052
Jail OSVERSION: 1402000
Job Id: 02

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1402000
UNAME_v=FreeBSD 14.2-RELEASE-p5
UNAME_r=14.2-RELEASE-p5
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.3
MASTERMNT=/usr/local/poudriere/data/.m/142amd64-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/142amd64-default/02/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=142amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/142amd64-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.3
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--
yuri@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
PYTHON="/usr/local/bin/python3.11" XDG_DATA_HOME=/wrkdirs/usr/ports/math/py-keras/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/math/py-keras/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/math/py-keras/work/.cache  HOME=/wrkdirs/usr/ports/math/py-keras/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/math/py-keras/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/math/py-keras/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--
XDG_DATA_HOME=/wrkdirs/usr/ports/math/py-keras/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/math/py-keras/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/math/py-keras/work/.cache  HOME=/wrkdirs/usr/ports/math/py-keras/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/math/py-keras/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/math/py-keras/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 PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -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--
PYTHON_INCLUDEDIR=include/python3.11  PYTHON_LIBDIR=lib/python3.11  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=lib/python3.11/site-packages  PYTHON_SUFFIX=311  PYTHON_BASESUFFIX=311  PYTHON_TAG=.cpython-311  PYTHON_SOABI=.cpython-311  PYTHON_VER=3.11  PYTHON_BASEVER=3.11  PYTHON_VERSION=python3.11 PYTHON2="@comment " PYTHON3="" OSREL=14.2 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/keras"  EXAMPLESDIR="share/examples/keras"  DATADIR="share/keras"  WWWDIR="www/keras"  ETCDIR="etc/keras"
--End PLIST_SUB--

--SUB_LIST--
PYTHON_INCLUDEDIR=/usr/local/include/python3.11  PYTHON_LIBDIR=/usr/local/lib/python3.11  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=/usr/local/lib/python3.11/site-packages  PYTHON_SUFFIX=311  PYTHON_BASESUFFIX=311  PYTHON_TAG=.cpython-311  PYTHON_SOABI=.cpython-311  PYTHON_VER=3.11  PYTHON_BASEVER=3.11  PYTHON_VERSION=python3.11 PYTHON2="@comment " PYTHON3="" PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/keras DOCSDIR=/usr/local/share/doc/keras EXAMPLESDIR=/usr/local/share/examples/keras  WWWDIR=/usr/local/www/keras ETCDIR=/usr/local/etc/keras
--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
####  ####
# 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
DISABLE_MAKE_JOBS=poudriere
---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
pipebuf                         (-y)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License MIT accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   py311-keras-2.9.0_2 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-2.2.2.pkg
[142amd64-default-job-02] Installing pkg-2.2.2...
[142amd64-default-job-02] Extracting pkg-2.2.2: .......... done
===>   py311-keras-2.9.0_2 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of py311-keras-2.9.0_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 MIT accepted by the user
===> Fetching all distfiles required by py311-keras-2.9.0_2 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License MIT accepted by the user
===> Fetching all distfiles required by py311-keras-2.9.0_2 for building
=> SHA256 Checksum OK for b1c40e1de81913a3c40e5948f78719c28152486d.zip.
=> SHA256 Checksum OK for 7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip.
=> SHA256 Checksum OK for keras-team-keras-2.9.0-r2.9_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 MIT accepted by the user
===> Fetching all distfiles required by py311-keras-2.9.0_2 for building
===>  Extracting for py311-keras-2.9.0_2
=> SHA256 Checksum OK for b1c40e1de81913a3c40e5948f78719c28152486d.zip.
=> SHA256 Checksum OK for 7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip.
=> SHA256 Checksum OK for keras-team-keras-2.9.0-r2.9_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 py311-keras-2.9.0_2
===>  Applying FreeBSD patches for py311-keras-2.9.0_2 from /usr/ports/math/py-keras/files
Moving b1c40e1de81913a3c40e5948f78719c28152486d.zip to /wrkdirs/usr/ports/math/py-keras/work/bazel-dist
Moving 7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip to /wrkdirs/usr/ports/math/py-keras/work/bazel-dist
/bin/ln -s /usr/local/bin/python3.11 /wrkdirs/usr/ports/math/py-keras/work/.bin/python3
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   py311-keras-2.9.0_2 depends on package: py311-numpy>=1.16,1<1.27,1 - not found
===>   Installing existing package /packages/All/py311-numpy-1.26.4_7,1.pkg
[142amd64-default-job-02] Installing py311-numpy-1.26.4_7,1...
[142amd64-default-job-02] `-- Installing gcc13-13.3.0_3...
[142amd64-default-job-02] |   `-- Installing binutils-2.44,1...
[142amd64-default-job-02] |   | `-- Installing indexinfo-0.3.1_1...
[142amd64-default-job-02] |   | `-- Extracting indexinfo-0.3.1_1: .... done
[142amd64-default-job-02] |   | `-- Installing zstd-1.5.7...
[142amd64-default-job-02] |   |   `-- Installing liblz4-1.10.0,1...
[142amd64-default-job-02] |   |   `-- Extracting liblz4-1.10.0,1: .......... done
[142amd64-default-job-02] |   | `-- Extracting zstd-1.5.7: .......... done
[142amd64-default-job-02] |   `-- Extracting binutils-2.44,1: .......... done
[142amd64-default-job-02] |   `-- Installing gmp-6.3.0...
[142amd64-default-job-02] |   `-- Extracting gmp-6.3.0: .......... done
[142amd64-default-job-02] |   `-- Installing mpc-1.3.1_1...
[142amd64-default-job-02] |   | `-- Installing mpfr-4.2.2,1...
[142amd64-default-job-02] |   | `-- Extracting mpfr-4.2.2,1: .......... done
<snip>
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/allocation_description.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/tensor_description.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/protobuf/cluster.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/protobuf/debug.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/protobuf/rewriter_config.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
Traceback (most recent call last):
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen_compat_v1.runfiles/org_keras/keras/api/create_python_api_wrapper.py", line 26, in <module>
    import keras  # pylint: disable=unused-import
    ^^^^^^^^^^^^
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen_compat_v1.runfiles/org_keras/keras/__init__.py", line 24, in <module>
    from keras import models
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen_compat_v1.runfiles/org_keras/keras/models/__init__.py", line 18, in <module>
    from keras.engine.functional import Functional
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen_compat_v1.runfiles/org_keras/keras/engine/functional.py", line 23, in <module>
    from keras import backend
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen_compat_v1.runfiles/org_keras/keras/backend.py", line 43, in <module>
    from keras.engine import keras_tensor
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen_compat_v1.runfiles/org_keras/keras/engine/keras_tensor.py", line 17, in <module>
    from keras.utils import object_identity
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen_compat_v1.runfiles/org_keras/keras/utils/__init__.py", line 18, in <module>
    from keras.utils.data_utils import get_file
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen_compat_v1.runfiles/org_keras/keras/utils/data_utils.py", line 42, in <module>
    from keras.utils import tf_inspect
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen_compat_v1.runfiles/org_keras/keras/utils/tf_inspect.py", line 23, in <module>
    ArgSpec = _inspect.ArgSpec
              ^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'ArgSpec'
ERROR: /wrkdirs/usr/ports/math/py-keras/work/keras-r2.9/keras/api/BUILD:160:19: Executing genrule //keras/api:keras_python_api_gen failed: (Exit 1): bash failed: error executing command /usr/local/bin/bash -c ... (remaining 1 argument skipped)
2025-09-05 01:12:25.196310: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: SSE3 SSE4.1 SSE4.2 AVX AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/function.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/attr_value.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/tensor.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/resource_handle.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/tensor_shape.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/types.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/node_def.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/full_type.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/op_def.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/protobuf/config.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/cost_graph.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/graph.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/graph_debug_info.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/versions.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/step_stats.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/allocation_description.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/tensor_description.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/protobuf/cluster.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/protobuf/debug.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/protobuf/rewriter_config.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
Traceback (most recent call last):
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen.runfiles/org_keras/keras/api/create_python_api_wrapper.py", line 26, in <module>
    import keras  # pylint: disable=unused-import
    ^^^^^^^^^^^^
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen.runfiles/org_keras/keras/__init__.py", line 24, in <module>
    from keras import models
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen.runfiles/org_keras/keras/models/__init__.py", line 18, in <module>
    from keras.engine.functional import Functional
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen.runfiles/org_keras/keras/engine/functional.py", line 23, in <module>
    from keras import backend
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen.runfiles/org_keras/keras/backend.py", line 43, in <module>
    from keras.engine import keras_tensor
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen.runfiles/org_keras/keras/engine/keras_tensor.py", line 17, in <module>
    from keras.utils import object_identity
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen.runfiles/org_keras/keras/utils/__init__.py", line 18, in <module>
    from keras.utils.data_utils import get_file
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen.runfiles/org_keras/keras/utils/data_utils.py", line 42, in <module>
    from keras.utils import tf_inspect
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_1_keras_python_api_gen.runfiles/org_keras/keras/utils/tf_inspect.py", line 23, in <module>
    ArgSpec = _inspect.ArgSpec
              ^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'ArgSpec'
ERROR: /wrkdirs/usr/ports/math/py-keras/work/keras-r2.9/keras/api/BUILD:187:19: Executing genrule //keras/api:keras_python_api_gen_compat_v2 failed: (Exit 1): bash failed: error executing command /usr/local/bin/bash -c ... (remaining 1 argument skipped)
2025-09-05 01:12:25.266440: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: SSE3 SSE4.1 SSE4.2 AVX AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/function.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/attr_value.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/tensor.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/resource_handle.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/tensor_shape.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/types.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/node_def.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/full_type.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/op_def.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/protobuf/config.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/cost_graph.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/graph.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/graph_debug_info.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/versions.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/step_stats.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/allocation_description.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/framework/tensor_description.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/protobuf/cluster.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/protobuf/debug.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.5 is exactly one major version older than the runtime version 6.31.1 at tensorflow/core/protobuf/rewriter_config.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
Traceback (most recent call last):
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_2_keras_python_api_gen_compat_v2.runfiles/org_keras/keras/api/create_python_api_wrapper.py", line 26, in <module>
    import keras  # pylint: disable=unused-import
    ^^^^^^^^^^^^
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_2_keras_python_api_gen_compat_v2.runfiles/org_keras/keras/__init__.py", line 24, in <module>
    from keras import models
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_2_keras_python_api_gen_compat_v2.runfiles/org_keras/keras/models/__init__.py", line 18, in <module>
    from keras.engine.functional import Functional
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_2_keras_python_api_gen_compat_v2.runfiles/org_keras/keras/engine/functional.py", line 23, in <module>
    from keras import backend
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_2_keras_python_api_gen_compat_v2.runfiles/org_keras/keras/backend.py", line 43, in <module>
    from keras.engine import keras_tensor
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_2_keras_python_api_gen_compat_v2.runfiles/org_keras/keras/engine/keras_tensor.py", line 17, in <module>
    from keras.utils import object_identity
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_2_keras_python_api_gen_compat_v2.runfiles/org_keras/keras/utils/__init__.py", line 18, in <module>
    from keras.utils.data_utils import get_file
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_2_keras_python_api_gen_compat_v2.runfiles/org_keras/keras/utils/data_utils.py", line 42, in <module>
    from keras.utils import tf_inspect
  File "/wrkdirs/usr/ports/math/py-keras/work/.cache/5c91d5411fc096d72015b136575dab1f/execroot/org_keras/bazel-out/freebsd-opt-exec-2B5CBBC6/bin/keras/api/create_keras_api_2_keras_python_api_gen_compat_v2.runfiles/org_keras/keras/utils/tf_inspect.py", line 23, in <module>
    ArgSpec = _inspect.ArgSpec
              ^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'ArgSpec'
Target //keras/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /wrkdirs/usr/ports/math/py-keras/work/keras-r2.9/keras/tools/pip_package/BUILD:39:10 Middleman _middlemen/keras_Stools_Spip_Upackage_Sbuild_Upip_Upackage-runfiles failed: (Exit 1): bash failed: error executing command /usr/local/bin/bash -c ... (remaining 1 argument skipped)
INFO: Elapsed time: 13.945s, Critical Path: 7.83s
INFO: 24 processes: 17 internal, 7 local.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
*** Error code 1

Stop.
make: stopped in /usr/ports/math/py-keras