[33/1031] /usr/bin/x86_64-pc-linux-gnu-g++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_USE_PACKAGED -DQT_CORE_LIB -DQT_GUI_LIB -DQT_IMPLICIT_QCHAR_CONSTRUCTION -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_SVG_LIB -DQT_WAYLANDCLIENT_LIB -DQT_WIDGETS_LIB -DQT_XKBCOMMON_SUPPORT_LIB -D _FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -I/var/tmp/portage/net-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/SourceFiles -I/var/tmp/portage/net-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/lib_base -I/var/tmp/portage/net-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/lib_rpl -I/var/tmp/portage/n et-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/lib_crl -isystem /usr/include/qt5/QtCore/5.15.2 -isystem /usr/include/qt5/QtCore/5.15.2/QtCore -isystem /usr/include/qt5/QtGui/5.15.2 -isystem /usr/include/qt5/QtGui/5.15.2/QtGui -isystem /usr/include/qt5/QtWidgets/5.15.2 -isystem /usr/include/qt5/QtWidgets/5.15.2/QtWidgets -isyst em /usr/include/qt5/QtXkbCommonSupport/5.15.2 -isystem /usr/include/qt5/QtXkbCommonSupport/5.15.2/QtXkbCommonSupport -isystem /usr/include/qt5/QtWaylandClient/5.15.2 -isystem /usr/include/qt5/QtWaylandClient/5.15.2/QtWaylandClient -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/i nclude/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtXkbCommonSupport -isystem /usr/include/qt5/QtWaylandClient -isystem /var/tmp/portage/net-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/ThirdParty/expected/include -isystem /usr/incl ude/giomm-2.4 -isystem /usr/lib64/giomm-2.4/include -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/sysprof-4 -isystem /usr/lib64/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/glibmm-2.4 -isystem /usr/lib64/glibmm-2.4/include -isystem /usr/include/sigc++- 2.0 -isystem /usr/lib64/sigc++-2.0/include -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/KF5/KWayland -isystem /usr/include/KF5/KWayland/Client -isystem /usr/include/KF5 -O2 -march=znver3 -pipe -g -ggdb3 -fstack-protector-all -fstack-clash-protection -fPIC -fno-strict-aliasing -pipe -Wall -W -Wno-unused-parameter -Wno-switch -Wno-mis sing-field-initializers -Wno-sign-compare -Wno-deprecated -Wno-maybe-uninitialized -pthread -std=gnu++20 -MD -MT Telegram/CMakeFiles/lib_ffmpeg.dir/SourceFiles/ffmpeg/ffmpeg_utility.cpp.o -MF Telegram/CMakeFiles/lib_ffmpeg.dir/SourceFiles/ffmpeg/ffmpeg_utility.cpp.o.d -o Telegram/CMakeFiles/lib_ffmpeg.dir/SourceFiles/ffmpeg/ffmpeg_utility.cpp.o -c /var/tmp/portage/net-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp FAILED: Telegram/CMakeFiles/lib_ffmpeg.dir/SourceFiles/ffmpeg/ffmpeg_utility.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_USE_PACKAGED -DQT_CORE_LIB -DQT_GUI_LIB -DQT_IMPLICIT_QCHAR_CONSTRUCTION -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_SVG_LIB -DQT_WAYLANDCLIENT_LIB -DQT_WIDGETS_LIB -DQT_XKBCOMMON_SUPPORT_LIB -D_FORTIFY_S OURCE=2 -D_GLIBCXX_ASSERTIONS -I/var/tmp/portage/net-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/SourceFiles -I/var/tmp/portage/net-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/lib_base -I/var/tmp/portage/net-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/lib_rpl -I/var/tmp/portage/net-im/tele gram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/lib_crl -isystem /usr/include/qt5/QtCore/5.15.2 -isystem /usr/include/qt5/QtCore/5.15.2/QtCore -isystem /usr/include/qt5/QtGui/5.15.2 -isystem /usr/include/qt5/QtGui/5.15.2/QtGui -isystem /usr/include/qt5/QtWidgets/5.15.2 -isystem /usr/include/qt5/QtWidgets/5.15.2/QtWidgets -isystem /usr/in clude/qt5/QtXkbCommonSupport/5.15.2 -isystem /usr/include/qt5/QtXkbCommonSupport/5.15.2/QtXkbCommonSupport -isystem /usr/include/qt5/QtWaylandClient/5.15.2 -isystem /usr/include/qt5/QtWaylandClient/5.15.2/QtWaylandClient -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5 /QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtXkbCommonSupport -isystem /usr/include/qt5/QtWaylandClient -isystem /var/tmp/portage/net-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/ThirdParty/expected/include -isystem /usr/include/giomm- 2.4 -isystem /usr/lib64/giomm-2.4/include -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/sysprof-4 -isystem /usr/lib64/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/glibmm-2.4 -isystem /usr/lib64/glibmm-2.4/include -isystem /usr/include/sigc++-2.0 -isyst em /usr/lib64/sigc++-2.0/include -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/KF5/KWayland -isystem /usr/include/KF5/KWayland/Client -isystem /usr/include/KF5 -O2 -march=znver3 -pipe -g -ggdb3 -fstack-protector-all -fstack-clash-protection -fPIC -fno-strict-aliasing -pipe -Wall -W -Wno-unused-parameter -Wno-switch -Wno-missing-field -initializers -Wno-sign-compare -Wno-deprecated -Wno-maybe-uninitialized -pthread -std=gnu++20 -MD -MT Telegram/CMakeFiles/lib_ffmpeg.dir/SourceFiles/ffmpeg/ffmpeg_utility.cpp.o -MF Telegram/CMakeFiles/lib_ffmpeg.dir/SourceFiles/ffmpeg/ffmpeg_utility.cpp.o.d -o Telegram/CMakeFiles/lib_ffmpeg.dir/SourceFiles/ffmpeg/ffmpeg_utility.cpp.o -c /var/tm p/portage/net-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp /var/tmp/portage/net-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp: In function ‘AVCodec* FFmpeg::FindDecoder(gsl::not_null<AVCodecContext*>)’: /var/tmp/portage/net-im/telegram-desktop-3.5.2-r1/work/tdesktop-3.5.2-full/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp:160:17: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] 159 | return (context->codec_id == AV_CODEC_ID_VP9) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 160 | ? avcodec_find_decoder_by_name("libvpx-vp9") | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | const AVCodec* 161 | : avcodec_find_decoder(context->codec_id); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reproducible: Always
Created attachment 766097 [details] build.log.gz
Created attachment 766098 [details] emerge-info.txt
Compiles fine with ffmpeg-4.4.1
https://i.imgur.com/dPSC4y2.jpg (Don't mind me if I take a bit to get to this, I'm a bit busy)
I forgot to update or reference this bug, but this was fixed with 3.6.0: https://github.com/gentoo/gentoo/commit/48b4072b8670dde327bc2c4fd813c6cf80c6968b Now I'm just waiting for the natural course of deprecation of older versions to take care of the rest.
Created attachment 770201 [details, diff] ffmpeg-v5.0.patch I didn't misspell the patch, Debian did. If you want to push an -r2 of this version that builds, this should get you there.
I'd rather stabilize 3.6.1, it's nearly a month old by now. Thanks, anyway!
Stabilized in: https://github.com/gentoo/gentoo/commit/56598678e2518042a5c832612a01ba376f5eadd6