[1057/1183] /usr/bin/x86_64-pc-linux-gnu-g++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION -DDESKTOP_APP_USE_PACKAGED -DG_LOG_DOMAIN=\"Telegram\" -DKCOREADDONS_LIB -DLOTTIE_USE_CACHE -DLOT_BUILD -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_IMPLICIT_QCHAR_CONSTRUCTION -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c -DTDESKTOP_API_ID=611335 -DTDESKTOP_DISABLE_AUTOUPDATE -DTGCALLS_USE_STD_OPTIONAL -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full_build/Telegram/Telegram_autogen/include -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/SourceFiles -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full_build/Telegram/gen -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_spellcheck -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/ThirdParty/tgcalls -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_base -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_rpl -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_crl -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_tl -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full_build/Telegram/lib_ui/gen -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_ui -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_ui/emoji_suggestions -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_lottie -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_webrtc -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_storage -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_qr -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/ThirdParty/QR/cpp -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_webview -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/SourceFiles/payments -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/ThirdParty/rlottie/inc -isystem /usr/include/tgvoip -isystem /usr/include/opus -isystem /usr/include/minizip -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtCore/5.15.7 -isystem /usr/include/qt5/QtCore/5.15.7/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtGui/5.15.7 -isystem /usr/include/qt5/QtGui/5.15.7/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWidgets/5.15.7 -isystem /usr/include/qt5/QtWidgets/5.15.7/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQmlModels -isystem /usr/include/qt5/QtQuickWidgets -isystem /var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/ThirdParty/expected/include -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/giomm-2.68 -isystem /usr/lib64/giomm-2.68/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/uuid -isystem /usr/include/json-c -isystem /usr/include/glibmm-2.68 -isystem /usr/lib64/glibmm-2.68/include -isystem /usr/include/sigc++-3.0 -isystem /usr/lib64/sigc++-3.0/include -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/AL -O2 -march=native -pipe -fPIC -fno-strict-aliasing -pipe -Wall -Wextra -Wno-unused-parameter -Wno-switch -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-sign-compare -Wno-deprecated -Wno-deprecated-declarations -pthread -std=gnu++20 -Winvalid-pch -include /var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full_build/Telegram/CMakeFiles/Telegram.dir/cmake_pch.hxx -MD -MT Telegram/CMakeFiles/Telegram.dir/SourceFiles/platform/linux/specific_linux.cpp.o -MF Telegram/CMakeFiles/Telegram.dir/SourceFiles/platform/linux/specific_linux.cpp.o.d -o Telegram/CMakeFiles/Telegram.dir/SourceFiles/platform/linux/specific_linux.cpp.o -c /var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/SourceFiles/platform/linux/specific_linux.cpp FAILED: Telegram/CMakeFiles/Telegram.dir/SourceFiles/platform/linux/specific_linux.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION -DDESKTOP_APP_USE_PACKAGED -DG_LOG_DOMAIN=\"Telegram\" -DKCOREADDONS_LIB -DLOTTIE_USE_CACHE -DLOT_BUILD -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_IMPLICIT_QCHAR_CONSTRUCTION -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c -DTDESKTOP_API_ID=611335 -DTDESKTOP_DISABLE_AUTOUPDATE -DTGCALLS_USE_STD_OPTIONAL -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full_build/Telegram/Telegram_autogen/include -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/SourceFiles -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full_build/Telegram/gen -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_spellcheck -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/ThirdParty/tgcalls -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_base -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_rpl -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_crl -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_tl -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full_build/Telegram/lib_ui/gen -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_ui -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_ui/emoji_suggestions -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_lottie -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_webrtc -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_storage -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_qr -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/ThirdParty/QR/cpp -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/lib_webview -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/SourceFiles/payments -I/var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/ThirdParty/rlottie/inc -isystem /usr/include/tgvoip -isystem /usr/include/opus -isystem /usr/include/minizip -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtCore/5.15.7 -isystem /usr/include/qt5/QtCore/5.15.7/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtGui/5.15.7 -isystem /usr/include/qt5/QtGui/5.15.7/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWidgets/5.15.7 -isystem /usr/include/qt5/QtWidgets/5.15.7/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQmlModels -isystem /usr/include/qt5/QtQuickWidgets -isystem /var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/ThirdParty/expected/include -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/giomm-2.68 -isystem /usr/lib64/giomm-2.68/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/uuid -isystem /usr/include/json-c -isystem /usr/include/glibmm-2.68 -isystem /usr/lib64/glibmm-2.68/include -isystem /usr/include/sigc++-3.0 -isystem /usr/lib64/sigc++-3.0/include -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/AL -O2 -march=native -pipe -fPIC -fno-strict-aliasing -pipe -Wall -Wextra -Wno-unused-parameter -Wno-switch -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-sign-compare -Wno-deprecated -Wno-deprecated-declarations -pthread -std=gnu++20 -Winvalid-pch -include /var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full_build/Telegram/CMakeFiles/Telegram.dir/cmake_pch.hxx -MD -MT Telegram/CMakeFiles/Telegram.dir/SourceFiles/platform/linux/specific_linux.cpp.o -MF Telegram/CMakeFiles/Telegram.dir/SourceFiles/platform/linux/specific_linux.cpp.o.d -o Telegram/CMakeFiles/Telegram.dir/SourceFiles/platform/linux/specific_linux.cpp.o -c /var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/SourceFiles/platform/linux/specific_linux.cpp /var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/SourceFiles/platform/linux/specific_linux.cpp: In lambda function: /var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/SourceFiles/platform/linux/specific_linux.cpp:734:73: error: call of overloaded ‘arg(QByteArray&)’ is ambiguous 734 | return u"org.telegram.desktop._%1.desktop"_q.arg(md5Hash); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /usr/include/qt5/QtCore/qhashfunctions.h:44, from /usr/include/qt5/QtCore/qlist.h:47, from /usr/include/qt5/QtCore/qmap.h:44, from /usr/include/qt5/QtCore/QMap:1, from /var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full/Telegram/SourceFiles/stdafx.h:26, from /var/tmp/portage/net-im/telegram-desktop-4.4.1-r1/work/tdesktop-4.4.1-full_build/Telegram/CMakeFiles/Telegram.dir/cmake_pch.hxx:5, from <command-line>: /usr/include/qt5/QtCore/qstring.h:313:31: note: candidate: ‘QString QString::arg(qlonglong, int, int, QChar) const’ 313 | Q_REQUIRED_RESULT QString arg(qlonglong a, int fieldwidth=0, int base=10, | ^~~ /usr/include/qt5/QtCore/qstring.h:315:31: note: candidate: ‘QString QString::arg(qulonglong, int, int, QChar) const’ 315 | Q_REQUIRED_RESULT QString arg(qulonglong a, int fieldwidth=0, int base=10, | ^~~ /usr/include/qt5/QtCore/qstring.h:1115:16: note: candidate: ‘QString QString::arg(long int, int, int, QChar) const’ 1115 | inline QString QString::arg(long a, int fieldWidth, int base, QChar fillChar) const | ^~~~~~~ /usr/include/qt5/QtCore/qstring.h:1117:16: note: candidate: ‘QString QString::arg(ulong, int, int, QChar) const’ 1117 | inline QString QString::arg(ulong a, int fieldWidth, int base, QChar fillChar) const | ^~~~~~~ /usr/include/qt5/QtCore/qstring.h:1111:16: note: candidate: ‘QString QString::arg(int, int, int, QChar) const’ 1111 | inline QString QString::arg(int a, int fieldWidth, int base, QChar fillChar) const | ^~~~~~~ /usr/include/qt5/QtCore/qstring.h:1113:16: note: candidate: ‘QString QString::arg(uint, int, int, QChar) const’ 1113 | inline QString QString::arg(uint a, int fieldWidth, int base, QChar fillChar) const | ^~~~~~~ /usr/include/qt5/QtCore/qstring.h:1119:16: note: candidate: ‘QString QString::arg(short int, int, int, QChar) const’ 1119 | inline QString QString::arg(short a, int fieldWidth, int base, QChar fillChar) const | ^~~~~~~ /usr/include/qt5/QtCore/qstring.h:1121:16: note: candidate: ‘QString QString::arg(ushort, int, int, QChar) const’ 1121 | inline QString QString::arg(ushort a, int fieldWidth, int base, QChar fillChar) const | ^~~~~~~ /usr/include/qt5/QtCore/qstring.h:329:31: note: candidate: ‘QString QString::arg(double, int, char, int, QChar) const’ 329 | Q_REQUIRED_RESULT QString arg(double a, int fieldWidth = 0, char fmt = 'g', int prec = -1, | ^~~ /usr/include/qt5/QtCore/qstring.h:331:31: note: candidate: ‘QString QString::arg(char, int, QChar) const’ 331 | Q_REQUIRED_RESULT QString arg(char a, int fieldWidth = 0, | ^~~ /usr/include/qt5/QtCore/qstring.h:336:31: note: candidate: ‘QString QString::arg(const QString&, int, QChar) const’ 336 | Q_REQUIRED_RESULT QString arg(const QString &a, int fieldWidth = 0, | ^~~ Reproducible: Always
This patch solves the issue: https://github.com/telegramdesktop/tdesktop/commit/5990b0fabf4c28e70955b4b52965609dc282a5fe
This was already solved by https://github.com/gentoo/gentoo/blob/master/net-im/telegram-desktop/files/tdesktop-4.3.4-qt5-incompatibility-2.patch This patch is being applied by telegram-desktop-4.4.1. The only way in which it could still fail is if the configure process is if you somehow enabled autoupdate?
(In reply to Esteve Varela Colominas from comment #2) > This was already solved by > https://github.com/gentoo/gentoo/blob/master/net-im/telegram-desktop/files/ > tdesktop-4.3.4-qt5-incompatibility-2.patch > > This patch is being applied by telegram-desktop-4.4.1. The only way in which > it could still fail is if the configure process is if you somehow enabled > autoupdate? I'm not aware I would have enabled autoupdate in any way. The commit mentioned in my comment have been introduced 3 weeks ago and tagged for 4.4.2. I wonder why they come up with this if the patch in the tree should have solved the issue. At least it works for me. Doesn't look harmful.
The patch in upstream is the result of me pointing the gentoo patch out on their issue tracker. When I made the gentoo patch I wasn't sure of how to fix it, but the chunk of code the error was in is an unreachable branch in the gentoo package, so I ifdef'd it out. Either way, the patch currently in gentoo works on my end, and I can't reproduce your issue. I've just checked and the patch applies correctly, so it shouldn't be hitting the line you're getting an error on at all.
Please include the full build.log?
Speaking of, the line number you're hitting the error on is a different number than it'd be if the patch was applied. Are you sure the patch is being applied, and if you are, can you share a full build log?
(In reply to Esteve Varela Colominas from comment #6) > Speaking of, the line number you're hitting the error on is a different > number than it'd be if the patch was applied. Are you sure the patch is > being applied, and if you are, can you share a full build log? I was wrong, because it was telegram-desktop-4.3.4, not telegram-desktop-4.4.1. Sorry for the noise.