NetBSD Problem Report #60201
From john@klos.com Mon Apr 20 03:57:41 2026
Return-Path: <john@klos.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.netbsd.org", Issuer "R12" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 849EC1A923C
for <gnats-bugs@gnats.NetBSD.org>; Mon, 20 Apr 2026 03:57:41 +0000 (UTC)
Message-Id: <202604200357.63K3vbpP001766@bunny.zia.io>
Date: Mon, 20 Apr 2026 03:57:37 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
Subject: pkgsrc/math/py-torch is broken on NetBSD
X-Send-Pr-Version: 3.95
X-From4GNATS: "john@ziaspace.com via gnats" <gnats-admin@NetBSD.org>
>Number: 60201
>Category: pending
>Synopsis: pkgsrc/math/py-torch is broken on NetBSD
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 20 04:00:00 +0000 2026
>Originator: John Klos
>Release: NetBSD 11.0_RC2
>Organization:
>Environment:
System: NetBSD bunny.zia.io 11.0_RC2 NetBSD 11.0_RC2 (BUNNY) #0: Wed Mar 18 06:49:29 UTC 2026 john@bunny.zia.io:/usr/obj-amd64/sys/arch/amd64/compile/BUNNY amd64
Architecture: x86_64
Machine: amd64
>Description:
Attempting to compile pkgsrc/math/py-torch on NetBSD/amd64 10 or 11 fails:
[ 97%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/jit/passes/onnx/preprocess_for_onnx.cpp.o
/usr/pkgsrc/math/py-torch/work/pytorch-v2.8.0/torch/csrc/jit/python/init.cpp: In lambda function:
/usr/pkgsrc/math/py-torch/work/pytorch-v2.8.0/torch/csrc/jit/python/init.cpp:1821:32: error: inconsistent types 'pybind11::typing::Tuple<pybind11::none, pybind11::none>' and 'pybind11::typing::Tuple<pybind11::cpp_function&, pybind11::list&>' deduced for lambda return type
1821 | return py::make_tuple(func, overload_names);
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/pkgsrc/math/py-torch/work/pytorch-v2.8.0/torch/csrc/jit/python/init.cpp: In lambda function:
/usr/pkgsrc/math/py-torch/work/pytorch-v2.8.0/torch/csrc/jit/python/init.cpp:1848:32: error: inconsistent types 'pybind11::typing::Tuple<bool, pybind11::object&>' and 'pybind11::typing::Tuple<bool, pybind11::none>' deduced for lambda return type
1848 | return py::make_tuple(false, py::none());
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
...
gmake[2]: *** [caffe2/torch/CMakeFiles/torch_python.dir/build.make:1129: caffe2/torch/CMakeFiles/torch_python.dir/csrc/jit/python/init.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:3761: caffe2/torch/CMakeFiles/torch_python.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
*** Error code 2
>How-To-Repeat:
Try to compile pkgsrc/math/py-torch.
>Fix:
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.