Package: src:ffmpeg Version: 7:4.4.2-1 Severity: minor Tags: sid bookworm User: [email protected] Usertags: ftbfs-lto
This package currently fails to build (at least on the amd64 architecture) with link time optimizations enabled. For a background for LTO please see https://wiki.debian.org/ToolChain/LTO The goal is to enable this optimization by default in an upcoming Debian release in dpkg-buildflags for 64bit architectures. The goal is to get this package to build with link time optimizations, or to explicitly disable link time optimizations for this package build. To reproduce the build failure, enable the lto optimization in testing/unstable by adding "optimize=+lto" to DEB_BUILD_MAINT_OPTIONS in the debian/rules file, or if this macro is unset, just set it: export DEB_BUILD_MAINT_OPTIONS = optimize=+lto Please try to fix the build with lto enabled, fixing the packaging or forwarding the issue upstream. If the issue cannot be fixed, explicitly disallow building the package with lto by adding to your rules file: export DEB_BUILD_MAINT_OPTIONS = optimize=-lto or adding that string to your existing setting of DEB_BUILD_MAINT_OPTIONS. The full build log can be found at: http://qa-logs.debian.net/2022/06/09/dpkglto/ffmpeg_4.4.2-1_unstable_dpkglto.log The last lines of the build log are at the end of this report. [...] perl /<<PKGBUILDDIR>>/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc /<<PKGBUILDDIR>>/doc/ffmpeg-bitstream-filters.texi doc/ffmpeg-bitstream-filters.pod perl /<<PKGBUILDDIR>>/doc/texidep.pl /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/doc/ffmpeg-formats.texi doc/ffmpeg-formats.pod >doc/ffmpeg-formats.pod.d perl /<<PKGBUILDDIR>>/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc /<<PKGBUILDDIR>>/doc/ffmpeg-formats.texi doc/ffmpeg-formats.pod perl /<<PKGBUILDDIR>>/doc/texidep.pl /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/doc/ffmpeg-protocols.texi doc/ffmpeg-protocols.pod >doc/ffmpeg-protocols.pod.d perl /<<PKGBUILDDIR>>/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc /<<PKGBUILDDIR>>/doc/ffmpeg-protocols.texi doc/ffmpeg-protocols.pod perl /<<PKGBUILDDIR>>/doc/texidep.pl /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/doc/ffmpeg-devices.texi doc/ffmpeg-devices.pod >doc/ffmpeg-devices.pod.d perl /<<PKGBUILDDIR>>/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc /<<PKGBUILDDIR>>/doc/ffmpeg-devices.texi doc/ffmpeg-devices.pod perl /<<PKGBUILDDIR>>/doc/texidep.pl /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/doc/ffmpeg-filters.texi doc/ffmpeg-filters.pod >doc/ffmpeg-filters.pod.d perl /<<PKGBUILDDIR>>/doc/texidep.pl /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/doc/libavutil.texi doc/libavutil.pod >doc/libavutil.pod.d perl /<<PKGBUILDDIR>>/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc /<<PKGBUILDDIR>>/doc/libavutil.texi doc/libavutil.pod perl /<<PKGBUILDDIR>>/doc/texidep.pl /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/doc/libswscale.texi doc/libswscale.pod >doc/libswscale.pod.d perl /<<PKGBUILDDIR>>/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc /<<PKGBUILDDIR>>/doc/ffmpeg-filters.texi doc/ffmpeg-filters.pod perl /<<PKGBUILDDIR>>/doc/texidep.pl /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/doc/libswresample.texi doc/libswresample.pod >doc/libswresample.pod.d perl /<<PKGBUILDDIR>>/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc /<<PKGBUILDDIR>>/doc/libswscale.texi doc/libswscale.pod perl /<<PKGBUILDDIR>>/doc/texidep.pl /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/doc/libavcodec.texi doc/libavcodec.pod >doc/libavcodec.pod.d perl /<<PKGBUILDDIR>>/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc /<<PKGBUILDDIR>>/doc/libswresample.texi doc/libswresample.pod perl /<<PKGBUILDDIR>>/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc /<<PKGBUILDDIR>>/doc/libavcodec.texi doc/libavcodec.pod perl /<<PKGBUILDDIR>>/doc/texidep.pl /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/doc/libavformat.texi doc/libavformat.pod >doc/libavformat.pod.d perl /<<PKGBUILDDIR>>/doc/texidep.pl /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/doc/libavdevice.texi doc/libavdevice.pod >doc/libavdevice.pod.d perl /<<PKGBUILDDIR>>/doc/texidep.pl /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/doc/libavfilter.texi doc/libavfilter.pod >doc/libavfilter.pod.d perl /<<PKGBUILDDIR>>/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc /<<PKGBUILDDIR>>/doc/libavformat.texi doc/libavformat.pod pod2man --section=1 --center=" " --release=" " --date=" " doc/ffmpeg.pod > doc/ffmpeg.1 perl /<<PKGBUILDDIR>>/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc /<<PKGBUILDDIR>>/doc/libavdevice.texi doc/libavdevice.pod perl /<<PKGBUILDDIR>>/doc/texi2pod.pl -Dconfig-not-all=yes -Idoc /<<PKGBUILDDIR>>/doc/libavfilter.texi doc/libavfilter.pod pod2man --section=1 --center=" " --release=" " --date=" " doc/ffplay.pod > doc/ffplay.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffprobe.pod > doc/ffprobe.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffmpeg-all.pod > doc/ffmpeg-all.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffplay-all.pod > doc/ffplay-all.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffprobe-all.pod > doc/ffprobe-all.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffmpeg-utils.pod > doc/ffmpeg-utils.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffmpeg-scaler.pod > doc/ffmpeg-scaler.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffmpeg-resampler.pod > doc/ffmpeg-resampler.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffmpeg-codecs.pod > doc/ffmpeg-codecs.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffmpeg-bitstream-filters.pod > doc/ffmpeg-bitstream-filters.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffmpeg-formats.pod > doc/ffmpeg-formats.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffmpeg-protocols.pod > doc/ffmpeg-protocols.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffmpeg-devices.pod > doc/ffmpeg-devices.1 pod2man --section=1 --center=" " --release=" " --date=" " doc/ffmpeg-filters.pod > doc/ffmpeg-filters.1 pod2man --section=3 --center=" " --release=" " --date=" " doc/libavutil.pod > doc/libavutil.3 pod2man --section=3 --center=" " --release=" " --date=" " doc/libswscale.pod > doc/libswscale.3 pod2man --section=3 --center=" " --release=" " --date=" " doc/libswresample.pod > doc/libswresample.3 pod2man --section=3 --center=" " --release=" " --date=" " doc/libavcodec.pod > doc/libavcodec.3 pod2man --section=3 --center=" " --release=" " --date=" " doc/libavformat.pod > doc/libavformat.3 pod2man --section=3 --center=" " --release=" " --date=" " doc/libavdevice.pod > doc/libavdevice.3 pod2man --section=3 --center=" " --release=" " --date=" " doc/libavfilter.pod > doc/libavfilter.3 cd ./libavutil/ && ln -s -f libavutil.so.56 libavutil.so gcc -shared -Wl,-soname,libswscale.so.5 -Wl,-Bsymbolic -Wl,--version-script,libswscale/libswscale.ver -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common -Wl,-rpath-link=:libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample -o libswscale/libswscale.so.5 libswscale/alphablend.o libswscale/gamma.o libswscale/hscale.o libswscale/hscale_fast_bilinear.o libswscale/input.o libswscale/log2_tab.o libswscale/options.o libswscale/output.o libswscale/rgb2rgb.o libswscale/slice.o libswscale/swscale.o libswscale/swscale_unscaled.o libswscale/utils.o libswscale/vscale.o libswscale/x86/hscale_fast_bilinear_simd.o libswscale/x86/input.o libswscale/x86/output.o libswscale/x86/rgb2rgb.o libswscale/x86/rgb_2_rgb.o libswscale/x86/scale.o libswscale/x86/swsca le.o libswscale/x86/yuv2rgb.o libswscale/x86/yuv2yuvX.o libswscale/x86/yuv_2_rgb.o libswscale/yuv2rgb.o -lavutil -lm -pthread -lva-drm -lva -lva-x11 -lva -lvdpau -lX11 -lm -ldrm -lmfx -lstdc++ -ldl -lOpenCL -lva -lXv -lX11 -lXext -ldl gcc -shared -Wl,-soname,libpostproc.so.55 -Wl,-Bsymbolic -Wl,--version-script,libpostproc/libpostproc.ver -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common -Wl,-rpath-link=:libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample -o libpostproc/libpostproc.so.55 libpostproc/postprocess.o -lavutil -lavutil -lm -pthread -lva-drm -lva -lva-x11 -lva -lvdpau -lX11 -lm -ldrm -lmfx -lstdc++ -ldl -lOpenCL -lva -lXv -lX11 -lXext -ldl -pthread -lva-drm -lva -lva-x11 -lva -lvdpau -lX11 -lm -ldrm -lmfx -lstdc++ -ldl -lOpenCL -lva -lXv -lX11 -lXext -ldl gcc -shared -Wl,-soname,libswresample.so.3 -Wl,-Bsymbolic -Wl,--version-script,libswresample/libswresample.ver -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common -Wl,-rpath-link=:libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample -o libswresample/libswresample.so.3 libswresample/audioconvert.o libswresample/dither.o libswresample/log2_tab.o libswresample/options.o libswresample/rematrix.o libswresample/resample.o libswresample/resample_dsp.o libswresample/soxr_resample.o libswresample/swresample.o libswresample/swresample_frame.o libswresample/x86/audio_convert.o libswresample/x86/audio_convert_init.o libswresample/x86/rematrix.o libswresample/x86/rematrix_init.o libswresample/x86/resample.o libswresample/x86/resample_init.o -lavutil - lavutil -lm -lsoxr -pthread -lva-drm -lva -lva-x11 -lva -lvdpau -lX11 -lm -ldrm -lmfx -lstdc++ -ldl -lOpenCL -lva -lXv -lX11 -lXext -ldl -pthread -lva-drm -lva -lva-x11 -lva -lvdpau -lX11 -lm -ldrm -lmfx -lstdc++ -ldl -lOpenCL -lva -lXv -lX11 -lXext -ldl cd ./libswresample/ && ln -s -f libswresample.so.3 libswresample.so /usr/bin/ld: /tmp/cchSrCsJ.ltrans9.ltrans.o: warning: relocation against `mul15_hi' in read-only section `.text' /usr/bin/ld: /tmp/cchSrCsJ.ltrans9.ltrans.o: relocation R_X86_64_PC32 against undefined symbol `mask24l' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make[2]: *** [/<<PKGBUILDDIR>>/ffbuild/library.mak:103: libswscale/libswscale.so.5] Error 1 make[2]: *** Waiting for unfinished jobs.... /usr/bin/ld: /tmp/ccqqvOdg.ltrans0.ltrans.o: warning: relocation against `w04' in read-only section `.text' /usr/bin/ld: /tmp/ccqqvOdg.ltrans0.ltrans.o: relocation R_X86_64_PC32 against undefined symbol `w05' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make[2]: *** [/<<PKGBUILDDIR>>/ffbuild/library.mak:103: libpostproc/libpostproc.so.55] Error 1 echo skipping strip -x libavcodec/x86/vp9itxfm.o skipping strip -x libavcodec/x86/vp9itxfm.o make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/standard' dh_auto_build: error: cd debian/standard && make -j8 "INSTALL=install --strip-program=true" returned exit code 2 cat: debian/standard/config.log: No such file or directory make[1]: *** [debian/rules:264: build_standard] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:218: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

