[package - 150amd64-default][misc/py-pytorch] Failed for py311-pytorch-2.10.0_4 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Sat, 18 Apr 2026 06:08: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:     yuri@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/beefy23/data/150amd64-default/1422def1979a/logs/py311-pytorch-2.10.0_4.log
Build URL:      https://pkg-status.freebsd.org/beefy23/build.html?mastername=150amd64-default&build=1422def1979a
Log:

=>> Building misc/py-pytorch
build started at Sat Apr 18 05:31:56 UTC 2026
port directory: /usr/ports/misc/py-pytorch
package name: py311-pytorch-2.10.0_4
building for: FreeBSD 150amd64-default-job-08 15.0-RELEASE-p5 FreeBSD 15.0-RELEASE-p5 amd64
maintained by: yuri@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 6439 Apr  9 01:01 /usr/ports/misc/py-pytorch/Makefile
Ports top last git commit: 1422def1979a84519f35c61ef6e18685263fc932
Ports top unclean checkout: no
Port dir last git commit: 296f9e296f4eb4469b3dbcaf5a4bb5ac23f0cf86
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.6-7-gf829fc48
Host OSVERSION: 1600014
Jail OSVERSION: 1500068
Job Id: 08

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1500068
UNAME_v=FreeBSD 15.0-RELEASE-p5
UNAME_r=15.0-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.6-7-gf829fc48
MASTERMNT=/usr/local/poudriere/data/.m/150amd64-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/150amd64-default/08/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=150amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/150amd64-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.6-7-gf829fc48
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

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

---Begin OPTIONS List---
===> The following configuration options are available for py311-pytorch-2.10.0_4:
     VULKAN=on: Vulkan GPU support
===> Use 'make config' to modify these settings
---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/misc/py-pytorch/work-py311  XDG_CONFIG_HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py311  XDG_CACHE_HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py311/.cache  HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py311 TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/misc/py-pytorch/work-py311/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/misc/py-pytorch/work-py311/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CMAKE_PREFIX_PATH="/usr/local"
--End CONFIGURE_ENV--

--MAKE_ENV--
USE_NINJA=no BUILD_TEST=0 USE_MKLDNN=0 USE_CUDNN=0 USE_LAPACK=1 USE_QNNPACK=0 USE_DISTRIBUTED=1 USE_VULKAN=1 USE_VULKAN_SHADERC_RUNTIME=1 USE_VULKAN_WRAPPER=0 XDG_DATA_HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py311  XDG_CONFIG_HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py311  XDG_CACHE_HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py311/.cache  HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py311 TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/misc/py-pytorch/work-py311/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/misc/py-pytorch/work-py311/.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 -isystem /usr/local/include -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-isystem /usr/local/include"  LDFLAGS=" -lexecinfo -L/usr/loc
al/lib " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -isystem /usr/local/include " 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=freebsd15  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=15.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/pytorch"  EXAMPLESDIR="share/examples/pytorch"  DATADIR="share/pytorch"  WWWDIR="www/pytorch"  ETCDIR="etc/pytorch"
--End PLIST_SUB--

--SUB_LIST--
 PYTHON_INCLUDEDIR=/usr/local/include/python3.11  PYTHON_LIBDIR=/usr/local/lib/python3.11  PYTHON_PLATFORM=freebsd15  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/pytorch DOCSDIR=/usr/local/share/doc/pytorch EXAMPLESDIR=/usr/local/share/examples/pytorch  WWWDIR=/usr/local/www/pytorch ETCDIR=/usr/local/etc/pytorch
