Source: pytorch-vision
Version: 0.15.2-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramac...@debian.org

https://buildd.debian.org/status/fetch.php?pkg=pytorch-vision&arch=amd64&ver=0.15.2-1%2Bb1&stamp=1709983857&raw=0

[2/16] c++ -MMD -MF 
/<<PKGBUILDDIR>>/build/temp.linux-x86_64-cpython-311/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/seekable_buffer.o.d
 -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g 
-O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
-I/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder 
-I/<<PKGBUILDDIR>>/torchvision/csrc/io/video_reader 
-I/<<PKGBUILDDIR>>/torchvision/csrc/io/video 
-I/<<PKGBUILDDIR>>/torchvision/csrc -I/usr/include 
-I/usr/include/x86_64-linux-gnu -I/<<PKGBUILDDIR>>/torchvision/csrc 
-I/usr/lib/python3/dist-packages/torch/include 
-I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include 
-I/usr/lib/python3/dist-packages/torch/include/TH 
-I/usr/lib/python3/dist-packages/torch/include/THC 
-I/usr/lib/python3/dist-packages/torch/include 
-I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include 
-I/usr/lib/python3/dist-packages/torch/include/TH 
-I/usr/lib/python3/dist-packages/torch/include/THC -I/usr/include/python3.11 -c 
-c /<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/seekable_buffer.cpp -o 
/<<PKGBUILDDIR>>/build/temp.linux-x86_64-cpython-311/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/seekable_buffer.o
 -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' 
'-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1018"' 
-DTORCH_EXTENSION_NAME=video_reader -D_GLIBCXX_USE_CXX11_ABI=1
FAILED: 
/<<PKGBUILDDIR>>/build/temp.linux-x86_64-cpython-311/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/seekable_buffer.o
 
c++ -MMD -MF 
/<<PKGBUILDDIR>>/build/temp.linux-x86_64-cpython-311/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/seekable_buffer.o.d
 -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g 
-O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
-I/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder 
-I/<<PKGBUILDDIR>>/torchvision/csrc/io/video_reader 
-I/<<PKGBUILDDIR>>/torchvision/csrc/io/video 
-I/<<PKGBUILDDIR>>/torchvision/csrc -I/usr/include 
-I/usr/include/x86_64-linux-gnu -I/<<PKGBUILDDIR>>/torchvision/csrc 
-I/usr/lib/python3/dist-packages/torch/include 
-I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include 
-I/usr/lib/python3/dist-packages/torch/include/TH 
-I/usr/lib/python3/dist-packages/torch/include/THC 
-I/usr/lib/python3/dist-packages/torch/include 
-I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include 
-I/usr/lib/python3/dist-packages/torch/include/TH 
-I/usr/lib/python3/dist-packages/torch/include/THC -I/usr/include/python3.11 -c 
-c /<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/seekable_buffer.cpp -o 
/<<PKGBUILDDIR>>/build/temp.linux-x86_64-cpython-311/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/seekable_buffer.o
 -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' 
'-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1018"' 
-DTORCH_EXTENSION_NAME=video_reader -D_GLIBCXX_USE_CXX11_ABI=1
In file included from 
/usr/lib/python3/dist-packages/torch/include/c10/util/string_view.h:4,
                 from 
/usr/lib/python3/dist-packages/torch/include/c10/util/StringUtil.h:6,
                 from 
/usr/lib/python3/dist-packages/torch/include/c10/util/Exception.h:5,
                 from 
/usr/lib/python3/dist-packages/torch/include/c10/util/Logging.h:11,
                 from 
/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/seekable_buffer.cpp:2:
/usr/lib/python3/dist-packages/torch/include/c10/util/C++17.h:27:2: error: 
#error You need C++17 to compile PyTorch
   27 | #error You need C++17 to compile PyTorch
      |  ^~~~~
/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/seekable_buffer.cpp: In member 
function ‘bool ffmpeg::SeekableBuffer::readBytes(ffmpeg::DecoderInCallback&, 
size_t, uint64_t)’:
/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/seekable_buffer.cpp:69:24: 
warning: comparison of integer expressions of different signedness: ‘long int’ 
and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
   69 |   while (!eof_ && end_ < maxBytes && (hasTime = watcher())) {
      |                   ~~~~~^~~~~~~~~~
/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/seekable_buffer.cpp:74:16: 
warning: comparison of integer expressions of different signedness: ‘long int’ 
and ‘std::vector<unsigned char>::size_type’ {aka ‘long unsigned int’} 
[-Wsign-compare]
   74 |       if (end_ == buffer_.size()) {
      |           ~~~~~^~~~~~~~~~~~~~~~~
[3/16] c++ -MMD -MF 
/<<PKGBUILDDIR>>/build/temp.linux-x86_64-cpython-311/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/stream.o.d
 -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g 
-O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
-I/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder 
-I/<<PKGBUILDDIR>>/torchvision/csrc/io/video_reader 
-I/<<PKGBUILDDIR>>/torchvision/csrc/io/video 
-I/<<PKGBUILDDIR>>/torchvision/csrc -I/usr/include 
-I/usr/include/x86_64-linux-gnu -I/<<PKGBUILDDIR>>/torchvision/csrc 
-I/usr/lib/python3/dist-packages/torch/include 
-I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include 
-I/usr/lib/python3/dist-packages/torch/include/TH 
-I/usr/lib/python3/dist-packages/torch/include/THC 
-I/usr/lib/python3/dist-packages/torch/include 
-I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include 
-I/usr/lib/python3/dist-packages/torch/include/TH 
-I/usr/lib/python3/dist-packages/torch/include/THC -I/usr/include/python3.11 -c 
-c /<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/stream.cpp -o 
/<<PKGBUILDDIR>>/build/temp.linux-x86_64-cpython-311/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/stream.o
 -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' 
'-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1018"' 
-DTORCH_EXTENSION_NAME=video_reader -D_GLIBCXX_USE_CXX11_ABI=1
FAILED: 
/<<PKGBUILDDIR>>/build/temp.linux-x86_64-cpython-311/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/stream.o
 
c++ -MMD -MF 
/<<PKGBUILDDIR>>/build/temp.linux-x86_64-cpython-311/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/stream.o.d
 -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g 
-O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -fcf-protection 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
-I/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder 
-I/<<PKGBUILDDIR>>/torchvision/csrc/io/video_reader 
-I/<<PKGBUILDDIR>>/torchvision/csrc/io/video 
-I/<<PKGBUILDDIR>>/torchvision/csrc -I/usr/include 
-I/usr/include/x86_64-linux-gnu -I/<<PKGBUILDDIR>>/torchvision/csrc 
-I/usr/lib/python3/dist-packages/torch/include 
-I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include 
-I/usr/lib/python3/dist-packages/torch/include/TH 
-I/usr/lib/python3/dist-packages/torch/include/THC 
-I/usr/lib/python3/dist-packages/torch/include 
-I/usr/lib/python3/dist-packages/torch/include/torch/csrc/api/include 
-I/usr/lib/python3/dist-packages/torch/include/TH 
-I/usr/lib/python3/dist-packages/torch/include/THC -I/usr/include/python3.11 -c 
-c /<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/stream.cpp -o 
/<<PKGBUILDDIR>>/build/temp.linux-x86_64-cpython-311/<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/stream.o
 -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' 
'-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1018"' 
-DTORCH_EXTENSION_NAME=video_reader -D_GLIBCXX_USE_CXX11_ABI=1
In file included from 
/usr/lib/python3/dist-packages/torch/include/c10/util/string_view.h:4,
                 from 
/usr/lib/python3/dist-packages/torch/include/c10/util/StringUtil.h:6,
                 from 
/usr/lib/python3/dist-packages/torch/include/c10/util/Exception.h:5,
                 from 
/usr/lib/python3/dist-packages/torch/include/c10/util/Logging.h:11,
                 from /<<PKGBUILDDIR>>/torchvision/csrc/io/decoder/stream.cpp:2:
/usr/lib/python3/dist-packages/torch/include/c10/util/C++17.h:27:2: error: 
#error You need C++17 to compile PyTorch
   27 | #error You need C++17 to compile PyTorch
      |  ^~~~~

Cheers
-- 
Sebastian Ramacher

Reply via email to