=> Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: lang/python/egg.mk is deprecated; use lang/python/wheel.mk instead. => Checksum BLAKE2s OK for pytorch-v2.5.1.tar.gz => Checksum SHA512 OK for pytorch-v2.5.1.tar.gz ===> Installing dependencies for py312-torch-2.5.1nb1 ========================================================================== The following variables will affect the build process of this package, py312-torch-2.5.1nb1. Their current value is shown below: * PKGSRC_BLAS_TYPES = netlib openblas openblas_pthread openblas_openmp * PYTHON_VERSION_DEFAULT = 312 * SSLBASE = /usr * SSLCERTBUNDLE (not defined) * SSLCERTS = /etc/openssl/certs * SSLDIR = /etc/openssl * SSLKEYS = /etc/openssl/private Based on these variables, the following variables have been set: * BLAS_INCLUDES = -I/usr/pkg/include/openblas64_pthread * BLAS_LIBS = -lopenblas64_pthread * BLAS_PC = openblas64_pthread * BLAS_TYPE = openblas_pthread * CBLAS_LIBS = -lopenblas64_pthread * CBLAS_PC = openblas64_pthread * LAPACKE_LIBS = -lopenblas64_pthread * LAPACKE_PC = openblas64_pthread * LAPACK_LIBS = -lopenblas64_pthread * LAPACK_PC = openblas64_pthread * PYPACKAGE = python312 You may want to abort the process now with CTRL-C and change the value of variables in the first group before continuing. Be sure to run `/usr/bin/make clean' after the changes. ========================================================================== => Tool dependency cmake>=0: found cmake-3.31.4 => Tool dependency py312-setuptools-[0-9]*: found py312-setuptools-75.8.0 => Tool dependency mktools-[0-9]*: found mktools-20220614 => Tool dependency gmake>=3.81: found gmake-4.4.1 => Tool dependency cwrappers>=20150314: found cwrappers-20220403 => Tool dependency checkperms>=1.1: found checkperms-1.12 => Build dependency py312-pybind11>=2.5.0: found py312-pybind11-2.13.6 => Build dependency python312>=3.12.0: found python312-3.12.8nb2 => Full dependency py312-filelock-[0-9]*: found py312-filelock-3.17.0 => Full dependency py312-jinja2-[0-9]*: found py312-jinja2-3.1.5 => Full dependency py312-networkx-[0-9]*: found py312-networkx-3.4.2 => Full dependency py312-sympy-[0-9]*: found py312-sympy-1.13.3 => Full dependency py312-typing-extensions-[0-9]*: found py312-typing-extensions-4.12.2 => Full dependency py312-yaml-[0-9]*: found py312-yaml-6.0.2 => Full dependency py312-dill-[0-9]*: found py312-dill-0.3.9 => Full dependency fftw>=3.3.10nb1: found fftw-3.3.10nb2 => Full dependency gmp>=5.0.1: found gmp-6.3.0 => Full dependency mpfr>=4.0.0: found mpfr-4.2.1 => Full dependency openmp>=18.0.0: found openmp-18.1.8nb1 => Full dependency py312-numpy>=1.20.3nb1: found py312-numpy-2.2.2 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Overriding tools for py312-torch-2.5.1nb1 ===> Extracting for py312-torch-2.5.1nb1 /bin/rm -f /tmp/math/py-torch/work/pytorch-v2.5.1/third_party/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/resources/cert/server_bkup.key.orig /bin/rm -f /tmp/math/py-torch/work/pytorch-v2.5.1/third_party/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/resources/cert/client.key.orig /bin/rm -f /tmp/math/py-torch/work/pytorch-v2.5.1/third_party/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/resources/cert/server.key.orig ===> Patching for py312-torch-2.5.1nb1 => Applying pkgsrc patches for py312-torch-2.5.1nb1 => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-c10_core_Scalar.h => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-c10_core_Scalar.h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-c10_core_Scalar.h,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* For long long int of NetBSD. | Fix "error: call of overloaded 'Scalar(long long int)' is ambiguous" | |--- c10/core/Scalar.h.orig 2025-01-18 03:03:27.153131286 +0000 |+++ c10/core/Scalar.h -------------------------- Patching file c10/core/Scalar.h using Plan A... Hunk #1 succeeded at 75. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-c10_macros_Macros.h => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-c10_macros_Macros.h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-c10_macros_Macros.h,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Avoid undefined reference of __assert_fail(). | |--- c10/macros/Macros.h.orig 2025-01-17 17:30:50.856258217 +0000 |+++ c10/macros/Macros.h -------------------------- Patching file c10/macros/Macros.h using Plan A... Hunk #1 succeeded at 342. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-cmake_Dependencies.cmake => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-cmake_Dependencies.cmake Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-cmake_Dependencies.cmake,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Fix errors related to RPATH change. | |--- cmake/Dependencies.cmake.orig 2025-01-19 11:34:31.033893427 +0000 |+++ cmake/Dependencies.cmake -------------------------- Patching file cmake/Dependencies.cmake using Plan A... Hunk #1 succeeded at 9. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-cmake_Modules_FindBLAS.cmake => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-cmake_Modules_FindBLAS.cmake Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-cmake_Modules_FindBLAS.cmake,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Find blas from pkgsrc. | XXX: Using BLAS_PC here is completely incorrect. | |--- cmake/Modules/FindBLAS.cmake.orig 2025-01-17 11:19:26.996442468 +0000 |+++ cmake/Modules/FindBLAS.cmake -------------------------- Patching file cmake/Modules/FindBLAS.cmake using Plan A... Hunk #1 succeeded at 172. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-cmake_public_mkldnn.cmake => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-cmake_public_mkldnn.cmake Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-cmake_public_mkldnn.cmake,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Fix MLKDNN related undefined symbols. | |--- cmake/public/mkldnn.cmake.orig 2025-01-19 14:42:24.569420877 +0000 |+++ cmake/public/mkldnn.cmake -------------------------- Patching file cmake/public/mkldnn.cmake using Plan A... Hunk #1 succeeded at 4. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_cpuinfo_CMakeLists.txt => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_cpuinfo_CMakeLists.txt Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-third__party_cpuinfo_CMakeLists.txt,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Add NetBSD support. | |--- third_party/cpuinfo/CMakeLists.txt.orig 2025-01-17 16:38:38.758427409 +0000 |+++ third_party/cpuinfo/CMakeLists.txt -------------------------- Patching file third_party/cpuinfo/CMakeLists.txt using Plan A... Hunk #1 succeeded at 108. Hunk #2 succeeded at 183. Hunk #3 succeeded at 243. Hunk #4 succeeded at 315. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_cpuinfo_src_cpuinfo_internal-api.h => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_cpuinfo_src_cpuinfo_internal-api.h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-third__party_cpuinfo_src_cpuinfo_internal-api.h,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* For NetBSD/i386 and amd64. | |--- third_party/cpuinfo/src/cpuinfo/internal-api.h.orig 2025-01-20 07:59:15.308588507 +0000 |+++ third_party/cpuinfo/src/cpuinfo/internal-api.h -------------------------- Patching file third_party/cpuinfo/src/cpuinfo/internal-api.h using Plan A... Hunk #1 succeeded at 50. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_cpuinfo_src_init.c => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_cpuinfo_src_init.c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-third__party_cpuinfo_src_init.c,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Add NetBSD/i386 and amd64 support. | |--- third_party/cpuinfo/src/init.c.orig 2025-01-20 07:07:43.416176101 +0000 |+++ third_party/cpuinfo/src/init.c -------------------------- Patching file third_party/cpuinfo/src/init.c using Plan A... Hunk #1 succeeded at 30. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_cpuinfo_src_netbsd_api.h => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_cpuinfo_src_netbsd_api.h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-third__party_cpuinfo_src_netbsd_api.h,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Add NetBSD support. | |--- third_party/cpuinfo/src/netbsd/api.h.orig 2025-01-17 16:33:50.739885970 +0000 |+++ third_party/cpuinfo/src/netbsd/api.h -------------------------- (Creating file third_party/cpuinfo/src/netbsd/api.h...) Patching file third_party/cpuinfo/src/netbsd/api.h using Plan A... Empty context always matches. Hunk #1 succeeded at 1. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_cpuinfo_src_netbsd_topology.c => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_cpuinfo_src_netbsd_topology.c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-third__party_cpuinfo_src_netbsd_topology.c,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Add preliminary NetBSD support. This is incorrect anyway. | |--- third_party/cpuinfo/src/netbsd/topology.c.orig 2025-01-17 16:33:50.739896420 +0000 |+++ third_party/cpuinfo/src/netbsd/topology.c -------------------------- (Creating file third_party/cpuinfo/src/netbsd/topology.c...) Patching file third_party/cpuinfo/src/netbsd/topology.c using Plan A... Empty context always matches. Hunk #1 succeeded at 1. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_cpuinfo_src_x86_netbsd_init.c => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_cpuinfo_src_x86_netbsd_init.c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-third__party_cpuinfo_src_x86_netbsd_init.c,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Add preliminary NetBSD support. | |--- third_party/cpuinfo/src/x86/netbsd/init.c.orig 2025-01-17 16:37:03.578563361 +0000 |+++ third_party/cpuinfo/src/x86/netbsd/init.c -------------------------- (Creating file third_party/cpuinfo/src/x86/netbsd/init.c...) Patching file third_party/cpuinfo/src/x86/netbsd/init.c using Plan A... Empty context always matches. Hunk #1 succeeded at 1. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_fbgemm_third__party_cpuinfo_src_init.c => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_fbgemm_third__party_cpuinfo_src_init.c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-third__party_fbgemm_third__party_cpuinfo_src_init.c,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Add NetBSD/i386 and amd64 support. | |--- third_party/fbgemm/third_party/cpuinfo/src/init.c.orig 2025-01-20 07:10:28.351796926 +0000 |+++ third_party/fbgemm/third_party/cpuinfo/src/init.c -------------------------- Patching file third_party/fbgemm/third_party/cpuinfo/src/init.c using Plan A... Hunk #1 succeeded at 27. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_kineto_libkineto_src_ThreadUtil.cpp => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_kineto_libkineto_src_ThreadUtil.cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-third__party_kineto_libkineto_src_ThreadUtil.cpp,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Support NetBSD. | |--- third_party/kineto/libkineto/src/ThreadUtil.cpp.orig 2024-10-29 18:00:46.000000000 +0000 |+++ third_party/kineto/libkineto/src/ThreadUtil.cpp -------------------------- Patching file third_party/kineto/libkineto/src/ThreadUtil.cpp using Plan A... Hunk #1 succeeded at 23. Hunk #2 succeeded at 62. Hunk #3 succeeded at 117. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_protobuf_post__process__dist.sh => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_protobuf_post__process__dist.sh Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-third__party_protobuf_post__process__dist.sh,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Fix POSIX shell portability issue. | |--- third_party/protobuf/post_process_dist.sh.orig 2025-01-17 09:45:58.965296423 +0000 |+++ third_party/protobuf/post_process_dist.sh -------------------------- Patching file third_party/protobuf/post_process_dist.sh using Plan A... Hunk #1 succeeded at 15. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_tensorpipe_tensorpipe_common_system.cc => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-third__party_tensorpipe_tensorpipe_common_system.cc Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-third__party_tensorpipe_tensorpipe_common_system.cc,v 1.1 2025/01/23 14:31:16 ryoon Exp $ | |* Retern fake boot ID under NetBSD. | |--- third_party/tensorpipe/tensorpipe/common/system.cc.orig 2025-01-21 15:51:15.145360508 +0000 |+++ third_party/tensorpipe/tensorpipe/common/system.cc -------------------------- Patching file third_party/tensorpipe/tensorpipe/common/system.cc using Plan A... Hunk #1 succeeded at 101. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-torch_csrc_distributed_c10d_ProcessGroupGloo.cpp => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-torch_csrc_distributed_c10d_ProcessGroupGloo.cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-torch_csrc_distributed_c10d_ProcessGroupGloo.cpp,v 1.1 2025/01/23 14:31:16 ryoon Exp $ | |* Support NetBSD. | |--- /usr/tmp/pkgsrc/math/py-torch/work/pytorch-v2.5.1/torch/csrc/distributed/c10d/ProcessGroupGloo.cpp.orig 2025-01-21 17:59:06.880466509 +0000 |+++ /usr/tmp/pkgsrc/math/py-torch/work/pytorch-v2.5.1/torch/csrc/distributed/c10d/ProcessGroupGloo.cpp -------------------------- No file to patch. Skipping... Hunk #1 ignored at 16. Hunk #2 ignored at 697. 2 out of 2 hunks ignored--saving rejects to /usr/tmp/pkgsrc/math/py-torch/work/pytorch-v2.5.1/torch/csrc/distributed/c10d/ProcessGroupGloo.cpp.rej Can't create /usr/tmp/pkgsrc/math/py-torch/work/pytorch-v2.5.1/torch/csrc/distributed/c10d/ProcessGroupGloo.cpp.rej, output is in /tmp/patchrC7wzNNYaH0: No such file or directory done Patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-torch_csrc_distributed_c10d_ProcessGroupGloo.cpp failed => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-torch_csrc_distributed_c10d_socket.cpp => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-torch_csrc_distributed_c10d_socket.cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-torch_csrc_distributed_c10d_socket.cpp,v 1.1 2025/01/23 14:31:16 ryoon Exp $ | |* NetBSD has no AI_V4MAPPED and AI_ALL. | |--- torch/csrc/distributed/c10d/socket.cpp.orig 2025-01-21 16:40:38.577733771 +0000 |+++ torch/csrc/distributed/c10d/socket.cpp -------------------------- Patching file torch/csrc/distributed/c10d/socket.cpp using Plan A... Hunk #1 succeeded at 809. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-torch_csrc_utils_byte__order.h => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-torch_csrc_utils_byte__order.h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-torch_csrc_utils_byte__order.h,v 1.1 2025/01/21 13:36:49 ryoon Exp $ | |* Support NetBSD. | |--- torch/csrc/utils/byte_order.h.orig 2025-01-17 11:52:24.707676599 +0000 |+++ torch/csrc/utils/byte_order.h -------------------------- Patching file torch/csrc/utils/byte_order.h using Plan A... Hunk #1 succeeded at 16. done ERROR: Patching failed due to modified or broken patch file(s): ERROR: /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch/patches/patch-torch_csrc_distributed_c10d_ProcessGroupGloo.cpp *** Error code 1 Stop. make[1]: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch *** Error code 1 Stop. make: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/math/py-torch