[package - main-amd64-default][misc/py-pytorch] Failed for py39-pytorch-2.0.0_2 in configure

From: <pkg-fallout_at_FreeBSD.org>
Date: Sat, 22 Jul 2023 02:01:08 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/beefy18/data/main-amd64-default/p150bed43bfd4_sbc310a95c5/logs/py39-pytorch-2.0.0_2.log
Build URL:      https://pkg-status.freebsd.org/beefy18/build.html?mastername=main-amd64-default&build=p150bed43bfd4_sbc310a95c5
Log:

=>> Building misc/py-pytorch
build started at Sat Jul 22 01:43:29 UTC 2023
port directory: /usr/ports/misc/py-pytorch
package name: py39-pytorch-2.0.0_2
building for: FreeBSD main-amd64-default-job-11 14.0-CURRENT FreeBSD 14.0-CURRENT 1400093 amd64
maintained by: yuri@FreeBSD.org
Makefile ident: 
Poudriere version: 3.2.8-23-ga7f8d188
Host OSVERSION: 1400089
Jail OSVERSION: 1400093
Job Id: 11




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



---Begin Environment---
SHELL=/bin/sh
OSVERSION=1400093
UNAME_v=FreeBSD 14.0-CURRENT 1400093
UNAME_r=14.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-23-ga7f8d188
MASTERMNT=/usr/local/poudriere/data/.m/main-amd64-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/main-amd64-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=main-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/main-amd64-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=py39
DEPENDS_ARGS=
MAKE_ARGS= FLAVOR=py39
---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.9" XDG_DATA_HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py39  XDG_CONFIG_HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py39  XDG_CACHE_HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py39/.cache  HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py39 TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/misc/py-pytorch/work-py39/.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-py39/.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 XDG_DATA_HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py39  XDG_CONFIG_HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py39  XDG_CACHE_HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py39/.cache  HOME=/wrkdirs/usr/ports/misc/py-pytorch/work-py39 TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/misc/py-pytorch/work-py39/.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-py39/.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 LDSHARED="cc -shared" PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE= 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 -fstack-protector-strong -L/usr/local/lib " LIBS=""  CXX="c++
" CXXFLAGS="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include "  MANPREFIX="/usr/local" 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.9  PYTHON_LIBDIR=lib/python3.9  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=lib/python3.9/site-packages  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 PYTHON2="@comment " PYTHON3="" OSREL=14.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.9  PYTHON_LIBDIR=/usr/local/lib/python3.9  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=/usr/local/lib/python3.9/site-packages  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 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
#### /usr/local/etc/poudriere.d/make.conf ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 2 jobs
MAKE_JOBS_NUMBER=2
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_53255a77=yes
CC_OUTPUT_921dbbb2_911cfe02=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
CC_OUTPUT_921dbbb2_af59ad06=yes
CC_OUTPUT_921dbbb2_a15f3fcf=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=amd64
OPSYS=FreeBSD
_OSRELEASE=14.0-CURRENT
OSREL=14.0
OSVERSION=1400093
PYTHONBASE=/usr/local
HAVE_COMPAT_IA32_KERN=YES
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
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)  1024
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>  License BSD3CLAUSE accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   py39-pytorch-2.0.0_2 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.20.4.pkg
[main-amd64-default-job-11] Installing pkg-1.20.4...
[main-amd64-default-job-11] Extracting pkg-1.20.4: .......... done
===>   py39-pytorch-2.0.0_2 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of py39-pytorch-2.0.0_2
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by py39-pytorch-2.0.0_2 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by py39-pytorch-2.0.0_2 for building
=> SHA256 Checksum OK for pytorch/pytorch-v2.0.0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License BSD3CLAUSE accepted by the user
===> Fetching all distfiles required by py39-pytorch-2.0.0_2 for building
===>  Extracting for py39-pytorch-2.0.0_2
=> SHA256 Checksum OK for pytorch/pytorch-v2.0.0.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for py39-pytorch-2.0.0_2
===>  Applying FreeBSD patches for py39-pytorch-2.0.0_2 from /usr/ports/misc/py-pytorch/files
===========================================================================
=======================<phase: build-depends  >============================
===>   py39-pytorch-2.0.0_2 depends on executable: cmake - not found
===>   Installing existing package /packages/All/cmake-core-3.26.1_1.pkg
[main-amd64-default-job-11] Installing cmake-core-3.26.1_1...
[main-amd64-default-job-11] `-- Installing expat-2.5.0...
<snip>
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:90: caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/generated/python_functions_1.cpp.o] Error 1
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:174: caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/generated/python_torch_functions_1.cpp.o] Error 1
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/StorageMethods.cpp:24:
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/utils/pycfunction_helpers.h:7:23: error: cast from 'PyCFunctionWithKeywords' (aka '_object *(*)(_object *, _object *, _object *)') to 'void (*)()' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  return (PyCFunction)(void (*)(void))func;
                      ^~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/utils/pycfunction_helpers.h:7:10: error: cast from 'void (*)()' to 'PyCFunction' (aka '_object *(*)(_object *, _object *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  return (PyCFunction)(void (*)(void))func;
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:160: caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/generated/python_torch_functions_0.cpp.o] Error 1
2 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:146: caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/generated/python_variable_methods.cpp.o] Error 1
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:47:3: error: cast from 'PyObject *(*)(THPCppFunction *, PyObject *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, _object *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  THP_FUNCTION_DEFAULT_PROPERTIES,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_cpp_function.h:52:4: note: expanded from macro 'THP_FUNCTION_DEFAULT_PROPERTIES'
   (getter)THPCppFunction_next_functions,                                 \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:47:3: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  THP_FUNCTION_DEFAULT_PROPERTIES,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_cpp_function.h:57:8: note: expanded from macro 'THP_FUNCTION_DEFAULT_PROPERTIES'
       (getter)THPCppFunction_requires_grad,                              \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:47:3: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  THP_FUNCTION_DEFAULT_PROPERTIES,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_cpp_function.h:62:24: note: expanded from macro 'THP_FUNCTION_DEFAULT_PROPERTIES'
    (char*)"metadata", (getter)THPCppFunction_metadata, nullptr, nullptr, \
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:48:26: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  {(char*)"_saved_self", (getter)THPAcosBackward0_self_getter, nullptr, nullptr, nullptr},
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:49:30: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  {(char*)"_raw_saved_self", (getter)THPAcosBackward0_self_raw_getter, nullptr, nullptr, nullptr},
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:69:3: error: cast from 'PyObject *(*)(THPCppFunction *, PyObject *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, _object *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  THP_FUNCTION_DEFAULT_PROPERTIES,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_cpp_function.h:52:4: note: expanded from macro 'THP_FUNCTION_DEFAULT_PROPERTIES'
   (getter)THPCppFunction_next_functions,                                 \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:69:3: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  THP_FUNCTION_DEFAULT_PROPERTIES,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_cpp_function.h:57:8: note: expanded from macro 'THP_FUNCTION_DEFAULT_PROPERTIES'
       (getter)THPCppFunction_requires_grad,                              \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:69:3: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  THP_FUNCTION_DEFAULT_PROPERTIES,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_cpp_function.h:62:24: note: expanded from macro 'THP_FUNCTION_DEFAULT_PROPERTIES'
    (char*)"metadata", (getter)THPCppFunction_metadata, nullptr, nullptr, \
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:70:26: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  {(char*)"_saved_self", (getter)THPAsinBackward0_self_getter, nullptr, nullptr, nullptr},
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:71:30: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  {(char*)"_raw_saved_self", (getter)THPAsinBackward0_self_raw_getter, nullptr, nullptr, nullptr},
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:106:3: error: cast from 'PyObject *(*)(THPCppFunction *, PyObject *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, _object *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  THP_FUNCTION_DEFAULT_PROPERTIES,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_cpp_function.h:52:4: note: expanded from macro 'THP_FUNCTION_DEFAULT_PROPERTIES'
   (getter)THPCppFunction_next_functions,                                 \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:106:3: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  THP_FUNCTION_DEFAULT_PROPERTIES,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_cpp_function.h:57:8: note: expanded from macro 'THP_FUNCTION_DEFAULT_PROPERTIES'
       (getter)THPCppFunction_requires_grad,                              \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:106:3: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  THP_FUNCTION_DEFAULT_PROPERTIES,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_cpp_function.h:62:24: note: expanded from macro 'THP_FUNCTION_DEFAULT_PROPERTIES'
    (char*)"metadata", (getter)THPCppFunction_metadata, nullptr, nullptr, \
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:107:26: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  {(char*)"_saved_self", (getter)THPMatmulBackward0_self_getter, nullptr, nullptr, nullptr},
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:108:30: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  {(char*)"_raw_saved_self", (getter)THPMatmulBackward0_self_raw_getter, nullptr, nullptr, nullptr},
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:109:27: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  {(char*)"_saved_other", (getter)THPMatmulBackward0_other_getter, nullptr, nullptr, nullptr},
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:110:31: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  {(char*)"_raw_saved_other", (getter)THPMatmulBackward0_other_raw_getter, nullptr, nullptr, nullptr},
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:145:3: error: cast from 'PyObject *(*)(THPCppFunction *, PyObject *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, _object *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  THP_FUNCTION_DEFAULT_PROPERTIES,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_cpp_function.h:52:4: note: expanded from macro 'THP_FUNCTION_DEFAULT_PROPERTIES'
   (getter)THPCppFunction_next_functions,                                 \
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/generated/python_functions_4.cpp:145:3: error: cast from 'PyObject *(*)(THPCppFunction *, void *)' (aka '_object *(*)(torch::autograd::THPCppFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  THP_FUNCTION_DEFAULT_PROPERTIES,
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_cpp_function.h:57:8: note: expanded from macro 'THP_FUNCTION_DEFAULT_PROPERTIES'
       (getter)THPCppFunction_requires_grad,                              \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:132: caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/generated/python_functions_4.cpp.o] Error 1
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_engine.cpp:17:
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/utils/pycfunction_helpers.h:7:23: error: cast from 'PyCFunctionWithKeywords' (aka '_object *(*)(_object *, _object *, _object *)') to 'void (*)()' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  return (PyCFunction)(void (*)(void))func;
                      ^~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/utils/pycfunction_helpers.h:7:10: error: cast from 'void (*)()' to 'PyCFunction' (aka '_object *(*)(_object *, _object *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  return (PyCFunction)(void (*)(void))func;
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/Generator.cpp:175:16: error: cast from 'PyObject *(*)(THPGenerator *, void *)' (aka '_object *(*)(THPGenerator *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
    {"device", (getter)THPGenerator_get_device, nullptr, nullptr, nullptr},
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:342: caffe2/torch/CMakeFiles/torch_python.dir/csrc/Dtype.cpp.o] Error 1
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/Module.cpp:70:
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/utils/pycfunction_helpers.h:7:23: error: cast from 'PyCFunctionWithKeywords' (aka '_object *(*)(_object *, _object *, _object *)') to 'void (*)()' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  return (PyCFunction)(void (*)(void))func;
                      ^~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/utils/pycfunction_helpers.h:7:10: error: cast from 'void (*)()' to 'PyCFunction' (aka '_object *(*)(_object *, _object *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  return (PyCFunction)(void (*)(void))func;
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/init.cpp:30:
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/utils/pycfunction_helpers.h:7:23: error: cast from 'PyCFunctionWithKeywords' (aka '_object *(*)(_object *, _object *, _object *)') to 'void (*)()' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  return (PyCFunction)(void (*)(void))func;
                      ^~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/utils/pycfunction_helpers.h:7:10: error: cast from 'void (*)()' to 'PyCFunction' (aka '_object *(*)(_object *, _object *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  return (PyCFunction)(void (*)(void))func;
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/Module.cpp:1191:19: error: cast from 'PyObject *(*)(PyObject *, PyObject *const *, Py_ssize_t)' (aka '_object *(*)(_object *, _object *const *, long)') to 'void (*)()' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
     (PyCFunction)(void (*)(void))THPModule_has_torch_function_variadic,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/Module.cpp:1191:6: error: cast from 'void (*)()' to 'PyCFunction' (aka '_object *(*)(_object *, _object *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
     (PyCFunction)(void (*)(void))THPModule_has_torch_function_variadic,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_function.cpp:1272:6: error: cast from 'PyObject *(*)(THPFunction *, void *)' (aka '_object *(*)(THPFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
     (getter)THPFunction_saved_tensors,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_function.cpp:1277:6: error: cast from 'PyObject *(*)(THPFunction *, void *)' (aka '_object *(*)(THPFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
     (getter)THPFunction_saved_variables,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_function.cpp:1282:6: error: cast from 'PyObject *(*)(THPFunction *, void *)' (aka '_object *(*)(THPFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
     (getter)THPFunction_raw_saved_tensors,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_function.cpp:1287:6: error: cast from 'PyObject *(*)(THPFunction *, void *)' (aka '_object *(*)(THPFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
     (getter)THPFunction_next_functions,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_function.cpp:1317:18: error: cast from 'PyObject *(*)(THPFunction *, void *)' (aka '_object *(*)(THPFunction *, void *)') to 'getter' (aka '_object *(*)(_object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
    {"metadata", (getter)THPFunction_metadata, nullptr, nullptr, nullptr},
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_function.cpp:1320:6: error: cast from 'int (*)(THPFunction *, PyObject *, void *)' (aka 'int (*)(THPFunction *, _object *, void *)') to 'setter' (aka 'int (*)(_object *, _object *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
     (setter)THPFunction_set_materialize_grads,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_function.cpp:1345:5: error: cast from 'void (*)(THPFunction *)' to 'destructor' (aka 'void (*)(_object *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
    (destructor)THPFunction_dealloc, /* tp_dealloc */
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_function.cpp:1363:5: error: cast from 'int (*)(THPFunction *, visitproc, void *)' (aka 'int (*)(THPFunction *, int (*)(_object *, void *), void *)') to 'traverseproc' (aka 'int (*)(_object *, int (*)(_object *, void *), void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
    (traverseproc)THPFunction_traverse, /* tp_traverse */
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch/csrc/autograd/python_function.cpp:1364:5: error: cast from 'int (*)(THPFunction *)' to 'inquiry' (aka 'int (*)(_object *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
    (inquiry)THPFunction_clear, /* tp_clear */
    ^~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:538: caffe2/torch/CMakeFiles/torch_python.dir/csrc/Stream.cpp.o] Error 1
18 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:552: caffe2/torch/CMakeFiles/torch_python.dir/csrc/TypeInfo.cpp.o] Error 1
4 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:496: caffe2/torch/CMakeFiles/torch_python.dir/csrc/Storage.cpp.o] Error 1
2 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:510: caffe2/torch/CMakeFiles/torch_python.dir/csrc/StorageMethods.cpp.o] Error 1
2 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:664: caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/python_engine.cpp.o] Error 1
1 error generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:384: caffe2/torch/CMakeFiles/torch_python.dir/csrc/Generator.cpp.o] Error 1
2 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:734: caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/python_torch_functions_manual.cpp.o] Error 1
4 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:440: caffe2/torch/CMakeFiles/torch_python.dir/csrc/Module.cpp.o] Error 1
9 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:678: caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/python_function.cpp.o] Error 1
2 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:594: caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/init.cpp.o] Error 1
2 errors generated.
gmake[3]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:720: caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/python_nested_functions_manual.cpp.o] Error 1
gmake[3]: Leaving directory '/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/build'
gmake[2]: *** [CMakeFiles/Makefile2:1435: caffe2/torch/CMakeFiles/torch_python.dir/all] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/build'
gmake[1]: *** [Makefile:146: all] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/build'
Building wheel torch-2.0.0a0+gitUnknown
-- Building version 2.0.0a0+gitUnknown
cmake -DBUILD_PYTHON=True -DBUILD_TEST=False -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0/torch -DCMAKE_PREFIX_PATH=/usr/local/lib/python3.9/site-packages -DNUMPY_INCLUDE_DIR=/usr/local/lib/python3.9/site-packages/numpy/core/include -DPYTHON_EXECUTABLE=/usr/local/bin/python3.9 -DPYTHON_INCLUDE_DIR=/usr/local/include/python3.9 -DPYTHON_LIBRARY=/usr/local/lib/libpython3.9.so.1.0 -DTORCH_BUILD_VERSION=2.0.0a0+gitUnknown -DUSE_CUDNN=0 -DUSE_MKLDNN=0 -DUSE_NINJA=no -DUSE_NUMPY=True /wrkdirs/usr/ports/misc/py-pytorch/work-py39/pytorch-v2.0.0
cmake --build . --target install --config Release -- -j 48
*** Error code 1

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