Source: pytorch Version: 1.8.1-3 Severity: important X-Debbugs-Cc: sramacher@debian.org pytorch FTBFS with ffmpeg 5.0 in experimental: /usr/lib/ccache/c++ -DGFLAGS_IS_A_DLL=0 -DGOOGLE_GLOG_DLL_DECL="" -DGOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS="" -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx -DUSE_DISTRIBUTED -DUSE_EXTERNAL_MZCRC -DUSE_RPC -DUSE_TENSORPIPE -D_FILE_OFFSET_BITS=64 -Dtorch_cpu_EXPORTS -I/<<PKGBUILDDIR>>/build/aten/src -I/<<PKGBUILDDIR>>/aten/src -I/<<PKGBUILDDIR>>/build -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/cmake/../third_party/benchmark/include -I/<<PKGBUILDDIR>>/build/caffe2/contrib/aten -I/<<PKGBUILDDIR>>/debian/foxi -I/<<PKGBUILDDIR>>/build/debian/foxi -I/<<PKGBUILDDIR>>/torch/csrc/api -I/<<PKGBUILDDIR>>/torch/csrc/api/include -I/<<PKGBUILDDIR>>/caffe2/aten/src/TH -I/<<PKGBUILDDIR>>/build/caffe2/aten/src/TH -I/<<PKGBUILDDIR>>/build/caffe2/aten/src -I/<<PKGBUILDDIR>>/build/caffe2/../aten/src -I/<<PKGBUILDDIR>>/build/caffe2/../aten/src/ATen -I/<<PKGBUILDDIR>>/torch/csrc -I/<<PKGBUILDDIR>>/third_party/miniz-2.0.8 -I/<<PKGBUILDDIR>>/aten/src/TH -I/<<PKGBUILDDIR>>/aten/../third_party/catch/single_include -I/<<PKGBUILDDIR>>/aten/src/ATen/.. -I/<<PKGBUILDDIR>>/build/caffe2/aten/src/ATen -I/<<PKGBUILDDIR>>/caffe2/core/nomnigraph/include -I/<<PKGBUILDDIR>>/c10/.. -I/<<PKGBUILDDIR>>/aten/src/ATen/native/quantized/cpu/qnnpack/include -I/<<PKGBUILDDIR>>/aten/src/ATen/native/quantized/cpu/qnnpack/src -I/<<PKGBUILDDIR>>/aten/src/ATen/native/quantized/cpu/qnnpack/deps/clog/include -isystem /<<PKGBUILDDIR>>/build/third_party/gloo -isystem /<<PKGBUILDDIR>>/cmake/../third_party/gloo -isystem /<<PKGBUILDDIR>>/cmake/../third_party/googletest/googlemock/include -isystem /<<PKGBUILDDIR>>/cmake/../third_party/googletest/googletest/include -isystem /usr/include/opencv4 -isystem /usr/include/eigen3 -isystem /usr/include/python3.9 -isystem /usr/lib/python3/dist-packages/numpy/core/include -isystem /usr/lib/python3/dist-packages/pybind11/include -isystem /<<PKGBUILDDIR>>/caffe2 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -gsplit-dwarf -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -Wno-stringop-overflow -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION -O2 -g -DNDEBUG -fPIC -DCAFFE2_USE_GLOO -DHAVE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-write-strings -Wno-unknown-pragmas -Wno-missing-braces -Wno-maybe-uninitialized -fvisibility=hidden -O2 -fopenmp -DCAFFE2_BUILD_MAIN_LIB -pthread -std=gnu++14 -MD -MT caffe2/CMakeFiles/torch_cpu.dir/video/video_decoder.cc.o -MF caffe2/CMakeFiles/torch_cpu.dir/video/video_decoder.cc.o.d -o caffe2/CMakeFiles/torch_cpu.dir/video/video_decoder.cc.o -c /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc: In constructor ‘caffe2::VideoDecoder::VideoDecoder()’: /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:15:5: error: ‘av_register_all’ was not declared in this scope 15 | av_register_all(); | ^~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:16:5: error: ‘avcodec_register_all’ was not declared in this scope 16 | avcodec_register_all(); | ^~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc: In member function ‘void caffe2::VideoDecoder::getAudioSample(AVPacket&, AVCodecContext*, AVFrame*, SwrContext*, caffe2::Callback&, const caffe2::Params&)’: /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:30:17: error: ‘avcodec_decode_audio4’ was not declared in this scope; did you mean ‘avcodec_decode_subtitle2’? 30 | auto result = avcodec_decode_audio4( | ^~~~~~~~~~~~~~~~~~~~~ | avcodec_decode_subtitle2 /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc: In member function ‘void caffe2::VideoDecoder::decodeLoop(const string&, caffe2::VideoIOContext&, const caffe2::Params&, int, caffe2::Callback&)’: /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:137:17: warning: ‘void av_init_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations] 137 | av_init_packet(&packet); // init packet | ~~~~~~~~~~~~~~^~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:45, from /<<PKGBUILDDIR>>/caffe2/video/video_decoder.h:11, from /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:1: /usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here 506 | void av_init_packet(AVPacket *pkt); | ^~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:188:21: error: ‘struct AVStream’ has no member named ‘codec’ 188 | if (stream->codec->codec_type == AVMEDIA_TYPE_VIDEO && | ^~~~~ /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:193:21: error: ‘struct AVStream’ has no member named ‘codec’ 193 | stream->codec->codec_type == AVMEDIA_TYPE_AUDIO && | ^~~~~ /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:210:40: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’ 210 | videoCodecContext_ = videoStream_->codec; | ^~~~~ /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:229:70: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’ 229 | audioCodecContext_ = inputContext->streams[audioStreamIndex_]->codec; | ^~~~~ /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:455:13: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’? 455 | av_free_packet(&packet); | ^~~~~~~~~~~~~~ | av_new_packet /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:460:13: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’? 460 | av_free_packet(&packet); | ^~~~~~~~~~~~~~ | av_new_packet /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:486:13: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’? 486 | av_free_packet(&packet); | ^~~~~~~~~~~~~~ | av_new_packet /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:491:15: error: ‘avcodec_decode_video2’ was not declared in this scope; did you mean ‘avcodec_decode_subtitle2’? 491 | ret = avcodec_decode_video2( | ^~~~~~~~~~~~~~~~~~~~~ | avcodec_decode_subtitle2 /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:500:13: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’? 500 | av_free_packet(&packet); | ^~~~~~~~~~~~~~ | av_new_packet /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:506:15: error: ‘av_frame_get_best_effort_timestamp’ was not declared in this scope 506 | av_frame_get_best_effort_timestamp(videoStreamFrame_); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:537:17: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’? 537 | av_free_packet(&packet); | ^~~~~~~~~~~~~~ | av_new_packet /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:563:17: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’? 563 | av_free_packet(&packet); | ^~~~~~~~~~~~~~ | av_new_packet /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:574:15: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’? 574 | av_free_packet(&packet); | ^~~~~~~~~~~~~~ | av_new_packet /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:586:30: error: ‘avpicture_get_size’ was not declared in this scope 586 | int numBytes = avpicture_get_size(pixFormat, outWidth, outHeight); | ^~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:591:20: error: ‘AVPicture’ was not declared in this scope; did you mean ‘gotPicture’? 591 | (AVPicture*)rgbFrame, | ^~~~~~~~~ | gotPicture /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:591:30: error: expected primary-expression before ‘)’ token 591 | (AVPicture*)rgbFrame, | ^ /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:590:26: error: ‘avpicture_fill’ was not declared in this scope 590 | int size = avpicture_fill( | ^~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:631:9: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’? 631 | av_free_packet(&packet); | ^~~~~~~~~~~~~~ | av_new_packet /<<PKGBUILDDIR>>/caffe2/video/video_decoder.cc:633:9: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’? 633 | av_free_packet(&packet); | ^~~~~~~~~~~~~~ | av_new_packet Cheers -- Sebastian Ramacher
Attachment:
signature.asc
Description: PGP signature