tdesktop
tdesktop copied to clipboard
Unable to build with Clang15 and LLVM15 even with https://github.com/telegramdesktop/tdesktop/pull/25154 applied
Steps to reproduce
-
emerge -av1 telegram-desktop
- wait a few seconds/minutes.
- see compilation output.
Expected behaviour
Successful compilation.
Actual behaviour
Compilation fails, complaining about the Vector lib.
Operating system
Gentoo
Version of Telegram Desktop
4.2.4
Installation source
Other (unofficial) source
Logs
[31mFAILED: [0mTelegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/generator.cpp.o
/usr/lib/llvm/15/bin/clang++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_DISABLE_X11_INTEGRATION -DDESKTOP_APP_USE_PACKAGED -DKCOREADDONS_LIB -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_SVG_LIB -DQT_WIDGETS_LIB -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_base -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_rpl -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_crl -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtCore/5.15.5 -isystem /usr/include/qt5/QtCore/5.15.5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtGui/5.15.5 -isystem /usr/include/qt5/QtGui/5.15.5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWidgets/5.15.5 -isystem /usr/include/qt5/QtWidgets/5.15.5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtDBus -isystem /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/ThirdParty/expected/include -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/giomm-2.4 -isystem /usr/lib/giomm-2.4/include -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/lib/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/glibmm-2.4 -isystem /usr/lib/glibmm-2.4/include -isystem /usr/include/sigc++-2.0 -isystem /usr/lib/sigc++-2.0/include -isystem /usr/include/gio-unix-2.0 -march=native -O3 -pipe -mllvm -polly -flto=thin -fstack-protector-all -fstack-clash-protection -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 -MD -MT Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/generator.cpp.o -MF Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/generator.cpp.o.d -o Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/generator.cpp.o -c /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/generator.cpp
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/generator.cpp:7:
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/generator.h:10:
In file included from /usr/include/c++/v1/map:550:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:540:52: error: arithmetic on a pointer to an incomplete type 'codegen::style::structure::data::monoicon'
{return static_cast<size_type>(__end_cap() - this->__begin_);}
~~~~~~~~~~~ ^
/usr/include/c++/v1/vector:760:56: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::capacity' requested here
__annotate_contiguous_container(data(), data() + capacity(),
^
/usr/include/c++/v1/vector:431:7: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::__annotate_delete' requested here
__annotate_delete();
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:91:8: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::~vector' requested here
struct icon {
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:132:42: note: in implicit destructor for 'codegen::style::structure::data::icon' first required here
data::icon Icon() const { return data_->Icon(); };
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:90:8: note: forward declaration of 'codegen::style::structure::data::monoicon'
struct monoicon;
^
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/generator.cpp:7:
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/generator.h:10:
In file included from /usr/include/c++/v1/map:550:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:760:54: error: arithmetic on a pointer to an incomplete type 'const std::vector<codegen::style::structure::data::monoicon>::value_type' (aka 'const codegen::style::structure::data::monoicon')
__annotate_contiguous_container(data(), data() + capacity(),
~~~~~~ ^
/usr/include/c++/v1/vector:431:7: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::__annotate_delete' requested here
__annotate_delete();
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:91:8: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::~vector' requested here
struct icon {
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:132:42: note: in implicit destructor for 'codegen::style::structure::data::icon' first required here
data::icon Icon() const { return data_->Icon(); };
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:90:8: note: forward declaration of 'codegen::style::structure::data::monoicon'
struct monoicon;
^
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/generator.cpp:7:
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/generator.h:10:
In file included from /usr/include/c++/v1/map:550:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:833:64: error: arithmetic on a pointer to an incomplete type 'codegen::style::structure::data::monoicon'
__alloc_traits::destroy(__alloc(), _VSTD::__to_address(--__soon_to_be_end));
^ ~~~~~~~~~~~~~~~~
/usr/include/c++/v1/vector:827:29: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::__base_destruct_at_end' requested here
void __clear() _NOEXCEPT {__base_destruct_at_end(this->__begin_);}
^
/usr/include/c++/v1/vector:436:9: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::__clear' requested here
__clear();
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:91:8: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::~vector' requested here
struct icon {
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:132:42: note: in implicit destructor for 'codegen::style::structure::data::icon' first required here
data::icon Icon() const { return data_->Icon(); };
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:90:8: note: forward declaration of 'codegen::style::structure::data::monoicon'
struct monoicon;
^
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/generator.cpp:7:
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/generator.h:9:
In file included from /usr/include/c++/v1/memory:848:
/usr/include/c++/v1/__memory/allocator.h:128:58: error: invalid application of 'sizeof' to an incomplete type 'codegen::style::structure::data::monoicon'
_VSTD::__libcpp_deallocate((void*)__p, __n * sizeof(_Tp), _LIBCPP_ALIGNOF(_Tp));
^~~~~~~~~~~
/usr/include/c++/v1/__memory/allocator_traits.h:282:13: note: in instantiation of member function 'std::allocator<codegen::style::structure::data::monoicon>::deallocate' requested here
__a.deallocate(__p, __n);
^
/usr/include/c++/v1/vector:437:25: note: in instantiation of member function 'std::allocator_traits<std::allocator<codegen::style::structure::data::monoicon>>::deallocate' requested here
__alloc_traits::deallocate(__alloc(), this->__begin_, capacity());
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:91:8: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::~vector' requested here
struct icon {
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:132:42: note: in implicit destructor for 'codegen::style::structure::data::icon' first required here
data::icon Icon() const { return data_->Icon(); };
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:90:8: note: forward declaration of 'codegen::style::structure::data::monoicon'
struct monoicon;
^
1 warning and 4 errors generated.
[231/1123] /usr/lib/llvm/15/bin/clang++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_DISABLE_X11_INTEGRATION -DDESKTOP_APP_USE_PACKAGED -DKCOREADDONS_LIB -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_SVG_LIB -DQT_WIDGETS_LIB -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_storage -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_base -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_rpl -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_crl -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtCore/5.15.5 -isystem /usr/include/qt5/QtCore/5.15.5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtGui/5.15.5 -isystem /usr/include/qt5/QtGui/5.15.5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWidgets/5.15.5 -isystem /usr/include/qt5/QtWidgets/5.15.5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtDBus -isystem /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/ThirdParty/expected/include -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/giomm-2.4 -isystem /usr/lib/giomm-2.4/include -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/lib/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/glibmm-2.4 -isystem /usr/lib/glibmm-2.4/include -isystem /usr/include/sigc++-2.0 -isystem /usr/lib/sigc++-2.0/include -isystem /usr/include/gio-unix-2.0 -march=native -O3 -pipe -mllvm -polly -flto=thin -fstack-protector-all -fstack-clash-protection -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 -Xclang -include-pch -Xclang /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full_build/Telegram/lib_storage/CMakeFiles/lib_storage.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full_build/Telegram/lib_storage/CMakeFiles/lib_storage.dir/cmake_pch.hxx -MD -MT Telegram/lib_storage/CMakeFiles/lib_storage.dir/storage/cache/storage_cache_database_object.cpp.o -MF Telegram/lib_storage/CMakeFiles/lib_storage.dir/storage/cache/storage_cache_database_object.cpp.o.d -o Telegram/lib_storage/CMakeFiles/lib_storage.dir/storage/cache/storage_cache_database_object.cpp.o -c /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_storage/storage/cache/storage_cache_database_object.cpp
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
1 warning generated.
[232/1123] /usr/lib/llvm/15/bin/clang++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_DISABLE_X11_INTEGRATION -DDESKTOP_APP_USE_PACKAGED -DKCOREADDONS_LIB -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_SVG_LIB -DQT_WIDGETS_LIB -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_base -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_rpl -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_crl -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtCore/5.15.5 -isystem /usr/include/qt5/QtCore/5.15.5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtGui/5.15.5 -isystem /usr/include/qt5/QtGui/5.15.5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWidgets/5.15.5 -isystem /usr/include/qt5/QtWidgets/5.15.5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtDBus -isystem /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/ThirdParty/expected/include -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/giomm-2.4 -isystem /usr/lib/giomm-2.4/include -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/lib/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/glibmm-2.4 -isystem /usr/lib/glibmm-2.4/include -isystem /usr/include/sigc++-2.0 -isystem /usr/lib/sigc++-2.0/include -isystem /usr/include/gio-unix-2.0 -march=native -O3 -pipe -mllvm -polly -flto=thin -fstack-protector-all -fstack-clash-protection -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 -MD -MT Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/module.cpp.o -MF Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/module.cpp.o.d -o Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/module.cpp.o -c /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/module.cpp
[31mFAILED: [0mTelegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/module.cpp.o
/usr/lib/llvm/15/bin/clang++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_DISABLE_X11_INTEGRATION -DDESKTOP_APP_USE_PACKAGED -DKCOREADDONS_LIB -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_SVG_LIB -DQT_WIDGETS_LIB -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_base -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_rpl -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_crl -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtCore/5.15.5 -isystem /usr/include/qt5/QtCore/5.15.5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtGui/5.15.5 -isystem /usr/include/qt5/QtGui/5.15.5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWidgets/5.15.5 -isystem /usr/include/qt5/QtWidgets/5.15.5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtDBus -isystem /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/ThirdParty/expected/include -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/giomm-2.4 -isystem /usr/lib/giomm-2.4/include -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/lib/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/glibmm-2.4 -isystem /usr/lib/glibmm-2.4/include -isystem /usr/include/sigc++-2.0 -isystem /usr/lib/sigc++-2.0/include -isystem /usr/include/gio-unix-2.0 -march=native -O3 -pipe -mllvm -polly -flto=thin -fstack-protector-all -fstack-clash-protection -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 -MD -MT Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/module.cpp.o -MF Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/module.cpp.o.d -o Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/module.cpp.o -c /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/module.cpp
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/module.cpp:7:
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/module.h:9:
In file included from /usr/include/qt5/QtCore/QString:1:
In file included from /usr/include/qt5/QtCore/qstring.h:50:
In file included from /usr/include/qt5/QtCore/qbytearray.h:52:
In file included from /usr/include/c++/v1/string:551:
In file included from /usr/include/c++/v1/string_view:223:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:540:52: error: arithmetic on a pointer to an incomplete type 'codegen::style::structure::data::monoicon'
{return static_cast<size_type>(__end_cap() - this->__begin_);}
~~~~~~~~~~~ ^
/usr/include/c++/v1/vector:760:56: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::capacity' requested here
__annotate_contiguous_container(data(), data() + capacity(),
^
/usr/include/c++/v1/vector:431:7: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::__annotate_delete' requested here
__annotate_delete();
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:91:8: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::~vector' requested here
struct icon {
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:132:42: note: in implicit destructor for 'codegen::style::structure::data::icon' first required here
data::icon Icon() const { return data_->Icon(); };
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:90:8: note: forward declaration of 'codegen::style::structure::data::monoicon'
struct monoicon;
^
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/module.cpp:7:
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/module.h:9:
In file included from /usr/include/qt5/QtCore/QString:1:
In file included from /usr/include/qt5/QtCore/qstring.h:50:
In file included from /usr/include/qt5/QtCore/qbytearray.h:52:
In file included from /usr/include/c++/v1/string:551:
In file included from /usr/include/c++/v1/string_view:223:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:760:54: error: arithmetic on a pointer to an incomplete type 'const std::vector<codegen::style::structure::data::monoicon>::value_type' (aka 'const codegen::style::structure::data::monoicon')
__annotate_contiguous_container(data(), data() + capacity(),
~~~~~~ ^
/usr/include/c++/v1/vector:431:7: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::__annotate_delete' requested here
__annotate_delete();
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:91:8: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::~vector' requested here
struct icon {
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:132:42: note: in implicit destructor for 'codegen::style::structure::data::icon' first required here
data::icon Icon() const { return data_->Icon(); };
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:90:8: note: forward declaration of 'codegen::style::structure::data::monoicon'
struct monoicon;
^
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/module.cpp:7:
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/module.h:9:
In file included from /usr/include/qt5/QtCore/QString:1:
In file included from /usr/include/qt5/QtCore/qstring.h:50:
In file included from /usr/include/qt5/QtCore/qbytearray.h:52:
In file included from /usr/include/c++/v1/string:551:
In file included from /usr/include/c++/v1/string_view:223:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:833:64: error: arithmetic on a pointer to an incomplete type 'codegen::style::structure::data::monoicon'
__alloc_traits::destroy(__alloc(), _VSTD::__to_address(--__soon_to_be_end));
^ ~~~~~~~~~~~~~~~~
/usr/include/c++/v1/vector:827:29: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::__base_destruct_at_end' requested here
void __clear() _NOEXCEPT {__base_destruct_at_end(this->__begin_);}
^
/usr/include/c++/v1/vector:436:9: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::__clear' requested here
__clear();
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:91:8: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::~vector' requested here
struct icon {
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:132:42: note: in implicit destructor for 'codegen::style::structure::data::icon' first required here
data::icon Icon() const { return data_->Icon(); };
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:90:8: note: forward declaration of 'codegen::style::structure::data::monoicon'
struct monoicon;
^
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/module.cpp:7:
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/module.h:9:
In file included from /usr/include/qt5/QtCore/QString:1:
In file included from /usr/include/qt5/QtCore/qstring.h:49:
In file included from /usr/include/qt5/QtCore/qchar.h:43:
In file included from /usr/include/qt5/QtCore/qglobal.h:142:
In file included from /usr/include/c++/v1/algorithm:1712:
In file included from /usr/include/c++/v1/memory:848:
/usr/include/c++/v1/__memory/allocator.h:128:58: error: invalid application of 'sizeof' to an incomplete type 'codegen::style::structure::data::monoicon'
_VSTD::__libcpp_deallocate((void*)__p, __n * sizeof(_Tp), _LIBCPP_ALIGNOF(_Tp));
^~~~~~~~~~~
/usr/include/c++/v1/__memory/allocator_traits.h:282:13: note: in instantiation of member function 'std::allocator<codegen::style::structure::data::monoicon>::deallocate' requested here
__a.deallocate(__p, __n);
^
/usr/include/c++/v1/vector:437:25: note: in instantiation of member function 'std::allocator_traits<std::allocator<codegen::style::structure::data::monoicon>>::deallocate' requested here
__alloc_traits::deallocate(__alloc(), this->__begin_, capacity());
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:91:8: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::~vector' requested here
struct icon {
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:132:42: note: in implicit destructor for 'codegen::style::structure::data::icon' first required here
data::icon Icon() const { return data_->Icon(); };
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:90:8: note: forward declaration of 'codegen::style::structure::data::monoicon'
struct monoicon;
^
1 warning and 4 errors generated.
[233/1123] : && /usr/lib/llvm/15/bin/clang++ -march=native -O3 -pipe -mllvm -polly -flto=thin -Wl,-O2 -Wl,--as-needed -pthread -Wl,--as-needed Telegram/codegen/codegen/common/CMakeFiles/codegen_common.dir/basic_tokenized_file.cpp.o Telegram/codegen/codegen/common/CMakeFiles/codegen_common.dir/checked_utf8_string.cpp.o Telegram/codegen/codegen/common/CMakeFiles/codegen_common.dir/clean_file.cpp.o Telegram/codegen/codegen/common/CMakeFiles/codegen_common.dir/cpp_file.cpp.o Telegram/codegen/codegen/common/CMakeFiles/codegen_common.dir/logging.cpp.o Telegram/codegen/codegen/lang/CMakeFiles/codegen_lang.dir/generator.cpp.o Telegram/codegen/codegen/lang/CMakeFiles/codegen_lang.dir/main.cpp.o Telegram/codegen/codegen/lang/CMakeFiles/codegen_lang.dir/options.cpp.o Telegram/codegen/codegen/lang/CMakeFiles/codegen_lang.dir/parsed_file.cpp.o Telegram/codegen/codegen/lang/CMakeFiles/codegen_lang.dir/processor.cpp.o -o Telegram/codegen/codegen/lang/codegen_lang -ldl /usr/lib/libQt5Network.so.5.15.5 /usr/lib/libQt5Svg.so.5.15.5 /usr/lib/libQt5Widgets.so.5.15.5 /usr/lib/libQt5Gui.so.5.15.5 /usr/lib/libQt5DBus.so.5.15.5 /usr/lib/libQt5Core.so.5.15.5 && :
clang-15: warning: argument unused during compilation: '-mllvm -polly' [-Wunused-command-line-argument]
[234/1123] /usr/lib/llvm/15/bin/clang++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_DISABLE_X11_INTEGRATION -DDESKTOP_APP_USE_PACKAGED -DKCOREADDONS_LIB -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_SVG_LIB -DQT_WIDGETS_LIB -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_base -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_rpl -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_crl -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtCore/5.15.5 -isystem /usr/include/qt5/QtCore/5.15.5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtGui/5.15.5 -isystem /usr/include/qt5/QtGui/5.15.5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWidgets/5.15.5 -isystem /usr/include/qt5/QtWidgets/5.15.5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtDBus -isystem /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/ThirdParty/expected/include -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/giomm-2.4 -isystem /usr/lib/giomm-2.4/include -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/lib/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/glibmm-2.4 -isystem /usr/lib/glibmm-2.4/include -isystem /usr/include/sigc++-2.0 -isystem /usr/lib/sigc++-2.0/include -isystem /usr/include/gio-unix-2.0 -march=native -O3 -pipe -mllvm -polly -flto=thin -fstack-protector-all -fstack-clash-protection -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 -MD -MT Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/options.cpp.o -MF Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/options.cpp.o.d -o Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/options.cpp.o -c /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/options.cpp
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
1 warning generated.
[235/1123] /usr/lib/llvm/15/bin/clang++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_DISABLE_X11_INTEGRATION -DDESKTOP_APP_USE_PACKAGED -DKCOREADDONS_LIB -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_SVG_LIB -DQT_WIDGETS_LIB -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_base -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_rpl -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_crl -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtCore/5.15.5 -isystem /usr/include/qt5/QtCore/5.15.5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtGui/5.15.5 -isystem /usr/include/qt5/QtGui/5.15.5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWidgets/5.15.5 -isystem /usr/include/qt5/QtWidgets/5.15.5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtDBus -isystem /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/ThirdParty/expected/include -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/giomm-2.4 -isystem /usr/lib/giomm-2.4/include -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/lib/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/glibmm-2.4 -isystem /usr/lib/glibmm-2.4/include -isystem /usr/include/sigc++-2.0 -isystem /usr/lib/sigc++-2.0/include -isystem /usr/include/gio-unix-2.0 -march=native -O3 -pipe -mllvm -polly -flto=thin -fstack-protector-all -fstack-clash-protection -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 -MD -MT Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/parsed_file.cpp.o -MF Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/parsed_file.cpp.o.d -o Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/parsed_file.cpp.o -c /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/parsed_file.cpp
[31mFAILED: [0mTelegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/parsed_file.cpp.o
/usr/lib/llvm/15/bin/clang++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_DISABLE_X11_INTEGRATION -DDESKTOP_APP_USE_PACKAGED -DKCOREADDONS_LIB -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_SVG_LIB -DQT_WIDGETS_LIB -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_base -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_rpl -I/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/lib_crl -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/mkspecs/linux-clang -isystem /usr/include/qt5/QtCore/5.15.5 -isystem /usr/include/qt5/QtCore/5.15.5/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtGui/5.15.5 -isystem /usr/include/qt5/QtGui/5.15.5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWidgets/5.15.5 -isystem /usr/include/qt5/QtWidgets/5.15.5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtDBus -isystem /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/ThirdParty/expected/include -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/giomm-2.4 -isystem /usr/lib/giomm-2.4/include -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/lib/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/glibmm-2.4 -isystem /usr/lib/glibmm-2.4/include -isystem /usr/include/sigc++-2.0 -isystem /usr/lib/sigc++-2.0/include -isystem /usr/include/gio-unix-2.0 -march=native -O3 -pipe -mllvm -polly -flto=thin -fstack-protector-all -fstack-clash-protection -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 -MD -MT Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/parsed_file.cpp.o -MF Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/parsed_file.cpp.o.d -o Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/parsed_file.cpp.o -c /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/parsed_file.cpp
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/parsed_file.cpp:7:
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/parsed_file.h:10:
In file included from /usr/include/c++/v1/string:551:
In file included from /usr/include/c++/v1/string_view:223:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:540:52: error: arithmetic on a pointer to an incomplete type 'codegen::style::structure::data::monoicon'
{return static_cast<size_type>(__end_cap() - this->__begin_);}
~~~~~~~~~~~ ^
/usr/include/c++/v1/vector:760:56: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::capacity' requested here
__annotate_contiguous_container(data(), data() + capacity(),
^
/usr/include/c++/v1/vector:431:7: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::__annotate_delete' requested here
__annotate_delete();
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:91:8: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::~vector' requested here
struct icon {
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:132:42: note: in implicit destructor for 'codegen::style::structure::data::icon' first required here
data::icon Icon() const { return data_->Icon(); };
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:90:8: note: forward declaration of 'codegen::style::structure::data::monoicon'
struct monoicon;
^
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/parsed_file.cpp:7:
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/parsed_file.h:10:
In file included from /usr/include/c++/v1/string:551:
In file included from /usr/include/c++/v1/string_view:223:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:760:54: error: arithmetic on a pointer to an incomplete type 'const std::vector<codegen::style::structure::data::monoicon>::value_type' (aka 'const codegen::style::structure::data::monoicon')
__annotate_contiguous_container(data(), data() + capacity(),
~~~~~~ ^
/usr/include/c++/v1/vector:431:7: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::__annotate_delete' requested here
__annotate_delete();
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:91:8: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::~vector' requested here
struct icon {
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:132:42: note: in implicit destructor for 'codegen::style::structure::data::icon' first required here
data::icon Icon() const { return data_->Icon(); };
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:90:8: note: forward declaration of 'codegen::style::structure::data::monoicon'
struct monoicon;
^
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/parsed_file.cpp:7:
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/parsed_file.h:10:
In file included from /usr/include/c++/v1/string:551:
In file included from /usr/include/c++/v1/string_view:223:
In file included from /usr/include/c++/v1/functional:515:
In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
/usr/include/c++/v1/vector:833:64: error: arithmetic on a pointer to an incomplete type 'codegen::style::structure::data::monoicon'
__alloc_traits::destroy(__alloc(), _VSTD::__to_address(--__soon_to_be_end));
^ ~~~~~~~~~~~~~~~~
/usr/include/c++/v1/vector:827:29: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::__base_destruct_at_end' requested here
void __clear() _NOEXCEPT {__base_destruct_at_end(this->__begin_);}
^
/usr/include/c++/v1/vector:436:9: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::__clear' requested here
__clear();
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:91:8: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::~vector' requested here
struct icon {
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:132:42: note: in implicit destructor for 'codegen::style::structure::data::icon' first required here
data::icon Icon() const { return data_->Icon(); };
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:90:8: note: forward declaration of 'codegen::style::structure::data::monoicon'
struct monoicon;
^
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/parsed_file.cpp:7:
In file included from /tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/parsed_file.h:9:
In file included from /usr/include/c++/v1/memory:848:
/usr/include/c++/v1/__memory/allocator.h:128:58: error: invalid application of 'sizeof' to an incomplete type 'codegen::style::structure::data::monoicon'
_VSTD::__libcpp_deallocate((void*)__p, __n * sizeof(_Tp), _LIBCPP_ALIGNOF(_Tp));
^~~~~~~~~~~
/usr/include/c++/v1/__memory/allocator_traits.h:282:13: note: in instantiation of member function 'std::allocator<codegen::style::structure::data::monoicon>::deallocate' requested here
__a.deallocate(__p, __n);
^
/usr/include/c++/v1/vector:437:25: note: in instantiation of member function 'std::allocator_traits<std::allocator<codegen::style::structure::data::monoicon>>::deallocate' requested here
__alloc_traits::deallocate(__alloc(), this->__begin_, capacity());
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:91:8: note: in instantiation of member function 'std::vector<codegen::style::structure::data::monoicon>::~vector' requested here
struct icon {
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:132:42: note: in implicit destructor for 'codegen::style::structure::data::icon' first required here
data::icon Icon() const { return data_->Icon(); };
^
/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full/Telegram/codegen/codegen/style/structure_types.h:90:8: note: forward declaration of 'codegen::style::structure::data::monoicon'
struct monoicon;
^
1 warning and 4 errors generated.
[236/1123] : && /usr/lib/llvm/15/bin/clang++ -march=native -O3 -pipe -mllvm -polly -flto=thin -Wl,-O2 -Wl,--as-needed -pthread -Wl,--as-needed Telegram/codegen/codegen/common/CMakeFiles/codegen_common.dir/basic_tokenized_file.cpp.o Telegram/codegen/codegen/common/CMakeFiles/codegen_common.dir/checked_utf8_string.cpp.o Telegram/codegen/codegen/common/CMakeFiles/codegen_common.dir/clean_file.cpp.o Telegram/codegen/codegen/common/CMakeFiles/codegen_common.dir/cpp_file.cpp.o Telegram/codegen/codegen/common/CMakeFiles/codegen_common.dir/logging.cpp.o Telegram/codegen/codegen/emoji/CMakeFiles/codegen_emoji.dir/data.cpp.o Telegram/codegen/codegen/emoji/CMakeFiles/codegen_emoji.dir/data_old.cpp.o Telegram/codegen/codegen/emoji/CMakeFiles/codegen_emoji.dir/data_read.cpp.o Telegram/codegen/codegen/emoji/CMakeFiles/codegen_emoji.dir/generator.cpp.o Telegram/codegen/codegen/emoji/CMakeFiles/codegen_emoji.dir/main.cpp.o Telegram/codegen/codegen/emoji/CMakeFiles/codegen_emoji.dir/options.cpp.o Telegram/codegen/codegen/emoji/CMakeFiles/codegen_emoji.dir/replaces.cpp.o -o Telegram/codegen/codegen/emoji/codegen_emoji Telegram/lib_base/liblib_base.a /usr/lib/libdispatch.so /usr/lib/libssl.so /usr/lib/libcrypto.so /usr/lib/libcrypto.so /usr/lib/libxxhash.so /usr/lib/libKF5CoreAddons.so.5.98.0 /usr/lib/libgiomm-2.4.so /usr/lib/libglibmm-2.4.so /usr/lib/libsigc-2.0.so /usr/lib/libgio-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so -ldl /usr/lib/libQt5Network.so.5.15.5 /usr/lib/libQt5Svg.so.5.15.5 /usr/lib/libQt5Widgets.so.5.15.5 /usr/lib/libQt5Gui.so.5.15.5 /usr/lib/libQt5DBus.so.5.15.5 /usr/lib/libQt5Core.so.5.15.5 && :
clang-15: warning: argument unused during compilation: '-mllvm -polly' [-Wunused-command-line-argument]
ninja: build stopped: subcommand failed.
[31;01m*[0m ERROR: net-im/telegram-desktop-4.2.4::gentoo failed (compile phase):
[31;01m*[0m ninja -v -j7 -l0 failed
[31;01m*[0m
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 122: Called src_compile
[31;01m*[0m environment, line 3268: Called cmake_src_compile
[31;01m*[0m environment, line 1489: Called cmake_build
[31;01m*[0m environment, line 1458: Called eninja
[31;01m*[0m environment, line 1909: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m "$@" || die "${nonfatal_args[@]}" "${*} failed"
[31;01m*[0m
[31;01m*[0m If you need support, post the output of `emerge --info '=net-im/telegram-desktop-4.2.4::gentoo'`,
[31;01m*[0m the complete build log and the output of `emerge -pqv '=net-im/telegram-desktop-4.2.4::gentoo'`.
[31;01m*[0m The complete build log is located at '/tmp/portage/net-im/telegram-desktop-4.2.4/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/tmp/portage/net-im/telegram-desktop-4.2.4/temp/environment'.
[31;01m*[0m Working directory: '/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full_build'
[31;01m*[0m S: '/tmp/portage/net-im/telegram-desktop-4.2.4/work/tdesktop-4.2.4-full'
build.log This is the complete build log.
Same problem on my machine.
First sign of rotten project/incompetent team - inability to present clear, compilable sources w/o "magic jumps" around configs/libs/environment. If project was properly structured, anyone can improve this legacy bog without begging developers "please look AT LAST on thousands problems of your project".
@LexaGV There is a supported one liner to build the project in docker. Other ways are community-maintained.
Here it looks like incompatibility with the new compiler or std lib implementation. It should be fixed by the most interested party.
anyone can improve this legacy bog without begging developers
There's no properly structured projects then, I guess? Because any open source project has issues begging developers.
I'd say it's a matter of popularity rather than project structure, i.e. how much people without programming experience or with irrelevant (non-C++) programming experience reach GitHub.
First sign of rotten project/incompetent team - inability to present clear, compilable sources w/o "magic jumps" around configs/libs/environment. If project was properly structured, anyone can improve this legacy bog without begging developers "please look AT LAST on thousands problems of your project".
most of projects usualy targets specific versions of compilers, changing them doens't makes developer culpit of not following guides.
@LexaGV There is a supported one liner to build the project in docker. Other ways are community-maintained.
Here it looks like incompatibility with the new compiler or std lib implementation. It should be fixed by the most interested party.
But the merged commit https://github.com/telegramdesktop/tdesktop/pull/25154 aimed to solve just that. If it doesn't, what's its purpose, after all?
@King-Mucus It fixes one of the problems with the new libc++ version. One more was merged in the codegen submodule, maybe after updating the submodule in this repository it'll start building fine.
OK, ty for the info.
Hey there!
This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.
Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!