Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: telegram-desktop on darwin #349148

Open
booxter opened this issue Oct 16, 2024 · 4 comments
Open

Build failure: telegram-desktop on darwin #349148

booxter opened this issue Oct 16, 2024 · 4 comments
Labels
0.kind: build failure 6.topic: darwin Running or building packages on Darwin

Comments

@booxter
Copy link
Contributor

booxter commented Oct 16, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. build telegram-desktop on Darwin.

Build log

[37/1424] Building OBJCXX object Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/mac/base_custom_app_icon_mac.mm.o
FAILED: Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/mac/base_custom_app_icon_mac.mm.o 
/nix/store/22a6p8311lg3z4ksrjbj018i7z3vgkva-clang-wrapper-16.0.6/bin/clang++ -DDESKTOP_APP_DISABLE_X11_INTEGRATION -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x051500 -DQT_GUI_LIB -DQT_NETWORK_
LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_OPENGLWIDGETS_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_bas
e -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_rpl -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_crl -isystem /private/tmp/nix-build-telegram-desktop-5.
6.3.drv-1/source/Telegram/ThirdParty/GSL/include -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers -iframework /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.
8.0/lib -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/mkspecs/macx-clang -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Versions/A/Headers/6.8.0 -isy
stem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Versions/A/Headers/6.8.0/QtCore -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtGui.framework/Headers 
-isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtGui.framework/Versions/A/Headers/6.8.0 -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtGui.framework/Versions/A/H
eaders/6.8.0/QtGui -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtOpenGL.framework/Headers -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtWidgets.framework/Hea
ders -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtWidgets.framework/Versions/A/Headers/6.8.0 -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtWidgets.framework
/Versions/A/Headers/6.8.0/QtWidgets -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtOpenGLWidgets.framework/Headers -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib
/QtNetwork.framework/Headers -isystem /nix/store/whqdv6b5zz2nmmh8pwvhhmdnwj3kpgfz-qtsvg-6.8.0/lib/QtSvg.framework/Headers -iframework /nix/store/whqdv6b5zz2nmmh8pwvhhmdnwj3kpgfz-qtsvg-6.8.0/lib -isystem /nix/s
tore/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtDBus.framework/Headers -isystem /nix/store/z6zdscx265yc4fmczlqndzn9aaf1ncki-tl-expected-1.1.0/share -x objective-c++ -O3 -DNDEBUG -std=gnu++20 -pipe -Wa
ll -Wextra -fPIE -fobjc-weak -fvisibility-inlines-hidden -fvisibility=hidden -Wno-unused-variable -Wno-unused-parameter -Wno-unused-function -Wno-switch -Wno-comment -Wno-missing-field-initializers -Wno-sign-c
ompare -Wno-unknown-attributes -Wno-pragma-system-header-outside-header -Wno-shorten-64-to-32 -Winvalid-pch -Xclang -include-pch -Xclang /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/lib_ba
se/CMakeFiles/lib_base.dir/cmake_pch.objcxx.hxx.pch -Xclang -include -Xclang /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/lib_base/CMakeFiles/lib_base.dir/cmake_pch.objcxx.hxx -MD -MT Tele
gram/lib_base/CMakeFiles/lib_base.dir/base/platform/mac/base_custom_app_icon_mac.mm.o -MF Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/mac/base_custom_app_icon_mac.mm.o.d -o Telegram/lib_base/CMakeF
iles/lib_base.dir/base/platform/mac/base_custom_app_icon_mac.mm.o -c /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_custom_app_icon_mac.mm
In file included from /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_custom_app_icon_mac.mm:10:
In file included from /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_utilities_mac.h:10:
In file included from /nix/store/wjpfjap573f8kzc0r7ffabkbj74kmqhz-apple-framework-Cocoa-11.0.0/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/7kj149havj296c9p03m1v069vyxikmjp-apple-framework-Foundation-12.3/Library/Frameworks/Foundation.framework/Headers/Foundation.h:91:
In file included from /nix/store/7kj149havj296c9p03m1v069vyxikmjp-apple-framework-Foundation-12.3/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:87:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:26:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:56:
In file included from /nix/store/hs86pjkahbd3vcly21v1ivi3n8gqcivb-apple-framework-DiskArbitration-12.3/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h:28:
In file included from /nix/store/8hlj5zsx64mfj4l3889n94wdadp9s7fm-apple-framework-IOKit-12.3/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:49:
/nix/store/8hlj5zsx64mfj4l3889n94wdadp9s7fm-apple-framework-IOKit-12.3/Library/Frameworks/IOKit.framework/Headers/IOTypes.h:81:49: error: expected ';' after top level declarator
typedef mach_vm_address_t       IOVirtualAddress __kernel_ptr_semantics;
                                                ^
In file included from /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_custom_app_icon_mac.mm:10:
In file included from /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_utilities_mac.h:10:
In file included from /nix/store/wjpfjap573f8kzc0r7ffabkbj74kmqhz-apple-framework-Cocoa-11.0.0/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/7kj149havj296c9p03m1v069vyxikmjp-apple-framework-Foundation-12.3/Library/Frameworks/Foundation.framework/Headers/Foundation.h:91:
In file included from /nix/store/7kj149havj296c9p03m1v069vyxikmjp-apple-framework-Foundation-12.3/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:87:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:26:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:56:
In file included from /nix/store/hs86pjkahbd3vcly21v1ivi3n8gqcivb-apple-framework-DiskArbitration-12.3/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h:28:
In file included from /nix/store/8hlj5zsx64mfj4l3889n94wdadp9s7fm-apple-framework-IOKit-12.3/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:52:
/nix/store/8hlj5zsx64mfj4l3889n94wdadp9s7fm-apple-framework-IOKit-12.3/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:120:53: error: expected ';' after top level declarator
typedef natural_t OSAsyncReference[kOSAsyncRefCount] __kernel_ptr_semantics;
                                                    ^
