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

Bug#1113436: pytorch: FTBFS with CMake 4



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


Reply to: