Subject: bug#63171: Telegram fails to compile.

From: John Cuthbert Khoo Teng Fong <[email-masked]>
Date: Sun, 7 May 2023 14:34:44 +0000

After trying and failing to build with keep-builds, I went to the build directory and ran
guix shell -D telegram-desktop --pure
make
The error seems to be here:
cd /tmp/guix-build-telegram-desktop-4.2.2.drv-0/build/Telegram/lib_base && /gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/bin/c++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_USE_PACKAGED -DDESKTOP_APP_USE_PACKAGED_RLOTTIE -DKCOREADDONS_LIB -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_WIDGETS_LIB -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -I/tmp/guix-build-telegram-desktop-4.2.2.drv-0/source/Telegram/lib_base -I/tmp/guix-build-telegram-desktop-4.2.2.drv-0/source/Telegram/lib_rpl -I/tmp/guix-build-telegram-desktop-4.2.2.drv-0/source/Telegram/lib_crl -isystem /gnu/store/q4wh2qxhhwvx6azbx0y2if4m8vgkghvj-qtbase-5.15.8/include/qt5 -isystem /gnu/store/q4wh2qxhhwvx6azbx0y2if4m8vgkghvj-qtbase-5.15.8/include/qt5/QtCore -isystem /gnu/store/q4wh2qxhhwvx6azbx0y2if4m8vgkghvj-qtbase-5.15.8/lib/qt5/mkspecs/linux-g++ -isystem /gnu/store/q4wh2qxhhwvx6azbx0y2if4m8vgkghvj-qtbase-5.15.8/include/qt5/QtCore/5.15.8 -isystem /gnu/store/q4wh2qxhhwvx6azbx0y2if4m8vgkghvj-qtbase-5.15.8/include/qt5/QtCore/5.15.8/QtCore -isystem /gnu/store/q4wh2qxhhwvx6azbx0y2if4m8vgkghvj-qtbase-5.15.8/include/qt5/QtGui -isystem /gnu/store/q4wh2qxhhwvx6azbx0y2if4m8vgkghvj-qtbase-5.15.8/include/qt5/QtGui/5.15.8 -isystem /gnu/store/q4wh2qxhhwvx6azbx0y2if4m8vgkghvj-qtbase-5.15.8/include/qt5/QtGui/5.15.8/QtGui -isystem /gnu/store/q4wh2qxhhwvx6azbx0y2if4m8vgkghvj-qtbase-5.15.8/include/qt5/QtWidgets -isystem /gnu/store/q4wh2qxhhwvx6azbx0y2if4m8vgkghvj-qtbase-5.15.8/include/qt5/QtWidgets/5.15.8 -isystem /gnu/store/q4wh2qxhhwvx6azbx0y2if4m8vgkghvj-qtbase-5.15.8/include/qt5/QtWidgets/5.15.8/QtWidgets -isystem /gnu/store/q4wh2qxhhwvx6azbx0y2if4m8vgkghvj-qtbase-5.15.8/include/qt5/QtNetwork -isystem /gnu/store/6q7k9jp3bzs611465m68gdd99fgkvx0k-qtsvg-5.15.8/include/qt5 -isystem /gnu/store/6q7k9jp3bzs611465m68gdd99fgkvx0k-qtsvg-5.15.8/include/qt5/QtSvg -isystem /gnu/store/smjbmncdx0v794ylqc2qnr8k7apdgzqg-libexpected-1.1.0/share -isystem /gnu/store/2j6iah1gp2nfp8g8hhrq5l1n32jhzr29-kcoreaddons-5.98.0/include/KF5/KCoreAddons -isystem /gnu/store/2j6iah1gp2nfp8g8hhrq5l1n32jhzr29-kcoreaddons-5.98.0/include/KF5 -isystem /gnu/store/nb40pwd37v6i1g4b1fq4l6q4h9px3asr-glib-2.72.3/include/glib-2.0 -isystem /gnu/store/nb40pwd37v6i1g4b1fq4l6q4h9px3asr-glib-2.72.3/lib/glib-2.0/include -isystem /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/giomm-2.4 -isystem /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/lib/giomm-2.4/include -isystem /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4 -isystem /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/lib/glibmm-2.4/include -isystem /gnu/store/gwx2sf5wl9bsl21lwv35g5la63bwyy95-util-linux-2.37.4-lib/include/libmount -isystem /gnu/store/gwx2sf5wl9bsl21lwv35g5la63bwyy95-util-linux-2.37.4-lib/include/blkid -isystem /gnu/store/7al95rd1f6r6af5rwk9yjicw8pf2ljyr-libsigc++-2.9.3/include/sigc++-2.0 -isystem /gnu/store/7al95rd1f6r6af5rwk9yjicw8pf2ljyr-libsigc++-2.9.3/lib/sigc++-2.0/include -isystem /gnu/store/nb40pwd37v6i1g4b1fq4l6q4h9px3asr-glib-2.72.3/include/gio-unix-2.0 -O2 -g -DNDEBUG -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 -include /tmp/guix-build-telegram-desktop-4.2.2.drv-0/build/Telegram/lib_base/CMakeFiles/lib_base.dir/cmake_pch.hxx -MD -MT Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/linux/base_file_utilities_linux.cpp.o -MF CMakeFiles/lib_base.dir/base/platform/linux/base_file_utilities_linux.cpp.o.d -o CMakeFiles/lib_base.dir/base/platform/linux/base_file_utilities_linux.cpp.o -c /tmp/guix-build-telegram-desktop-4.2.2.drv-0/source/Telegram/lib_base/base/platform/linux/base_file_utilities_linux.cpp
In file included from /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/containerhandle_shared.h:23,
                 from /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/object.h:34,
                 from /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/interface.h:20,
                 from /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/giomm-2.4/giomm/applaunchcontext.h:29,
                 from /tmp/guix-build-telegram-desktop-4.2.2.drv-0/source/Telegram/lib_base/base/platform/linux/base_linux_app_launch_context.h:10,
                 from /tmp/guix-build-telegram-desktop-4.2.2.drv-0/source/Telegram/lib_base/base/platform/linux/base_file_utilities_linux.cpp:14:
/gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/variant.h:956:24: error: expected unqualified-id before ')' token
  956 |   Variant<VariantBase>();
      |                        ^
/gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/variant.h:1017:25: error: expected unqualified-id before ')' token
 1017 |   Variant< Variant<T> >();
      |                         ^
/gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/variant.h:1070:26: error: expected unqualified-id before ')' token
 1070 |   Variant<Glib::ustring>();
      |                          ^
/gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/variant.h:1240:24: error: expected unqualified-id before ')' token
 1240 |   Variant<std::string>();
      |                        ^
/gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/variant.h:1286:30: error: expected unqualified-id before ')' token
 1286 |   Variant< std::pair<K, V> >()
      |                              ^
/gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/variant.h:1335:29: error: expected unqualified-id before ')' token
 1335 |   Variant< std::vector<T> >()
      |                             ^
/gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/variant.h:1404:41: error: expected unqualified-id before ')' token
 1404 |   Variant< std::vector<Glib::ustring> >();
      |                                         ^
/gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/variant.h:1530:39: error: expected unqualified-id before ')' token
 1530 |   Variant< std::vector<std::string> >();
      |                                       ^
/gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/variant.h:1606:29: error: expected unqualified-id before ')' token
 1606 |   Variant< std::map<K, V> >()
      |                             ^
/gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/variant.h:1679:33: error: expected unqualified-id before ')' token
 1679 |   Variant<std::tuple<Types...>>()
      |                                 ^
In file included from /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/variant.h:1742,
                 from /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/containerhandle_shared.h:23,
                 from /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/object.h:34,
                 from /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/interface.h:20,
                 from /gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/giomm-2.4/giomm/applaunchcontext.h:29,
                 from /tmp/guix-build-telegram-desktop-4.2.2.drv-0/source/Telegram/lib_base/base/platform/linux/base_linux_app_launch_context.h:10,
                 from /tmp/guix-build-telegram-desktop-4.2.2.drv-0/source/Telegram/lib_base/base/platform/linux/base_file_utilities_linux.cpp:14:
/gnu/store/cbjgz6f8nrb7804nnmmlvpd4y78p8zf3-glibmm-2.64.5/include/glibmm-2.4/glibmm/variant_basictypes.h:23:17: error: expected unqualified-id before ')' token
   23 |   Variant<bool>()
Hope this helps!

Yours faithfully,
John Khoo
Notice: This email is generated from the account of an NUS alumnus. Contents, views, and opinions therein are solely those of the sender.