2 errors generated.
[38/1424] Building CXX object Telegram/codegen/codegen/emoji/CMakeFiles/codegen_emoji.dir/replaces.cpp.o
[39/1424] Building OBJCXX object Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/mac/base_global_shortcuts_mac.mm.o
FAILED: Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/mac/base_global_shortcuts_mac.mm.o 
/nix/store/22a6p8311lg3z4ksrjbj018i7z3vgkva-clang-wrapper-16.0.6/bin/clang++ -DDESKTOP_APP_DISABLE_X11_INTEGRATION -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x051500 -DQT_GUI_LIB -DQT_NETWORK_
LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_OPENGLWIDGETS_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_bas
e -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_rpl -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_crl -isystem /private/tmp/nix-build-telegram-desktop-5.
6.3.drv-1/source/Telegram/ThirdParty/GSL/include -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers -iframework /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.
8.0/lib -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/mkspecs/macx-clang -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Versions/A/Headers/6.8.0 -isy
stem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Versions/A/Headers/6.8.0/QtCore -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtGui.framework/Headers 
-isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtGui.framework/Versions/A/Headers/6.8.0 -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtGui.framework/Versions/A/H
eaders/6.8.0/QtGui -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtOpenGL.framework/Headers -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtWidgets.framework/Hea
ders -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtWidgets.framework/Versions/A/Headers/6.8.0 -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtWidgets.framework
/Versions/A/Headers/6.8.0/QtWidgets -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtOpenGLWidgets.framework/Headers -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib
/QtNetwork.framework/Headers -isystem /nix/store/whqdv6b5zz2nmmh8pwvhhmdnwj3kpgfz-qtsvg-6.8.0/lib/QtSvg.framework/Headers -iframework /nix/store/whqdv6b5zz2nmmh8pwvhhmdnwj3kpgfz-qtsvg-6.8.0/lib -isystem /nix/s
tore/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtDBus.framework/Headers -isystem /nix/store/z6zdscx265yc4fmczlqndzn9aaf1ncki-tl-expected-1.1.0/share -x objective-c++ -O3 -DNDEBUG -std=gnu++20 -pipe -Wa
ll -Wextra -fPIE -fobjc-weak -fvisibility-inlines-hidden -fvisibility=hidden -Wno-unused-variable -Wno-unused-parameter -Wno-unused-function -Wno-switch -Wno-comment -Wno-missing-field-initializers -Wno-sign-c
ompare -Wno-unknown-attributes -Wno-pragma-system-header-outside-header -Wno-shorten-64-to-32 -Winvalid-pch -Xclang -include-pch -Xclang /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/lib_ba
se/CMakeFiles/lib_base.dir/cmake_pch.objcxx.hxx.pch -Xclang -include -Xclang /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/lib_base/CMakeFiles/lib_base.dir/cmake_pch.objcxx.hxx -MD -MT Tele
gram/lib_base/CMakeFiles/lib_base.dir/base/platform/mac/base_global_shortcuts_mac.mm.o -MF Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/mac/base_global_shortcuts_mac.mm.o.d -o Telegram/lib_base/CMak
eFiles/lib_base.dir/base/platform/mac/base_global_shortcuts_mac.mm.o -c /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_global_shortcuts_mac.mm
In file included from /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_global_shortcuts_mac.mm:9:
In file included from /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_utilities_mac.h:10:
In file included from /nix/store/wjpfjap573f8kzc0r7ffabkbj74kmqhz-apple-framework-Cocoa-11.0.0/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/7kj149havj296c9p03m1v069vyxikmjp-apple-framework-Foundation-12.3/Library/Frameworks/Foundation.framework/Headers/Foundation.h:91:
In file included from /nix/store/7kj149havj296c9p03m1v069vyxikmjp-apple-framework-Foundation-12.3/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:87:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:26:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:56:
In file included from /nix/store/hs86pjkahbd3vcly21v1ivi3n8gqcivb-apple-framework-DiskArbitration-12.3/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h:28:
In file included from /nix/store/8hlj5zsx64mfj4l3889n94wdadp9s7fm-apple-framework-IOKit-12.3/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:49:
/nix/store/8hlj5zsx64mfj4l3889n94wdadp9s7fm-apple-framework-IOKit-12.3/Library/Frameworks/IOKit.framework/Headers/IOTypes.h:81:49: error: expected ';' after top level declarator
typedef mach_vm_address_t       IOVirtualAddress __kernel_ptr_semantics;
                                                ^
In file included from /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_global_shortcuts_mac.mm:9:
In file included from /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_utilities_mac.h:10:
In file included from /nix/store/wjpfjap573f8kzc0r7ffabkbj74kmqhz-apple-framework-Cocoa-11.0.0/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/7kj149havj296c9p03m1v069vyxikmjp-apple-framework-Foundation-12.3/Library/Frameworks/Foundation.framework/Headers/Foundation.h:91:
In file included from /nix/store/7kj149havj296c9p03m1v069vyxikmjp-apple-framework-Foundation-12.3/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:87:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:26:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:56:
In file included from /nix/store/hs86pjkahbd3vcly21v1ivi3n8gqcivb-apple-framework-DiskArbitration-12.3/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h:28:
In file included from /nix/store/8hlj5zsx64mfj4l3889n94wdadp9s7fm-apple-framework-IOKit-12.3/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:52:
/nix/store/8hlj5zsx64mfj4l3889n94wdadp9s7fm-apple-framework-IOKit-12.3/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:120:53: error: expected ';' after top level declarator
typedef natural_t OSAsyncReference[kOSAsyncRefCount] __kernel_ptr_semantics;
                                                    ^
2 errors generated.
[40/1424] Building OBJCXX object Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/mac/base_info_mac.mm.o
FAILED: Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/mac/base_info_mac.mm.o 
/nix/store/22a6p8311lg3z4ksrjbj018i7z3vgkva-clang-wrapper-16.0.6/bin/clang++ -DDESKTOP_APP_DISABLE_X11_INTEGRATION -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x051500 -DQT_GUI_LIB -DQT_NETWORK_
LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_OPENGLWIDGETS_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_bas
e -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_rpl -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_crl -isystem /private/tmp/nix-build-telegram-desktop-5.
6.3.drv-1/source/Telegram/ThirdParty/GSL/include -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers -iframework /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.
8.0/lib -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/mkspecs/macx-clang -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Versions/A/Headers/6.8.0 -isy
stem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Versions/A/Headers/6.8.0/QtCore -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtGui.framework/Headers 
-isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtGui.framework/Versions/A/Headers/6.8.0 -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtGui.framework/Versions/A/H
eaders/6.8.0/QtGui -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtOpenGL.framework/Headers -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtWidgets.framework/Hea
ders -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtWidgets.framework/Versions/A/Headers/6.8.0 -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtWidgets.framework
/Versions/A/Headers/6.8.0/QtWidgets -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtOpenGLWidgets.framework/Headers -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib
/QtNetwork.framework/Headers -isystem /nix/store/whqdv6b5zz2nmmh8pwvhhmdnwj3kpgfz-qtsvg-6.8.0/lib/QtSvg.framework/Headers -iframework /nix/store/whqdv6b5zz2nmmh8pwvhhmdnwj3kpgfz-qtsvg-6.8.0/lib -isystem /nix/s
tore/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtDBus.framework/Headers -isystem /nix/store/z6zdscx265yc4fmczlqndzn9aaf1ncki-tl-expected-1.1.0/share -x objective-c++ -O3 -DNDEBUG -std=gnu++20 -pipe -Wa
ll -Wextra -fPIE -fobjc-weak -fvisibility-inlines-hidden -fvisibility=hidden -Wno-unused-variable -Wno-unused-parameter -Wno-unused-function -Wno-switch -Wno-comment -Wno-missing-field-initializers -Wno-sign-c
ompare -Wno-unknown-attributes -Wno-pragma-system-header-outside-header -Wno-shorten-64-to-32 -Winvalid-pch -Xclang -include-pch -Xclang /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/lib_ba
se/CMakeFiles/lib_base.dir/cmake_pch.objcxx.hxx.pch -Xclang -include -Xclang /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/lib_base/CMakeFiles/lib_base.dir/cmake_pch.objcxx.hxx -MD -MT Tele
gram/lib_base/CMakeFiles/lib_base.dir/base/platform/mac/base_info_mac.mm.o -MF Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/mac/base_info_mac.mm.o.d -o Telegram/lib_base/CMakeFiles/lib_base.dir/base
/platform/mac/base_info_mac.mm.o -c /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_info_mac.mm
In file included from /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_info_mac.mm:12:
In file included from /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_utilities_mac.h:10:
In file included from /nix/store/wjpfjap573f8kzc0r7ffabkbj74kmqhz-apple-framework-Cocoa-11.0.0/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/7kj149havj296c9p03m1v069vyxikmjp-apple-framework-Foundation-12.3/Library/Frameworks/Foundation.framework/Headers/Foundation.h:91:
In file included from /nix/store/7kj149havj296c9p03m1v069vyxikmjp-apple-framework-Foundation-12.3/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:87:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:26:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:56:
In file included from /nix/store/hs86pjkahbd3vcly21v1ivi3n8gqcivb-apple-framework-DiskArbitration-12.3/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h:28:
In file included from /nix/store/8hlj5zsx64mfj4l3889n94wdadp9s7fm-apple-framework-IOKit-12.3/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:49:
/nix/store/8hlj5zsx64mfj4l3889n94wdadp9s7fm-apple-framework-IOKit-12.3/Library/Frameworks/IOKit.framework/Headers/IOTypes.h:81:49: error: expected ';' after top level declarator
typedef mach_vm_address_t       IOVirtualAddress __kernel_ptr_semantics;
                                                ^
In file included from /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_info_mac.mm:12:
In file included from /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/platform/mac/base_utilities_mac.h:10:
In file included from /nix/store/wjpfjap573f8kzc0r7ffabkbj74kmqhz-apple-framework-Cocoa-11.0.0/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /nix/store/7kj149havj296c9p03m1v069vyxikmjp-apple-framework-Foundation-12.3/Library/Frameworks/Foundation.framework/Headers/Foundation.h:91:
In file included from /nix/store/7kj149havj296c9p03m1v069vyxikmjp-apple-framework-Foundation-12.3/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:87:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h:26:
In file included from /nix/store/1mjlxyls38jyvk70pmziplxqqlaly6in-apple-framework-CoreServices-12.3/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:56:
In file included from /nix/store/hs86pjkahbd3vcly21v1ivi3n8gqcivb-apple-framework-DiskArbitration-12.3/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h:28:
In file included from /nix/store/8hlj5zsx64mfj4l3889n94wdadp9s7fm-apple-framework-IOKit-12.3/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:52:
/nix/store/8hlj5zsx64mfj4l3889n94wdadp9s7fm-apple-framework-IOKit-12.3/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:120:53: error: expected ';' after top level declarator
typedef natural_t OSAsyncReference[kOSAsyncRefCount] __kernel_ptr_semantics;
                                                    ^
2 errors generated.
[41/1424] Building CXX object Telegram/codegen/codegen/emoji/CMakeFiles/codegen_emoji.dir/data_old.cpp.o
[42/1424] Building CXX object Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/generator.cpp.o
[43/1424] Building CXX object Telegram/codegen/codegen/style/CMakeFiles/codegen_style.dir/parsed_file.cpp.o
ninja: build stopped: subcommand failed.

Additional context

This started happening lately on nixpkgs-unstable after staging was merged there. I've then checked on master and the failure is the same. I suspect it's related to the new Apple SDK that was part of staging merge. UPD: I am not actually sure the new SDK is in master / unstable yet, probably something else broke it?

Notify maintainers

@NickCao

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.6.0, macOS 14.7`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.8`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/store/mln6wr5z539qgldmsm4j1k8k0dm19yvz-source`

Add a 👍 reaction to issues you find important.

@svrana
Copy link
Member

svrana commented Oct 16, 2024

Might be worth seeing if #348910 resolves it for you

@booxter
Copy link
Contributor Author

booxter commented Oct 16, 2024

@svrana this is already with this PR. I've hit the issue on -unstable with 5.6.1 but then tried master version (5.6.3) with the same result.

@booxter
Copy link
Contributor Author

booxter commented Oct 16, 2024

I've tried to bump SDK version to 12.3 as follows:

diff --git a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix
index 6f6246702894..cf0d040b9495 100644
--- a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix
+++ b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/default.nix
@@ -144,7 +144,7 @@ stdenv.mkDerivation (finalAttrs: {
     hunspell
     webkitgtk_6_0
     jemalloc
-  ] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk_11_0.frameworks; [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk_12_3.frameworks; [
     Cocoa
     CoreFoundation
     CoreServices
diff --git a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/macos.patch b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/macos.patch
index 37b13b6844f3..92a4a2167ef4 100644
--- a/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/macos.patch
+++ b/pkgs/applications/networking/instant-messengers/telegram/telegram-desktop/macos.patch
@@ -1,55 +1,3 @@
-diff --git a/Telegram/SourceFiles/platform/mac/overlay_widget_mac.mm b/Telegram/SourceFiles/platform/mac/overlay_widget_mac.mm
-index ef544803e9..69c61b3139 100644
---- a/Telegram/SourceFiles/platform/mac/overlay_widget_mac.mm
-+++ b/Telegram/SourceFiles/platform/mac/overlay_widget_mac.mm
-@@ -97,9 +97,11 @@ void MacOverlayWidgetHelper::updateStyles(bool fullscreen) {
- 	[window setTitleVisibility:NSWindowTitleHidden];
- 	[window setTitlebarAppearsTransparent:YES];
- 	[window setStyleMask:[window styleMask] | NSWindowStyleMaskFullSizeContentView];
-+#if 0
- 	if (@available(macOS 12.0, *)) {
- 		_data->topNotchSkip = [[window screen] safeAreaInsets].top;
- 	}
-+#endif
- }
- 
- void MacOverlayWidgetHelper::refreshButtons(bool fullscreen) {
-Submodule Telegram/lib_base contains modified content
-diff --git a/Telegram/lib_base/base/platform/mac/base_battery_saving_mac.mm b/Telegram/lib_base/base/platform/mac/base_battery_saving_mac.mm
-index 7ce90d3..dac3c2c 100644
---- a/Telegram/lib_base/base/platform/mac/base_battery_saving_mac.mm
-+++ b/Telegram/lib_base/base/platform/mac/base_battery_saving_mac.mm
-@@ -138,6 +138,7 @@ BatterySaving::BatterySaving(Fn<void()> changedCallback) {
- 	_observer = [[LowPowerModeObserver alloc] initWithCallback:std::move(wrapped)];
- 
- 	NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
-+#if 0
- 	if (@available(macOS 12.0, *)) {
- 		[center
- 			addObserver: _observer
-@@ -145,6 +146,7 @@ BatterySaving::BatterySaving(Fn<void()> changedCallback) {
- 			name: NSProcessInfoPowerStateDidChangeNotification
- 			object: nil];
- 	}
-+#endif
- 	[center
- 		addObserver: _observer
- 		selector: @selector(powerStateChanged:)
-@@ -178,11 +180,13 @@ std::optional<bool> BatterySaving::enabled() const {
- 		return std::nullopt;
- 	}
- 	NSProcessInfo *info = [NSProcessInfo processInfo];
-+#if 0
- 	if (@available(macOS 12.0, *)) {
- 		if ([info isLowPowerModeEnabled]) {
- 			return true;
- 		}
- 	}
-+#endif
- 	const auto state = DetectBatteryState();
- 	if (!state.has || !state.draining) {
- 		return false;
-Submodule Telegram/lib_webrtc contains modified content
 diff --git a/Telegram/lib_webrtc/webrtc/platform/mac/webrtc_environment_mac.mm b/Telegram/lib_webrtc/webrtc/platform/mac/webrtc_environment_mac.mm
 index 7521c08..5e22da2 100644
 --- a/Telegram/lib_webrtc/webrtc/platform/mac/webrtc_environment_mac.mm
@@ -130,16 +78,3 @@ index 738e574..80ff5f0 100644
  	[_manager addScriptMessageHandler:_handler name:@"external"];
  	[_webview setNavigationDelegate:_handler];
  	[_webview setUIDelegate:_handler];
-@@ -658,10 +660,12 @@ void *Instance::winId() {
- }
- 
- void Instance::setOpaqueBg(QColor opaqueBg) {
-+#if 0
- 	if (@available(macOS 12.0, *)) {
- 		[_webview setValue: @NO forKey: @"drawsBackground"];
- 		[_webview setUnderPageBackgroundColor:[NSColor clearColor]];
- 	}
-+#endif
- }
- 
- void Instance::resizeToWindow() {
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index da091b43dd45..4a6a9c1b3bf4 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -32747,7 +32747,7 @@ with pkgs;
 
   telegram-desktop = qt6Packages.callPackage ../applications/networking/instant-messengers/telegram/telegram-desktop {
     stdenv = if stdenv.hostPlatform.isDarwin
-      then overrideSDK stdenv "11.0"
+      then overrideSDK stdenv "12.3"
       else stdenv;
   };
 

This made progress in the build but failed later as:

[544/1424] Building CXX object Telegram/CMakeFiles/td_ui.dir/SourceFiles/payments/ui/payments_reaction_box.cpp.o
FAILED: Telegram/CMakeFiles/td_ui.dir/SourceFiles/payments/ui/payments_reaction_box.cpp.o 
/nix/store/nsgak8vh6ymgz2x5wchj2g55lr6ric6p-clang-wrapper-16.0.6/bin/clang++ -DDESKTOP_APP_DISABLE_X11_INTEGRATION -DKCOREADDONS_EXPORT="" -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x051500 -D
QT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_OPENGLWIDGETS_LIB -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DTGCALLS_USE_STD_OPTIONAL -I/private/tmp/nix-build-t
elegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_ui -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_ui
/emoji_suggestions -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_rpl -I/private/tmp/nix-build-telegram
-desktop-5.6.3.drv-1/source/Telegram/lib_crl -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_lottie -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/ThirdParty/tg
calls -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_webview -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_webrtc -I/private/tmp/nix-build-telegram-deskto
p-5.6.3.drv-1/source/Telegram/lib_spellcheck -I/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/payments -isystem /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegra
m/gen -isystem /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/lib_ui/gen -isystem /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/ThirdParty/GSL/include -isystem /nix/sto
re/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers -iframework /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbas
e-6.8.0/mkspecs/macx-clang -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Versions/A/Headers/6.8.0 -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/
QtCore.framework/Versions/A/Headers/6.8.0/QtCore -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtGui.framework/Headers -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/
lib/QtGui.framework/Versions/A/Headers/6.8.0 -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtGui.framework/Versions/A/Headers/6.8.0/QtGui -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d
2najj-qtbase-6.8.0/lib/QtOpenGL.framework/Headers -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtWidgets.framework/Headers -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6
.8.0/lib/QtWidgets.framework/Versions/A/Headers/6.8.0 -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtWidgets.framework/Versions/A/Headers/6.8.0/QtWidgets -isystem /nix/store/6x6fn0pvyy
jc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtOpenGLWidgets.framework/Headers -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtNetwork.framework/Headers -isystem /nix/store/whqdv6b5zz2nmmh8p
wvhhmdnwj3kpgfz-qtsvg-6.8.0/lib/QtSvg.framework/Headers -iframework /nix/store/whqdv6b5zz2nmmh8pwvhhmdnwj3kpgfz-qtsvg-6.8.0/lib -isystem /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtDBus.fram
ework/Headers -isystem /nix/store/z6zdscx265yc4fmczlqndzn9aaf1ncki-tl-expected-1.1.0/share -isystem /nix/store/rh1pk71054395k20bf71p20gaj05nbfc-openal-soft-1.23.1/include/AL -isystem /private/tmp/nix-build-tel
egram-desktop-5.6.3.drv-1/source/Telegram/ThirdParty/kcoreaddons/src/lib/io -isystem /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/ThirdParty/kcoreaddons/src/lib/util -isystem /tmp/nix-bu
ild-telegram-desktop-5.6.3.drv-1/source/cmake/external/kcoreaddons/headers/public -O3 -DNDEBUG -std=gnu++20 -pipe -Wall -Wextra -fPIE -fvisibility-inlines-hidden -fvisibility=hidden -Wno-unused-variable -Wno-u
nused-parameter -Wno-unused-function -Wno-switch -Wno-comment -Wno-missing-field-initializers -Wno-sign-compare -Wno-unknown-attributes -Wno-pragma-system-header-outside-header -Wno-shorten-64-to-32 -Winvalid-
pch -Xclang -include-pch -Xclang /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/CMakeFiles/td_ui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /tmp/nix-build-telegram-desktop-5.6.3.drv-1/so
urce/build/Telegram/CMakeFiles/td_ui.dir/cmake_pch.hxx -MD -MT Telegram/CMakeFiles/td_ui.dir/SourceFiles/payments/ui/payments_reaction_box.cpp.o -MF Telegram/CMakeFiles/td_ui.dir/SourceFiles/payments/ui/paymen
ts_reaction_box.cpp.o.d -o Telegram/CMakeFiles/td_ui.dir/SourceFiles/payments/ui/payments_reaction_box.cpp.o -c /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/payments/ui/payments_reac
tion_box.cpp
/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/payments/ui/payments_reaction_box.cpp:46:21: warning: explicitly defaulted three-way comparison operator is implicitly deleted [-Wdefault
ed-function-deleted]
        friend inline auto operator<=>(
                           ^
/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/payments/ui/payments_reaction_box.cpp:44:10: note: defaulted 'operator<=>' is implicitly deleted because there is no viable three-way com
parison function for member 'name'
        QString name;
                ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/qt/qt_compare.h:18:43: note: candidate template ignored: could not match 'const gsl::not_null<P>' against 'const QString'
[[nodiscard]] inline std::strong_ordering operator<=>(
                                          ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/qt/qt_compare.h:33:43: note: candidate template ignored: could not match 'const QVector<T>' (aka 'const QList<type-parameter-0-
0>') against 'const QString'
[[nodiscard]] inline std::strong_ordering operator<=>(
                                          ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/qt/qt_compare.h:78:23: note: candidate template ignored: could not match 'const std::variant<Types...>' against 'const QString'
inline constexpr auto operator<=>(
                      ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/qt/qt_compare.h:91:23: note: candidate template ignored: could not match 'const std::vector<Type>' against 'const QString'
inline constexpr auto operator<=>(
                      ^
/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/payments/ui/payments_reaction_box.cpp:48:28: note: replace 'default' with 'delete'
                const TopReactorKey &) = default;
                                         ^~~~~~~
                                         delete
In file included from <built-in>:513:
In file included from /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/CMakeFiles/td_ui.dir/cmake_pch.hxx:5:
In file included from /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/ui/ui_pch.h:34:
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:673:11: error: no matching function for call to object of type 'const std::less<>'
                        return initial()(
                               ^~~~~~~~~
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:580:7: note: in instantiation of function template specialization 'base::flat_multi_map<Ui::(anonymous namespace)::T
opReactorKey, gsl::not_null<Ui::RpWidget *>>::transparent_compare::operator()<const Ui::(anonymous namespace)::TopReactorKey &, const Ui::(anonymous namespace)::TopReactorKey &, void>' requested here
                        || compare()(key, front().first)
                           ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:953:25: note: in instantiation of function template specialization 'base::flat_multi_map<Ui::(anonymous namespace)::
TopReactorKey, gsl::not_null<Ui::RpWidget *>>::findFirst<Ui::(anonymous namespace)::TopReactorKey>' requested here
                return this->template findFirst<OtherKey>(key);
                                      ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:956:10: note: in instantiation of function template specialization 'base::flat_map<Ui::(anonymous namespace)::TopRea
ctorKey, gsl::not_null<Ui::RpWidget *>>::find<Ui::(anonymous namespace)::TopReactorKey>' requested here
                return find<Key>(key);
                       ^
/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/payments/ui/payments_reaction_box.cpp:318:33: note: in instantiation of member function 'base::flat_map<Ui::(anonymous namespace)::TopRea
ctorKey, gsl::not_null<Ui::RpWidget *>>::find' requested here
                                const auto i = state->cache.find(key);
                                                            ^
/nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__functional/operations.h:394:10: note: candidate template ignored: substitution failure [with _T1 = const Ui::(anonymous namespace)
::TopReactorKey &, _T2 = const Ui::(anonymous namespace)::TopReactorKey &]: overload resolution selected deleted operator '<=>'
    auto operator()(_T1&& __t, _T2&& __u) const
         ^
In file included from <built-in>:513:
In file included from /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/CMakeFiles/td_ui.dir/cmake_pch.hxx:5:
In file included from /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/ui/ui_pch.h:34:
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:694:11: error: no matching member function for call to 'operator()'
                        return operator()(a.first, std::forward<OtherType>(b));
                               ^~~~~~~~~~
/nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__type_traits/is_callable.h:22:56: note: in instantiation of function template specialization 'base::flat_multi_map<Ui::(anonymous n
amespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>>::transparent_compare::operator()<const Ui::(anonymous namespace)::TopReactorKey &, void>' requested here
template<class _Func, class... _Args, class = decltype(std::declval<_Func>()(std::declval<_Args>()...))>
                                                       ^
/nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__type_traits/is_callable.h:23:11: note: in instantiation of default argument for '__is_callable_helper<base::flat_multi_map<Ui::(an
onymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>>::transparent_compare, base::flat_multi_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>> &, const Ui::(ano
nymous namespace)::TopReactorKey &>' required here
true_type __is_callable_helper(int);
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__type_traits/is_callable.h:28:33: note: while substituting deduced template arguments into function template '__is_callable_helper'
 [with _Func = base::flat_multi_map<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>>::transparent_compare, _Args = (no value), $2 = (no value)]
struct __is_callable : decltype(std::__is_callable_helper<_Func, _Args...>(0)) {};
                                ^
/nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__algorithm/lower_bound.h:53:17: note: in instantiation of template class 'std::__is_callable<base::flat_multi_map<Ui::(anonymous na
mespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>>::transparent_compare, base::flat_multi_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>> &, const Ui::(anonymous nam
espace)::TopReactorKey &>' requested here
  static_assert(__is_callable<_Compare, decltype(*__first), const _Tp&>::value,
                ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:730:15: note: in instantiation of function template specialization 'std::lower_bound<std::__wrap_iter<base::flat_mul
ti_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>> *>, Ui::(anonymous namespace)::TopReactorKey, base::flat_multi_map<Ui::(anonymous namespace)::TopReactorKey, gsl::not_n
ull<Ui::RpWidget *>>::transparent_compare>' requested here
                return std::lower_bound(
                            ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:584:16: note: in instantiation of function template specialization 'base::flat_multi_map<Ui::(anonymous namespace)::
TopReactorKey, gsl::not_null<Ui::RpWidget *>>::getLowerBound<Ui::(anonymous namespace)::TopReactorKey>' requested here
                auto where = getLowerBound(key);
                             ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:953:25: note: in instantiation of function template specialization 'base::flat_multi_map<Ui::(anonymous namespace)::
TopReactorKey, gsl::not_null<Ui::RpWidget *>>::findFirst<Ui::(anonymous namespace)::TopReactorKey>' requested here
                return this->template findFirst<OtherKey>(key);
                                      ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:956:10: note: in instantiation of function template specialization 'base::flat_map<Ui::(anonymous namespace)::TopRea
ctorKey, gsl::not_null<Ui::RpWidget *>>::find<Ui::(anonymous namespace)::TopReactorKey>' requested here
                return find<Key>(key);
                       ^
/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/payments/ui/payments_reaction_box.cpp:318:33: note: in instantiation of member function 'base::flat_map<Ui::(anonymous namespace)::TopRea
ctorKey, gsl::not_null<Ui::RpWidget *>>::find' requested here
                                const auto i = state->cache.find(key);
                                                            ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:691:18: note: candidate function template not viable: no known conversion from 'const Ui::(anonymous namespace)::Top
ReactorKey' to 'const pair_type' (aka 'const flat_multi_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>>') for 1st argument
                constexpr auto operator()(
                               ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:700:18: note: candidate function template not viable: no known conversion from 'const Ui::(anonymous namespace)::Top
ReactorKey' to 'const pair_type' (aka 'const flat_multi_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>>') for 2nd argument
                constexpr auto operator()(
                               ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:670:18: note: candidate template ignored: substitution failure [with OtherType1 = const Ui::(anonymous namespace)::T
opReactorKey &, OtherType2 = const Ui::(anonymous namespace)::TopReactorKey &, $2 = std::enable_if_t<!std::is_same_v<std::decay_t<const TopReactorKey &>, pair_type> && !std::is_same_v<std::decay_t<const TopRea
ctorKey &>, pair_type>>]
                constexpr auto operator()(
                               ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:680:18: note: candidate template ignored: requirement 'std::is_same_v<Ui::(anonymous namespace)::TopReactorKey, base
::flat_multi_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>>>' was not satisfied [with OtherType1 = const Ui::(anonymous namespace)::TopReactorKey &, OtherType2 = const U
i::(anonymous namespace)::TopReactorKey &]
                constexpr auto operator()(
                               ^
In file included from <built-in>:513:
In file included from /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/CMakeFiles/td_ui.dir/cmake_pch.hxx:5:
In file included from /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/ui/ui_pch.h:9:
In file included from /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers/QString:1:
In file included from /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers/qstring.h:14:
In file included from /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers/qchar.h:8:
In file included from /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers/qcompare.h:628:
In file included from /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers/qcomparehelpers.h:27:
In file included from /nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/functional:515:
In file included from /nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__functional/boyer_moore_searcher.h:24:
In file included from /nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/array:536:
In file included from /nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/algorithm:1716:
In file included from /nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__algorithm/binary_search.h:14:
/nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__algorithm/lower_bound.h:53:3: error: static assertion failed due to requirement '__is_callable<base::flat_multi_map<Ui::(anonymous
 namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>, std::less<void>>::transparent_compare, base::flat_multi_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>> &, cons
t Ui::(anonymous namespace)::TopReactorKey &>::value': The comparator has to be callable
  static_assert(__is_callable<_Compare, decltype(*__first), const _Tp&>::value,
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:730:15: note: in instantiation of function template specialization 'std::lower_bound<std::__wrap_iter<base::flat_mul
ti_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>> *>, Ui::(anonymous namespace)::TopReactorKey, base::flat_multi_map<Ui::(anonymous namespace)::TopReactorKey, gsl::not_n
ull<Ui::RpWidget *>>::transparent_compare>' requested here
                return std::lower_bound(
                            ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:584:16: note: in instantiation of function template specialization 'base::flat_multi_map<Ui::(anonymous namespace)::
TopReactorKey, gsl::not_null<Ui::RpWidget *>>::getLowerBound<Ui::(anonymous namespace)::TopReactorKey>' requested here
                auto where = getLowerBound(key);
                             ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:953:25: note: in instantiation of function template specialization 'base::flat_multi_map<Ui::(anonymous namespace)::
TopReactorKey, gsl::not_null<Ui::RpWidget *>>::findFirst<Ui::(anonymous namespace)::TopReactorKey>' requested here
                return this->template findFirst<OtherKey>(key);
                                      ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:956:10: note: in instantiation of function template specialization 'base::flat_map<Ui::(anonymous namespace)::TopRea
ctorKey, gsl::not_null<Ui::RpWidget *>>::find<Ui::(anonymous namespace)::TopReactorKey>' requested here
                return find<Key>(key);
                       ^
/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/payments/ui/payments_reaction_box.cpp:318:33: note: in instantiation of member function 'base::flat_map<Ui::(anonymous namespace)::TopRea
ctorKey, gsl::not_null<Ui::RpWidget *>>::find' requested here
                                const auto i = state->cache.find(key);
                                                            ^
In file included from <built-in>:513:
In file included from /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/CMakeFiles/td_ui.dir/cmake_pch.hxx:5:
In file included from /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/ui/ui_pch.h:9:
In file included from /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers/QString:1:
In file included from /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers/qstring.h:14:
In file included from /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers/qchar.h:8:
In file included from /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers/qcompare.h:628:
In file included from /nix/store/6x6fn0pvyyjc5q9snj22l1rwq1d2najj-qtbase-6.8.0/lib/QtCore.framework/Headers/qcomparehelpers.h:27:
In file included from /nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/functional:515:
In file included from /nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__functional/boyer_moore_searcher.h:24:
In file included from /nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/array:536:
In file included from /nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/algorithm:1716:
In file included from /nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__algorithm/binary_search.h:14:
/nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__algorithm/lower_bound.h:40:9: error: attempt to use a deleted function
    if (std::__invoke(__comp, std::__invoke(__proj, *__m), __value)) {
        ^
/nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__algorithm/lower_bound.h:56:15: note: in instantiation of function template specialization 'std::__lower_bound_impl<std::_ClassicAl
gPolicy, std::__wrap_iter<base::flat_multi_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>> *>, std::__wrap_iter<base::flat_multi_map_pair_type<Ui::(anonymous namespace)::
TopReactorKey, gsl::not_null<Ui::RpWidget *>> *>, Ui::(anonymous namespace)::TopReactorKey, std::__identity, base::flat_multi_map<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>>::trans
parent_compare>' requested here
  return std::__lower_bound_impl<_ClassicAlgPolicy>(__first, __last, __value, __comp, __proj);
              ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:730:15: note: in instantiation of function template specialization 'std::lower_bound<std::__wrap_iter<base::flat_mul
ti_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>> *>, Ui::(anonymous namespace)::TopReactorKey, base::flat_multi_map<Ui::(anonymous namespace)::TopReactorKey, gsl::not_n
ull<Ui::RpWidget *>>::transparent_compare>' requested here
                return std::lower_bound(
                            ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:584:16: note: in instantiation of function template specialization 'base::flat_multi_map<Ui::(anonymous namespace)::
TopReactorKey, gsl::not_null<Ui::RpWidget *>>::getLowerBound<Ui::(anonymous namespace)::TopReactorKey>' requested here
                auto where = getLowerBound(key);
                             ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:953:25: note: in instantiation of function template specialization 'base::flat_multi_map<Ui::(anonymous namespace)::
TopReactorKey, gsl::not_null<Ui::RpWidget *>>::findFirst<Ui::(anonymous namespace)::TopReactorKey>' requested here
                return this->template findFirst<OtherKey>(key);
                                      ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:956:10: note: in instantiation of function template specialization 'base::flat_map<Ui::(anonymous namespace)::TopRea
ctorKey, gsl::not_null<Ui::RpWidget *>>::find<Ui::(anonymous namespace)::TopReactorKey>' requested here
                return find<Key>(key);
                       ^
/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/payments/ui/payments_reaction_box.cpp:318:33: note: in instantiation of member function 'base::flat_map<Ui::(anonymous namespace)::TopRea
ctorKey, gsl::not_null<Ui::RpWidget *>>::find' requested here
                                const auto i = state->cache.find(key);
                                                            ^
/nix/store/z6r3bn5l51679pwkvh9nalp6c317z34m-libcxx-16.0.6-dev/include/c++/v1/__type_traits/nat.h:26:5: note: '~__nat' has been explicitly marked deleted here
    ~__nat() = delete;
    ^
In file included from <built-in>:513:
In file included from /tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/build/Telegram/CMakeFiles/td_ui.dir/cmake_pch.hxx:5:
In file included from /private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/ui/ui_pch.h:34:
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:585:10: error: no matching function for call to object of type 'const transparent_compare'
                return compare()(key, where->first) ? impl().end() : where;
                       ^~~~~~~~~
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:953:25: note: in instantiation of function template specialization 'base::flat_multi_map<Ui::(anonymous namespace)::
TopReactorKey, gsl::not_null<Ui::RpWidget *>>::findFirst<Ui::(anonymous namespace)::TopReactorKey>' requested here
                return this->template findFirst<OtherKey>(key);
                                      ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:956:10: note: in instantiation of function template specialization 'base::flat_map<Ui::(anonymous namespace)::TopRea
ctorKey, gsl::not_null<Ui::RpWidget *>>::find<Ui::(anonymous namespace)::TopReactorKey>' requested here
                return find<Key>(key);
                       ^
/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/SourceFiles/payments/ui/payments_reaction_box.cpp:318:33: note: in instantiation of member function 'base::flat_map<Ui::(anonymous namespace)::TopRea
ctorKey, gsl::not_null<Ui::RpWidget *>>::find' requested here
                                const auto i = state->cache.find(key);
                                                            ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:691:18: note: candidate function template not viable: no known conversion from 'const Ui::(anonymous namespace)::Top
ReactorKey' to 'const pair_type' (aka 'const flat_multi_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>>') for 1st argument
                constexpr auto operator()(
                               ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:700:18: note: candidate function template not viable: no known conversion from 'const Ui::(anonymous namespace)::Top
ReactorKey' to 'const pair_type' (aka 'const flat_multi_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>>') for 2nd argument
                constexpr auto operator()(
                               ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:670:18: note: candidate template ignored: substitution failure [with OtherType1 = const Ui::(anonymous namespace)::T
opReactorKey &, OtherType2 = const Ui::(anonymous namespace)::TopReactorKey &, $2 = std::enable_if_t<!std::is_same_v<std::decay_t<const TopReactorKey &>, pair_type> && !std::is_same_v<std::decay_t<const TopRea
ctorKey &>, pair_type>>]
                constexpr auto operator()(
                               ^
/private/tmp/nix-build-telegram-desktop-5.6.3.drv-1/source/Telegram/lib_base/base/flat_map.h:680:18: note: candidate template ignored: requirement 'std::is_same_v<Ui::(anonymous namespace)::TopReactorKey, base
::flat_multi_map_pair_type<Ui::(anonymous namespace)::TopReactorKey, gsl::not_null<Ui::RpWidget *>>>' was not satisfied [with OtherType1 = const Ui::(anonymous namespace)::TopReactorKey &, OtherType2 = const U
i::(anonymous namespace)::TopReactorKey &]
                constexpr auto operator()(
                               ^
1 warning and 5 errors generated.
[545/1424] Building CXX object Telegram/CMakeFiles/td_ui.dir/SourceFiles/statistics/view/stack_linear_chart_view.cpp.o
[546/1424] Building CXX object Telegram/CMakeFiles/td_ui.dir/SourceFiles/media/player/media_player_dropdown.cpp.o
[547/1424] Building CXX object Telegram/CMakeFiles/td_ui.dir/SourceFiles/statistics/widgets/chart_lines_filter_widget.cpp.o
[548/1424] Building CXX object Telegram/CMakeFiles/td_ui.dir/SourceFiles/settings/settings_common.cpp.o
[549/1424] Building CXX object Telegram/CMakeFiles/td_ui.dir/SourceFiles/statistics/widgets/point_details_widget.cpp.o
[550/1424] Building CXX object Telegram/CMakeFiles/td_ui.dir/SourceFiles/payments/ui/payments_form_summary.cpp.o
[551/1424] Building CXX object Telegram/CMakeFiles/td_ui.dir/SourceFiles/statistics/chart_widget.cpp.o
[552/1424] Building CXX object Telegram/CMakeFiles/td_ui.dir/SourceFiles/ui/boxes/auto_delete_settings.cpp.o
[553/1424] Building CXX object Telegram/CMakeFiles/td_ui.dir/SourceFiles/payments/ui/payments_panel.cpp.o
[554/1424] Building CXX object Telegram/CMakeFiles/td_scheme.dir/gen/scheme-dump_to_text.cpp.o
[555/1424] Building CXX object Telegram/CMakeFiles/td_scheme.dir/gen/scheme.cpp.o
ninja: build stopped: subcommand failed.


@booxter booxter changed the title Build failure: telegram-desktop Build failure: telegram-desktop on darwin Oct 16, 2024
@booxter
Copy link
Contributor Author

booxter commented Oct 16, 2024

btw this was caught in CI when a git master was pulled for telegram: https://github.com/NixOS/nixpkgs/runs/31453122203

@svrana svrana added the 6.topic: darwin Running or building packages on Darwin label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

2 participants