telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.43k stars 5.25k forks source link

1.3.13 internal compiler error #5111

Closed xvitaly closed 6 years ago

xvitaly commented 6 years ago
### Steps to reproduce 1. Build using GCC 8.1.1 2. 3. ### Expected behaviour Successful build. ### Actual behaviour Build failure due to an internal compiler error. Version 1.3.12 alpha build fine on same configuration. Build error log: ```c++ [ 79%] Building CXX object CMakeFiles/Telegram.dir/builddir/build/BUILD/tdesktop-1.3.13/Telegram/SourceFiles/apiwrap.o /usr/bin/c++ -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_PLUGIN -DQT_WIDGETS_LIB -DQ_OS_LINUX64 -DTDESKTOP_DISABLE_AUTOUPDATE -DTDESKTOP_DISABLE_CRASH_REPORTS -DTDESKTOP_DISABLE_DESKTOP_FILE_GENERATION -DTDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME -DTDESKTOP_DISABLE_UNITY_INTEGRATION -DTGVOIP_USE_CXX11_LIB -D_REENTRANT -D__STDC_FORMAT_MACROS -I/builddir/build/BUILD/tdesktop-1.3.13/out/Release/../../Telegram/SourceFiles -I/builddir/build/BUILD/tdesktop-1.3.13/out/Release/obj/gen -I/builddir/build/BUILD/tdesktop-1.3.13/out/Release/../../Telegram/ThirdParty/emoji_suggestions -I/builddir/build/BUILD/tdesktop-1.3.13/out/Release/../../Telegram/ThirdParty/crl/src -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtDBus -I/usr/include/qt5/QtCore/5.10.1 -I/usr/include/qt5/QtGui/5.10.1 -I/usr/include/qt5/QtCore/5.10.1/QtCore -I/usr/include/qt5/QtGui/5.10.1/QtGui -I/usr/include/ffmpeg -I/usr/include/minizip -I/usr/include/opus -I/usr/include/libtgvoip -I/usr/include/guidelines-support-library -I/usr/include/range-v3 -I/usr/lib64/qt5/mkspecs/linux-g++ -O2 -g1 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -Wno-unused-variable -Wno-unused-parameter -Wno-unused-function -Wno-switch -Wno-comment -Wno-unused-but-set-variable -Wno-missing-field-initializers -Wno-sign-compare -std=c++1z -Wno-register -Wno-strict-overflow -Wno-maybe-uninitialized -I/usr/include/libappindicator-0.1 -I/usr/include/libdbusmenu-glib-0.4 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -pthread -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/libdrm -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread -I/usr/include/dee-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -fno-strict-aliasing "-include" "/builddir/build/BUILD/tdesktop-1.3.13/out/Release/Telegram_pch/stdafx.h" -o CMakeFiles/Telegram.dir/builddir/build/BUILD/tdesktop-1.3.13/Telegram/SourceFiles/apiwrap.o -c /builddir/build/BUILD/tdesktop-1.3.13/Telegram/SourceFiles/apiwrap.cpp *** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins. Event | Plugins PLUGIN_FINISH_UNIT | annobin: Generate final annotations PLUGIN_START_UNIT | annobin: Generate global annotations PLUGIN_ALL_PASSES_END | annobin: Generate per-function annotations /builddir/build/BUILD/tdesktop-1.3.13/Telegram/SourceFiles/apiwrap.cpp: In instantiation of 'ApiWrap::requestFileReference(Data::FileOrigin, ApiWrap::FileReferencesHandler&&, Request&&) [with Request = MTPBoxed; Data::FileOrigin = base::optional_variant; ApiWrap::FileReferencesHandler = base::unique_function, QByteArray>&)>]:: [with auto:75 = MTPBoxed]': /builddir/build/BUILD/tdesktop-1.3.13/out/Release/../../Telegram/SourceFiles/base/unique_function.h:94:36: required by substitution of 'template base::unique_function&)>::unique_function(Callable&&) [with Callable = ApiWrap::requestFileReference(Data::FileOrigin, ApiWrap::FileReferencesHandler&&, Request&&) [with Request = MTPBoxed; Data::FileOrigin = base::optional_variant; ApiWrap::FileReferencesHandler = base::unique_function, QByteArray>&)>]::; = ]' /builddir/build/BUILD/tdesktop-1.3.13/Telegram/SourceFiles/apiwrap.cpp:2409:5: required from 'void ApiWrap::requestFileReference(Data::FileOrigin, ApiWrap::FileReferencesHandler&&, Request&&) [with Request = MTPBoxed; Data::FileOrigin = base::optional_variant; ApiWrap::FileReferencesHandler = base::unique_function, QByteArray>&)>]' /builddir/build/BUILD/tdesktop-1.3.13/Telegram/SourceFiles/apiwrap.cpp:2437:3: required from 'ApiWrap::refreshFileReference(Data::FileOrigin, ApiWrap::FileReferencesHandler&&)::&&)> [with auto:76 = MTPBoxed; Fn = std::function]' /builddir/build/BUILD/tdesktop-1.3.13/Telegram/SourceFiles/apiwrap.cpp:2459:46: required from here /builddir/build/BUILD/tdesktop-1.3.13/Telegram/SourceFiles/apiwrap.cpp:2393:3: internal compiler error: in tsubst_decomp_names, at cp/pt.c:16539 for (const auto &[origin, reference] : parsed) { ^~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/cc6uXOmE.out file, please attach this to your bugreport. ``` ### Configuration **Operating system:** Fedora 28 **Version of Telegram Desktop:** 1.3.13 **Used theme**: n/a
Logs: Insert log.txt here (if necessary)
Johnnynator commented 6 years ago

Also affects gcc-8.2.0.

xvitaly commented 6 years ago

Reported this issue to RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1622598

xvitaly commented 6 years ago

GCC regressions: 87122, 87125.

Aokromes commented 6 years ago

then close if it's gcc bug :)

xvitaly commented 6 years ago

then close if it's gcc bug :)

I will close this issue when this bug will be resolved in GCC upstream.

stek29 commented 6 years ago

@Aokromes bugs in MSVC are workarounded, so keeping an open issue for GCC bugs which are not workarounded seems fair to me.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.