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

From: <pkg-fallout_at_FreeBSD.org>
Date: Sat, 19 Jul 2025 13:09:00 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/853f568b31ec/logs/py311-keras-2.9.0_1.log
Build URL:      https://pkg-status.freebsd.org/beefy22/build.html?mastername=142amd64-default&build=853f568b31ec
Log:

=>> Building math/py-keras
build started at Sat Jul 19 13:06:36 UTC 2025
port directory: /usr/ports/math/py-keras
package name: py311-keras-2.9.0_1
building for: FreeBSD 142amd64-default-job-08 14.2-RELEASE-p4 FreeBSD 14.2-RELEASE-p4 amd64
maintained by: yuri@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 3616 Feb 20 01:01 /usr/ports/math/py-keras/Makefile
Ports top last git commit: 853f568b31
Ports top unclean checkout: no
Port dir last git commit: 1bb147345d
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.2-12-g74a54a88
Host OSVERSION: 1500035
Jail OSVERSION: 1402000
Job Id: 08

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1402000
UNAME_v=FreeBSD 14.2-RELEASE-p4
UNAME_r=14.2-RELEASE-p4
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.2-12-g74a54a88
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/08/.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.2-12-g74a54a88
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_1 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-2.2.1.pkg
[142amd64-default-job-08] Installing pkg-2.2.1...
[142amd64-default-job-08] Extracting pkg-2.2.1: .......... done
===>   py311-keras-2.9.0_1 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of py311-keras-2.9.0_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 MIT accepted by the user
===> Fetching all distfiles required by py311-keras-2.9.0_1 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_1 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_1 for building
===>  Extracting for py311-keras-2.9.0_1
=> 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_1
===>  Applying FreeBSD patches for py311-keras-2.9.0_1 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_1 depends on package: py311-numpy>=1.16,1<1.27,1 - not found
===>   Installing existing package /packages/All/py311-numpy-1.26.4_6,1.pkg
[142amd64-default-job-08] Installing py311-numpy-1.26.4_6,1...
[142amd64-default-job-08] `-- Installing gcc13-13.3.0_3...
[142amd64-default-job-08] |   `-- Installing binutils-2.44,1...
[142amd64-default-job-08] |   | `-- Installing indexinfo-0.3.1_1...
[142amd64-default-job-08] |   | `-- Extracting indexinfo-0.3.1_1: .... done
[142amd64-default-job-08] |   | `-- Installing zstd-1.5.7...
[142amd64-default-job-08] |   |   `-- Installing liblz4-1.10.0,1...
[142amd64-default-job-08] |   |   `-- Extracting liblz4-1.10.0,1: .......... done
[142amd64-default-job-08] |   | `-- Extracting zstd-1.5.7: .......... done
[142amd64-default-job-08] |   `-- Extracting binutils-2.44,1: .......... done
[142amd64-default-job-08] |   `-- Installing gmp-6.3.0...
[142amd64-default-job-08] |   `-- Extracting gmp-6.3.0: .......... done
[142amd64-default-job-08] |   `-- Installing mpc-1.3.1_1...
[142amd64-default-job-08] |   | `-- Installing mpfr-4.2.2,1...
[142amd64-default-job-08] |   | `-- Extracting mpfr-4.2.2,1: .......... done
<snip>
[142amd64-default-job-08] |   `-- Extracting py311-charset-normalizer-3.4.2: .......... done
[142amd64-default-job-08] |   `-- Installing py311-idna-3.10...
[142amd64-default-job-08] |   `-- Extracting py311-idna-3.10: .......... done
[142amd64-default-job-08] |   `-- Installing py311-pysocks-1.7.1_1...
[142amd64-default-job-08] |   `-- Extracting py311-pysocks-1.7.1_1: .......... done
[142amd64-default-job-08] |   `-- Installing py311-urllib3-1.26.20,1...
[142amd64-default-job-08] |   `-- Extracting py311-urllib3-1.26.20,1: .......... done
[142amd64-default-job-08] `-- Extracting py311-requests-2.32.4: .......... done
[142amd64-default-job-08] `-- Installing py311-termcolor-3.1.0...
[142amd64-default-job-08] `-- Extracting py311-termcolor-3.1.0: .......... done
[142amd64-default-job-08] `-- Installing py311-typing-extensions-4.14.1...
[142amd64-default-job-08] `-- Extracting py311-typing-extensions-4.14.1: .......... done
[142amd64-default-job-08] `-- Installing py311-wrapt-1.17.2...
[142amd64-default-job-08] `-- Extracting py311-wrapt-1.17.2: .......... done
[142amd64-default-job-08] `-- Installing pybind11-2.13.6...
[142amd64-default-job-08] `-- Extracting pybind11-2.13.6: .......... done
[142amd64-default-job-08] `-- Installing snappy-1.2.2...
[142amd64-default-job-08] `-- Extracting snappy-1.2.2: .......... done
[142amd64-default-job-08] Extracting py311-tensorflow-2.13.1: .......... done
=====
Message from py311-urllib3-1.26.20,1:

--
Since version 1.25 HTTPS connections are now verified by default which is done
via "cert_reqs = 'CERT_REQUIRED'".  While certificate verification can be
disabled via "cert_reqs = 'CERT_NONE'", it's highly recommended to leave it on.

Various consumers of net/py-urllib3 already have implemented routines that
either explicitly enable or disable HTTPS certificate verification (e.g. via
configuration settings, CLI arguments, etc.).

Yet it may happen that there are still some consumers which don't explicitly
enable/disable certificate verification for HTTPS connections which could then
lead to errors (as is often the case with self-signed certificates).

In case of an error one should try first to temporarily disable certificate
verification of the problematic urllib3 consumer to see if that approach will
remedy the issue.
===>   py311-keras-2.9.0_1 depends on package: py311-tensorflow>=2.9.0 - found
===>   Returning to build of py311-keras-2.9.0_1
===>   py311-keras-2.9.0_1 depends on executable: bazel - not found
===>   Installing existing package /packages/All/bazel5-5.4.1.pkg
[142amd64-default-job-08] Installing bazel5-5.4.1...
[142amd64-default-job-08] `-- Installing openjdk11-11.0.27+6.1_1...
[142amd64-default-job-08] |   `-- Installing alsa-lib-1.2.13...
[142amd64-default-job-08] |   `-- Extracting alsa-lib-1.2.13: .......... done
[142amd64-default-job-08] |   `-- Installing javavmwrapper-2.7.10...
[142amd64-default-job-08] |   `-- Extracting javavmwrapper-2.7.10: .......... done
[142amd64-default-job-08] |   `-- Installing libXi-1.8.2,1...
[142amd64-default-job-08] |   | `-- Installing libXfixes-6.0.1...
[142amd64-default-job-08] |   | `-- Extracting libXfixes-6.0.1: .......... done
[142amd64-default-job-08] |   `-- Extracting libXi-1.8.2,1: .......... done
[142amd64-default-job-08] |   `-- Installing libXrandr-1.5.4...
[142amd64-default-job-08] |   `-- Extracting libXrandr-1.5.4: .......... done
[142amd64-default-job-08] |   `-- Installing libXt-1.3.0,1...
[142amd64-default-job-08] |   | `-- Installing libICE-1.1.2,1...
[142amd64-default-job-08] |   | `-- Extracting libICE-1.1.2,1: .......... done
[142amd64-default-job-08] |   | `-- Installing libSM-1.2.6,1...
[142amd64-default-job-08] |   | `-- Extracting libSM-1.2.6,1: .......... done
[142amd64-default-job-08] |   `-- Extracting libXt-1.3.0,1: .......... done
[142amd64-default-job-08] |   `-- Installing libXtst-1.2.5...
[142amd64-default-job-08] |   `-- Extracting libXtst-1.2.5: .......... done
[142amd64-default-job-08] |   `-- Installing xorg-fonts-truetype-7.7_1...
[142amd64-default-job-08] |   | `-- Installing dejavu-2.37_3...
[142amd64-default-job-08] |   |   `-- Installing mkfontscale-1.2.3...
[142amd64-default-job-08] |   |   | `-- Installing libfontenc-1.1.8...
[142amd64-default-job-08] |   |   | `-- Extracting libfontenc-1.1.8: ......... done
[142amd64-default-job-08] |   |   `-- Extracting mkfontscale-1.2.3: ....... done
[142amd64-default-job-08] |   | `-- Extracting dejavu-2.37_3: .......... done
[142amd64-default-job-08] |   | `-- Installing encodings-1.1.0,1...
[142amd64-default-job-08] |   | `-- Extracting encodings-1.1.0,1: .......... done
[142amd64-default-job-08] |   | `-- Installing font-bh-ttf-1.0.3_5...
[142amd64-default-job-08] |   | `-- Extracting font-bh-ttf-1.0.3_5: .......... done
[142amd64-default-job-08] |   | `-- Installing font-misc-ethiopic-1.0.4...
[142amd64-default-job-08] |   | `-- Extracting font-misc-ethiopic-1.0.4: ...... done
[142amd64-default-job-08] |   | `-- Installing font-misc-meltho-1.0.3_5...
[142amd64-default-job-08] |   | `-- Extracting font-misc-meltho-1.0.3_5: .......... done
[142amd64-default-job-08] |   `-- Extracting xorg-fonts-truetype-7.7_1: ... done
[142amd64-default-job-08] `-- Extracting openjdk11-11.0.27+6.1_1: .......... done
[142amd64-default-job-08] Extracting bazel5-5.4.1: ..... done
==> Running trigger: fontconfig.ucl
Running fc-cache to build fontconfig cache...
=====
Message from dejavu-2.37_3:

--
Make sure that the freetype module is loaded.  If it is not, add the following
line to the "Modules" section of your X Windows configuration file:

	Load "freetype"

Add the following line to the "Files" section of X Windows configuration file:

	FontPath "/usr/local/share/fonts/dejavu/"

Note: your X Windows configuration file is typically /etc/X11/XF86Config
if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org.
=====
Message from openjdk11-11.0.27+6.1_1:

--
This OpenJDK implementation may require procfs(5) mounted on /proc for some
applications.

If you have not done it yet, please do the following:

	mount -t procfs proc /proc

To make it permanent, you need the following lines in /etc/fstab:

	proc	/proc		procfs		rw	0	0
===>   py311-keras-2.9.0_1 depends on executable: bazel - found
===>   Returning to build of py311-keras-2.9.0_1
===>   py311-keras-2.9.0_1 depends on executable: bash - not found
===>   Installing existing package /packages/All/bash-5.3_1.pkg
[142amd64-default-job-08] Installing bash-5.3_1...
[142amd64-default-job-08] Extracting bash-5.3_1: .......... done
===>   py311-keras-2.9.0_1 depends on executable: bash - found
===>   Returning to build of py311-keras-2.9.0_1
===>   py311-keras-2.9.0_1 depends on file: /usr/local/bin/python3.11 - found
===========================================================================
=======================<phase: lib-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Configuring for py311-keras-2.9.0_1
===========================================================================
=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building for py311-keras-2.9.0_1
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
WARNING: The following configs were expanded more than once: [freebsd]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
INFO: Reading 'startup' options from /wrkdirs/usr/ports/math/py-keras/work/keras-r2.9/bazelrc: --output_user_root=/wrkdirs/usr/ports/math/py-keras/work/.cache/
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from /usr/local/etc/bazel/bazel.bazelrc:
  'build' options: --strategy=Javac=standalone --java_runtime_version=11 --tool_java_runtime_version=11 --action_env=PATH=/bin:/usr/bin/:/usr/local/bin
INFO: Reading rc options for 'build' from /wrkdirs/usr/ports/math/py-keras/work/keras-r2.9/.bazelrc:
  'build' options: --apple_platform_type=macos --define open_source_build=true --define=use_fast_cpp_protos=false --define=tensorflow_enable_mlir_generated_gpu_kernels=0 --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --config=short_logs --config=v2
INFO: Reading rc options for 'build' from /wrkdirs/usr/ports/math/py-keras/work/keras-r2.9/bazelrc:
  'build' options: --repository_cache=/wrkdirs/usr/ports/math/py-keras/work/bazel-cache/ --distdir=/wrkdirs/usr/ports/math/py-keras/work/bazel-dist/ --define=PREFIX=/usr/local --define=LIBDIR=/usr/local/lib --define=INCLUDEDIR=/usr/local/include --define=PROTOBUF_INCLUDE_PATH=/usr/local/include --extra_toolchains=//freebsd:cc-toolchain-freebsd --action_env=PATH=/wrkdirs/usr/ports/math/py-keras/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin --host_action_env=PATH=/wrkdirs/usr/ports/math/py-keras/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin --config=freebsd
INFO: Found applicable config definition build:short_logs in file /wrkdirs/usr/ports/math/py-keras/work/keras-r2.9/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /wrkdirs/usr/ports/math/py-keras/work/keras-r2.9/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:freebsd in file /wrkdirs/usr/ports/math/py-keras/work/keras-r2.9/.bazelrc: --define force_libcpp=enabled --action_env=CXXFLAGS=-stdlib=libc++
INFO: Found applicable config definition build:freebsd in file /wrkdirs/usr/ports/math/py-keras/work/keras-r2.9/.bazelrc: --define force_libcpp=enabled --action_env=CXXFLAGS=-stdlib=libc++
Loading: 
Loading: 0 packages loaded
Analyzing: target //keras/tools/pip_package:build_pip_package (1 packages loaded, 0 targets configured)
Analyzing: target //keras/tools/pip_package:build_pip_package (58 packages loaded, 447 targets configured)
INFO: Analyzed target //keras/tools/pip_package:build_pip_package (90 packages loaded, 1217 targets configured).

INFO: Found 1 target...
[0 / 4] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[21 / 24] Executing genrule //keras/api:keras_python_api_gen_compat_v1; 1s local ... (3 actions running)
[21 / 24] Executing genrule //keras/api:keras_python_api_gen_compat_v1; 11s local ... (3 actions running)
ERROR: /wrkdirs/usr/ports/math/py-keras/work/keras-r2.9/keras/api/BUILD:173:19: Executing genrule //keras/api:keras_python_api_gen_compat_v1 failed: (Exit 1): bash failed: error executing command /usr/local/bin/bash -c ... (remaining 1 argument skipped)
2025-07-19 13:08:53.076236: 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.
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'
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: 18.839s, Critical Path: 12.25s
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