--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
---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 BSD3CLAUSE accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   py311-pytorch-2.10.0_4 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-2.7.4.pkg
[150amd64-default-job-08] Installing pkg-2.7.4...
[150amd64-default-job-08] Extracting pkg-2.7.4: .......... done
===>   py311-pytorch-2.10.0_4 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of py311-pytorch-2.10.0_4
===========================================================================
=======================<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 BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by py311-pytorch-2.10.0_4 for building
===========================================================================
=======================<phase: checksum       >============================
===== env: FETCH_REGET=0 NO_DEPENDS=yes USER=root UID=0 GID=0
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by py311-pytorch-2.10.0_4 for building
=> SHA256 Checksum OK for pytorch/pytorch-v2.10.0.tar.gz.
=> SHA256 Checksum OK for pytorch/pytorch-cpuinfo-1e83a2f_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 BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by py311-pytorch-2.10.0_4 for building
===>  Extracting for py311-pytorch-2.10.0_4
=> SHA256 Checksum OK for pytorch/pytorch-v2.10.0.tar.gz.
=> SHA256 Checksum OK for pytorch/pytorch-cpuinfo-1e83a2f_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-pytorch-2.10.0_4
===>  Applying FreeBSD patches for py311-pytorch-2.10.0_4 from /usr/ports/misc/py-pytorch/files
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   py311-pytorch-2.10.0_4 depends on package: py311-setuptools>0 - not found
===>   Installing existing package /packages/All/py311-setuptools-63.1.0_3.pkg
[150amd64-default-job-08] Installing py311-setuptools-63.1.0_3...
[150amd64-default-job-08] `-- Installing python311-3.11.15_2...
[150amd64-default-job-08] |   `-- Installing gettext-runtime-1.0...
[150amd64-default-job-08] |   | `-- Installing indexinfo-0.3.1_1...
[150amd64-default-job-08] |   | `-- Extracting indexinfo-0.3.1_1: .... done
[150amd64-default-job-08] |   `-- Extracting gettext-runtime-1.0: .......... done
[150amd64-default-job-08] |   `-- Installing libffi-3.5.1...
[150amd64-default-job-08] |   `-- Extracting libffi-3.5.1: .......... done
[150amd64-default-job-08] |   `-- Installing mpdecimal-4.0.1...
[150amd64-default-job-08] |   `-- Extracting mpdecimal-4.0.1: .......... done
[150amd64-default-job-08] |   `-- Installing readline-8.3.3...
[150amd64-default-job-08] |   `-- Extracting readline-8.3.3: .......... done
[150amd64-default-job-08] `-- Extracting python311-3.11.15_2: .......... done
[150amd64-default-job-08] Extracting py311-setuptools-63.1.0_3: .......... done
=====
Message from python311-3.11.15_2:

--
<snip>
[ 97%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/nested.cpp.o
[ 97%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/object_ptr.cpp.o
[ 97%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/python_arg_parser.cpp.o
[ 97%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/python_dispatch.cpp.o
[ 97%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/python_symnode.cpp.o
[ 97%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/pybind.cpp.o
[ 97%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/pyobject_preservation.cpp.o
[ 97%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/structseq.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/tensor_apply.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/tensor_dtypes.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/tensor_layouts.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/tensor_memoryformats.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/tensor_qschemes.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/tensor_list.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/tensor_new.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/tensor_numpy.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/tensor_types.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/disable_torch_function.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/verbose.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/cpu/Module.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/functionalization/Module.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/instruction_counter/Module.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/nativert/python/Bindings.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/lazy/python/init.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/lazy/python/python_util.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/itt.cpp.o
[ 98%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/c10d/init.cpp.o
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/c10d/python_comm_hook.cpp.o
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/c10d/python_callback_work.cpp.o
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/autograd/init.cpp.o
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/python/init.cpp:1833:11: error: return type 'Tuple<pybind11::cpp_function &, pybind11::list &>' must match previous return type 'Tuple<pybind11::none, pybind11::none>' when lambda expression has unspecified explicit return type
 1833 |           return py::make_tuple(func, overload_names);
      |           ^
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/python/init.cpp:1860:11: error: return type 'Tuple<[...], pybind11::none>' must match previous return type 'Tuple<[...], pybind11::object &>' when lambda expression has unspecified explicit return type
 1860 |           return py::make_tuple(false, py::none());
      |           ^
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/rpc/init.cpp.o
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/rpc/py_rref.cpp.o
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/rpc/python_functions.cpp.o
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/rpc/python_rpc_handler.cpp.o
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/rpc/request_callback_impl.cpp.o
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/rpc/testing/init.cpp.o
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/rpc/unpickled_python_call.cpp.o
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/rpc/unpickled_python_remote_call.cpp.o
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/jit/runtime/register_distributed_ops.cpp.o
[100%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/c10d/control_plane/PythonHandlers.cpp.o
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/monitor/python_init.cpp:16:
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/monitor/counters.h:11:
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/monitor/events.h:51:11: warning: definition of implicit copy constructor for 'EventHandler' is deprecated because it has a user-declared destructor [-Wdeprecated-copy-with-dtor]
   51 |   virtual ~EventHandler() = default;
      |           ^
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/monitor/python_init.cpp:70:7: note: in implicit copy constructor for 'torch::monitor::EventHandler' first required here
   70 | class PythonEventHandler : public EventHandler {
      |       ^
/usr/local/include/pybind11/detail/type_caster_base.h:1682:59: note: in implicit copy constructor for 'torch::monitor::(anonymous namespace)::PythonEventHandler' first required here
 1682 |         return [](const void *arg) -> void * { return new T(*reinterpret_cast<const T *>(arg)); };
      |                                                           ^
/usr/local/include/pybind11/detail/type_caster_base.h:1682:46: note: while substituting into a lambda expression here
 1682 |         return [](const void *arg) -> void * { return new T(*reinterpret_cast<const T *>(arg)); };
      |                                              ^
/usr/local/include/pybind11/detail/type_caster_base.h:1647:42: note: in instantiation of function template specialization 'pybind11::detail::type_caster_base<torch::monitor::(anonymous namespace)::PythonEventHandler>::make_copy_constructor<torch::monitor::(anonymous namespace)::PythonEventHandler, void>' requested here
 1647 |                                          make_copy_constructor((const itype *) nullptr),
      |                                          ^
/usr/local/include/pybind11/cast.h:1029:44: note: in instantiation of member function 'pybind11::detail::type_caster_base<torch::monitor::(anonymous namespace)::PythonEventHandler>::cast' requested here
 1029 |             return type_caster_base<type>::cast(
      |                                            ^
/usr/local/include/pybind11/pybind11.h:569:36: note: in instantiation of member function 'pybind11::detail::copyable_holder_caster<torch::monitor::(anonymous namespace)::PythonEventHandler, std::shared_ptr<torch::monitor::(anonymous namespace)::PythonEventHandler>>::cast' requested here
  569 |                 result = cast_out::cast(
      |                                    ^
/usr/local/include/pybind11/pybind11.h:324:9: note: in instantiation of function template specialization 'pybind11::cpp_function::initialize<(lambda at /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/monitor/python_init.cpp:277:7), std::shared_ptr<torch::monitor::(anonymous namespace)::PythonEventHandler>, std::function<void (const torch::monitor::Event &)>, pybind11::name, pybind11::scope, pybind11::sibling, pybind11::arg, char[279]>' requested here
  324 |         initialize(
      |         ^
/usr/local/include/pybind11/pybind11.h:1607:22: note: in instantiation of function template specialization 'pybind11::cpp_function::cpp_function<(lambda at /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/monitor/python_init.cpp:277:7), pybind11::name, pybind11::scope, pybind11::sibling, pybind11::arg, char[279], void>' requested here
 1607 |         cpp_function func(std::forward<Func>(f),
      |                      ^
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/monitor/python_init.cpp:275:5: note: in instantiation of function template specialization 'pybind11::module_::def<(lambda at /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/monitor/python_init.cpp:277:7), pybind11::arg, char[279]>' requested here
  275 |   m.def(
      |     ^
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/utils/python_arg_parser.cpp:763:7: error: conditional expression is ambiguous; 'Tuple<[2 * ...], (no argument)>' can be converted to 'Tuple<[2 * ...], pybind11::handle>' and vice versa
  763 |       ? py::make_tuple(py::handle(self), py::handle(index))
      |       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  764 |       : py::make_tuple(py::handle(self), py::handle(index), py::handle(val));
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
1 error generated.
gmake[2]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:1997: caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils/python_arg_parser.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/python/python_tracer.cpp:3:
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/frontend/tracer.h:45:3: warning: definition of implicit copy constructor for 'TracingState' is deprecated because it has a user-provided destructor [-Wdeprecated-copy-with-user-provided-dtor]
   45 |   ~TracingState();
      |   ^
/usr/local/include/pybind11/detail/type_caster_base.h:1682:59: note: in implicit copy constructor for 'torch::jit::tracer::TracingState' first required here
 1682 |         return [](const void *arg) -> void * { return new T(*reinterpret_cast<const T *>(arg)); };
      |                                                           ^
/usr/local/include/pybind11/detail/type_caster_base.h:1682:46: note: while substituting into a lambda expression here
 1682 |         return [](const void *arg) -> void * { return new T(*reinterpret_cast<const T *>(arg)); };
      |                                              ^
/usr/local/include/pybind11/detail/type_caster_base.h:1647:42: note: in instantiation of function template specialization 'pybind11::detail::type_caster_base<torch::jit::tracer::TracingState>::make_copy_constructor<torch::jit::tracer::TracingState, void>' requested here
 1647 |                                          make_copy_constructor((const itype *) nullptr),
      |                                          ^
/usr/local/include/pybind11/cast.h:1029:44: note: in instantiation of member function 'pybind11::detail::type_caster_base<torch::jit::tracer::TracingState>::cast' requested here
 1029 |             return type_caster_base<type>::cast(
      |                                            ^
/usr/local/include/pybind11/pybind11.h:569:36: note: in instantiation of member function 'pybind11::detail::copyable_holder_caster<torch::jit::tracer::TracingState, std::shared_ptr<torch::jit::tracer::TracingState>>::cast' requested here
  569 |                 result = cast_out::cast(
      |                                    ^
/usr/local/include/pybind11/pybind11.h:324:9: note: in instantiation of function template specialization 'pybind11::cpp_function::initialize<(lambda at /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/python/python_tracer.cpp:259:31), std::shared_ptr<torch::jit::tracer::TracingState>, pybind11::name, pybind11::scope, pybind11::sibling>' requested here
  324 |         initialize(
      |         ^
/usr/local/include/pybind11/pybind11.h:1607:22: note: in instantiation of function template specialization 'pybind11::cpp_function::cpp_function<(lambda at /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/python/python_tracer.cpp:259:31), pybind11::name, pybind11::scope, pybind11::sibling, void>' requested here
 1607 |         cpp_function func(std::forward<Func>(f),
      |                      ^
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/python/python_tracer.cpp:259:5: note: in instantiation of function template specialization 'pybind11::module_::def<(lambda at /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/python/python_tracer.cpp:259:31)>' requested here
  259 |   m.def("_get_tracing_state", []() { return getTracingState(); });
      |     ^
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/distributed/c10d/init.cpp:897:15: error: return type 'Tuple<[...], const double &>' must match previous return type 'Tuple<[...], pybind11::none>' when lambda expression has unspecified explicit return type
  897 |               return py::make_tuple(r.op_, preMulSupplement->double_factor);
      |               ^
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/tensorexpr/tensorexpr_init.cpp:3:
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/tensorexpr/codegen.h:4:
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/tensorexpr/ir.h:10:
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/tensorexpr/stmt.h:18:11: warning: definition of implicit copy constructor for 'Stmt' is deprecated because it has a user-declared destructor [-Wdeprecated-copy-with-dtor]
   18 |   virtual ~Stmt() = default;
      |           ^
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/tensorexpr/stmt.h:48:7: note: in implicit copy constructor for 'torch::jit::tensorexpr::Stmt' first required here
   48 | class StmtNode : public Stmt {
      |       ^
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/tensorexpr/stmt.h:307:17: note: in implicit copy constructor for 'torch::jit::tensorexpr::StmtNode<torch::jit::tensorexpr::Store>' first required here
  307 | class TORCH_API Store : public StmtNode<Store> {
      |                 ^
/usr/local/include/pybind11/detail/type_caster_base.h:1682:59: note: in implicit copy constructor for 'torch::jit::tensorexpr::Store' first required here
 1682 |         return [](const void *arg) -> void * { return new T(*reinterpret_cast<const T *>(arg)); };
      |                                                           ^
/usr/local/include/pybind11/detail/type_caster_base.h:1682:46: note: while substituting into a lambda expression here
 1682 |         return [](const void *arg) -> void * { return new T(*reinterpret_cast<const T *>(arg)); };
      |                                              ^
/usr/local/include/pybind11/detail/type_caster_base.h:1647:42: note: in instantiation of function template specialization 'pybind11::detail::type_caster_base<torch::jit::tensorexpr::Store>::make_copy_constructor<torch::jit::tensorexpr::Store, void>' requested here
 1647 |                                          make_copy_constructor((const itype *) nullptr),
      |                                          ^
/usr/local/include/pybind11/cast.h:1029:44: note: in instantiation of member function 'pybind11::detail::type_caster_base<torch::jit::tensorexpr::Store>::cast' requested here
 1029 |             return type_caster_base<type>::cast(
      |                                            ^
/usr/local/include/pybind11/pybind11.h:569:36: note: in instantiation of member function 'pybind11::detail::copyable_holder_caster<torch::jit::tensorexpr::Store, std::shared_ptr<torch::jit::tensorexpr::Store>>::cast' requested here
  569 |                 result = cast_out::cast(
      |                                    ^
/usr/local/include/pybind11/pybind11.h:324:9: note: in instantiation of function template specialization 'pybind11::cpp_function::initialize<(lambda at /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/tensorexpr/tensorexpr_init.cpp:260:11), std::shared_ptr<torch::jit::tensorexpr::Store>, torch::jit::tensorexpr::BufHandle &, const std::vector<torch::jit::tensorexpr::ExprHandle> &, const torch::jit::tensorexpr::ExprHandle &, pybind11::name, pybind11::is_method, pybind11::sibling>' requested here
  324 |         initialize(
      |         ^
/usr/local/include/pybind11/pybind11.h:2412:22: note: in instantiation of function template specialization 'pybind11::cpp_function::cpp_function<(lambda at /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/tensorexpr/tensorexpr_init.cpp:260:11), pybind11::name, pybind11::is_method, pybind11::sibling, void>' requested here
 2412 |         cpp_function cf(method_adaptor<type>(std::forward<Func>(f)),
      |                      ^
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/tensorexpr/tensorexpr_init.cpp:258:8: note: in instantiation of function template specialization 'pybind11::class_<torch::jit::tensorexpr::BufHandle, torch::jit::tensorexpr::ExprHandle>::def<(lambda at /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/tensorexpr/tensorexpr_init.cpp:260:11)>' requested here
  258 |       .def(
      |        ^
2 errors generated.
gmake[2]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:1227: caffe2/torch/CMakeFiles/torch_python.dir/csrc/jit/python/init.cpp.o] Error 1
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/python/script_init.cpp:3:
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/api/object.h:4:
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/aten/src/ATen/core/ivalue.h:1637:
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/aten/src/ATen/core/ivalue_inl.h:14:
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/aten/src/ATen/core/jit_type.h:2198:3: warning: definition of implicit copy constructor for 'InterfaceType' is deprecated because it has a user-declared destructor [-Wdeprecated-copy-with-dtor]
 2198 |   ~InterfaceType() override = default;
      |   ^
/usr/local/include/pybind11/detail/type_caster_base.h:1682:59: note: in implicit copy constructor for 'c10::InterfaceType' first required here
 1682 |         return [](const void *arg) -> void * { return new T(*reinterpret_cast<const T *>(arg)); };
      |                                                           ^
/usr/local/include/pybind11/detail/type_caster_base.h:1682:46: note: while substituting into a lambda expression here
 1682 |         return [](const void *arg) -> void * { return new T(*reinterpret_cast<const T *>(arg)); };
      |                                              ^
/usr/local/include/pybind11/detail/type_caster_base.h:1647:42: note: in instantiation of function template specialization 'pybind11::detail::type_caster_base<c10::InterfaceType>::make_copy_constructor<c10::InterfaceType, void>' requested here
 1647 |                                          make_copy_constructor((const itype *) nullptr),
      |                                          ^
/usr/local/include/pybind11/cast.h:1029:44: note: in instantiation of member function 'pybind11::detail::type_caster_base<c10::InterfaceType>::cast' requested here
 1029 |             return type_caster_base<type>::cast(
      |                                            ^
/usr/local/include/pybind11/pybind11.h:569:36: note: in instantiation of member function 'pybind11::detail::copyable_holder_caster<c10::InterfaceType, std::shared_ptr<c10::InterfaceType>>::cast' requested here
  569 |                 result = cast_out::cast(
      |                                    ^
/usr/local/include/pybind11/pybind11.h:324:9: note: in instantiation of function template specialization 'pybind11::cpp_function::initialize<(lambda at /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/python/script_init.cpp:1471:11), std::shared_ptr<c10::InterfaceType>, const std::shared_ptr<torch::jit::CompilationUnit> &, const std::string &, pybind11::name, pybind11::is_method, pybind11::sibling>' requested here
  324 |         initialize(
      |         ^
/usr/local/include/pybind11/pybind11.h:2412:22: note: in instantiation of function template specialization 'pybind11::cpp_function::cpp_function<(lambda at /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/python/script_init.cpp:1471:11), pybind11::name, pybind11::is_method, pybind11::sibling, void>' requested here
 2412 |         cpp_function cf(method_adaptor<type>(std::forward<Func>(f)),
      |                      ^
/wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/python/script_init.cpp:1469:8: note: in instantiation of function template specialization 'pybind11::class_<torch::jit::CompilationUnit, std::shared_ptr<torch::jit::CompilationUnit>>::def<(lambda at /wrkdirs/usr/ports/misc/py-pytorch/work-py311/pytorch-v2.10.0/torch/csrc/jit/python/script_init.cpp:1471:11)>' requested here
 1469 |       .def(
      |        ^
1 warning generated.
1 error generated.
gmake[2]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:2333: caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/c10d/init.cpp.o] Error 1
1 warning generated.
1 warning generated.
gmake[1]: *** [CMakeFiles/Makefile2:2599: caffe2/torch/CMakeFiles/torch_python.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

ERROR Backend subprocess exited when trying to invoke build_wheel
*** Error code 1

Stop.
make: stopped making "build" in /usr/ports/misc/py-pytorch