[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1113436: marked as done (pytorch: FTBFS with CMake 4)



Your message dated Thu, 18 Sep 2025 12:50:05 +0000
with message-id <E1uzE5N-00AiaA-1g@fasolo.debian.org>
and subject line Bug#1113436: fixed in pytorch 2.6.0+dfsg-9
has caused the Debian Bug report #1113436,
regarding pytorch: FTBFS with CMake 4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1113436: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1113436
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: pytorch
Version: 2.6.0+dfsg-8
Severity: serious
User: cmake@packages.debian.org
Usertags: cmake-4
Tags: ftbfs, forky, sid

Dear maintainer,

During a test rebuild for CMake 4, pytorch failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/max_pool2d.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/max_pool2d.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/mean_dim.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/mean_dim.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/hardsigmoid_.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/hardsigmoid_.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/conv_transpose2d.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/conv_transpose2d.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/quantized_upsample_nearest2d.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/quantized_upsample_nearest2d.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/uniform_.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/uniform_.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/leaky_relu.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/leaky_relu.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/image_to_nchw_quantized_mul4.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/image_to_nchw_quantized_mul4.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/nchw_to_image_uint8.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/nchw_to_image_uint8.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/nchw_to_image2d_int32.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/nchw_to_image2d_int32.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/quantized_gelu_tanh_qint8.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/quantized_gelu_tanh_qint8.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/lerp.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/lerp.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/nchw_to_image_int32.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/nchw_to_image_int32.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/cat_feature.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/cat_feature.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/stack_feature.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/stack_feature.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/conv1d.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/conv1d.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/quantized_max_pool2d_quint8.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/quantized_max_pool2d_quint8.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
glslc cmd: ['/usr/bin/glslc', '-fshader-stage=compute', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/select_width_3d.glsl', '-o', '/build/reproducible-path/pytorch-2.6.0+dfsg/build/vulkan/spv/select_width_3d.spv', '--target-env=vulkan1.0', '-Werror', '-I', '/build/reproducible-path/pytorch-2.6.0+dfsg/cmake/../aten/src/ATen/native/vulkan/glsl']
-- Using ATen parallel backend: OMP
disabling CUDA because USE_CUDA is set false
Found sleef: /usr/lib/aarch64-linux-gnu/libsleef.so
AT_INSTALL_INCLUDE_DIR include/ATen/core
core header install: /build/reproducible-path/pytorch-2.6.0+dfsg/build/aten/src/ATen/core/TensorBody.h
core header install: /build/reproducible-path/pytorch-2.6.0+dfsg/build/aten/src/ATen/core/aten_interned_strings.h
core header install: /build/reproducible-path/pytorch-2.6.0+dfsg/build/aten/src/ATen/core/enum_tag.h
CMake Error at test/edge/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!
Building wheel torch-2.6.0+debian
-- Building version 2.6.0+debian
cmake -GNinja -DBLAS=Generic -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/build/reproducible-path/pytorch-2.6.0+dfsg/torch -DCMAKE_PREFIX_PATH=/usr/local/lib/python3.13/dist-packages -DONNX_NAMESPACE=onnx -DPython_EXECUTABLE=/usr/bin/python3.13 -DTORCH_BUILD_VERSION=2.6.0+debian -DUSE_CUDA=OFF -DUSE_CUDNN=OFF -DUSE_DISTRIBUTED=ON -DUSE_FBGEMM=OFF   -DUSE_GFLAGS=OFF -DUSE_GLOG=OFF -DUSE_GLOO=ON -DUSE_ITT=OFF -DUSE_KINETO=ON -DUSE_LLVM=/usr/lib/llvm-19 -DUSE_MIOPEN=OFF -DUSE_MKLDNN=ON   -DUSE_MPI=ON -DUSE_NNPACK=OFF -DUSE_NUMPY=True -DUSE_PYTORCH_QNNPACK=OFF -DUSE_ROCM=OFF -DUSE_SYSTEM_LIBS=ON -DUSE_SYSTEM_NCCL=OFF -DUSE_TENSORPIPE=ON -DUSE_VULKAN=1 -DUSE_XNNPACK=ON /build/reproducible-path/pytorch-2.6.0+dfsg
make[1]: *** [debian/rules:199: override_dh_auto_install] Error 1
make[1]: Leaving directory '/build/reproducible-path/pytorch-2.6.0+dfsg'
make: *** [debian/rules:162: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2025-08-30T15:15:27Z

-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/2408237/

The most likely cause of build failures is the removed backwards compatibility for
CMake versions earlier than 3.5. You can find additional information in my
debian-devel announcement:

https://lists.debian.org/debian-devel/2025/04/msg00310.html

About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.

You can find the build task here:
https://debusine.debian.net/work-request/154593/

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks,
Timo

--- End Message ---
--- Begin Message ---
Source: pytorch
Source-Version: 2.6.0+dfsg-9
Done: Shengqi Chen <harry@debian.org>

We believe that the bug you reported is fixed in the latest version of
pytorch, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1113436@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Shengqi Chen <harry@debian.org> (supplier of updated pytorch package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 18 Sep 2025 19:51:27 +0800
Source: pytorch
Architecture: source
Version: 2.6.0+dfsg-9
Distribution: unstable
Urgency: medium
Maintainer: Debian Deep Learning Team <debian-ai@lists.debian.org>
Changed-By: Shengqi Chen <harry@debian.org>
Closes: 1113436
Changes:
 pytorch (2.6.0+dfsg-9) unstable; urgency=medium
 .
   * d/patches:
     + backport patch from upstream to support building with CMake 4.
     (closes: #1113436)
     + backport patch to support gloo API changes.
Checksums-Sha1:
 541a2a8e9aef90b2d273ac3b8d750f5af2f29019 3621 pytorch_2.6.0+dfsg-9.dsc
 730393269d64d1fcd572b59b9616f5558936106c 219164 pytorch_2.6.0+dfsg-9.debian.tar.xz
 3b149869a057c68ab14bf6dc9d998d59a3d73ebc 14937 pytorch_2.6.0+dfsg-9_amd64.buildinfo
Checksums-Sha256:
 70eb25eebbd272586a9c84d13dd10abb02298d012876a3a1ca30d7089e0f0ccf 3621 pytorch_2.6.0+dfsg-9.dsc
 5ac33bc048621d9b822bd8a670f421513932c06f05183f636d8bd3acd5ed74b8 219164 pytorch_2.6.0+dfsg-9.debian.tar.xz
 a8531fe8624713663dc0a7355bcc06f013491a8d77fdc48ddb86fa7410891d41 14937 pytorch_2.6.0+dfsg-9_amd64.buildinfo
Files:
 a7b16c51f7b3d986bfe6d1a9c8121440 3621 science optional pytorch_2.6.0+dfsg-9.dsc
 789aeef32ea6304c6c5a6ff3e3a80505 219164 science optional pytorch_2.6.0+dfsg-9.debian.tar.xz
 160fb68077feed5684c651f709b90e5b 14937 science optional pytorch_2.6.0+dfsg-9_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE+Fg++qmpHzqjSzySzhGnsHs6uUYFAmjL+mwACgkQzhGnsHs6
uUag4A/+P1EycxgIXFATmmNb+O20JCfMLUPe88Xex7J8v05zVCIpv4S/c1deJyfn
I84pgvGcrybmw6lI2Azy5XafkrQbrkibzdiMl0P+JpYQ8PbdU5L9Mvis1P10Uu1X
7Uk9yR0xQhI+4iPfdAdorCZ5xaJYerKPW6EHR0jNlgOocPGxNUGaCjn8orXvLd39
UUJfiGLjmP4ggkFZRaWts3vAqAI2OHAwsSpdsN+lTYfyCIIcGychdwCfmw+FP7ch
BO6fOCs4mVn8PjZhxJntykLjzvP/OMPCC+QnFl5eZ5jIAWFDkvVbjzMV49ZbOQS+
8pm7gYVXvO1o7iFo5XLb94GCWvG2jVbOmZFdbyJGwtim4Noh5aOWGp435YUl3rAj
xjOdEDZq6qMMhoJwb0vFH9UjrETFXXSHX7b+Rbkh32rPFfX9LH8+yawEcxLnTFRb
RB4sKNuoPQg7CzjBoiwhu1U72hgcc/ThmP39zUbwlV/bSni3r1geEBl857QGjACl
BpOfsKa2gcyOAUEMWDvWjGFObfDbdf2YASrQ63VNLuWddYvkigYCXxcIqwZWjeTy
kjzPEHk+5Xzbl9vDlTy5RwgQuHcBv7/X9MeTtxSHDRJkqZwh5P1GRsgfYkSHbSCR
qJ1qmLGZ+WWang4mkStQnDviBUU+xl7CConmrcr9Wzfh+v8zia4=
=azlu
-----END PGP SIGNATURE-----

Attachment: pgpIJEebTblZF.pgp
Description: PGP signature


--- End Message ---

Reply to: