Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940230 - net-im/telegram-desktop-5.5.5 fails to build with Clang 19
Summary: net-im/telegram-desktop-5.5.5 fails to build with Clang 19
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Esteve Varela Colominas
URL: https://github.com/telegramdesktop/td...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-09-25 07:54 UTC by Pablo Cholaky
Modified: 2025-01-06 02:05 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes the build crashes by template (llvm19.patch,2.19 KB, patch)
2024-09-25 08:09 UTC, Pablo Cholaky
Details | Diff
Build error of Telegram without the patch (build.log.gz,35.11 KB, application/gzip)
2024-10-02 16:42 UTC, Pablo Cholaky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo Cholaky 2024-09-25 07:54:07 UTC
Clang 19 fails to build Telegram Desktop 5.5.5

Reproducible: Always

Steps to Reproduce:
1.Install Clang 19
2.Build Telegram Desktop
3.Observe the crash
Actual Results:  
Fails to build

Expected Results:  
Build
Comment 1 Pablo Cholaky 2024-09-25 08:09:19 UTC
Created attachment 903728 [details, diff]
Fixes the build crashes by template

Just created a patch based on https://github.com/telegramdesktop/tdesktop/pull/28446 for Telegram Desktop 5.4.1.

It works for me. Had to add extra changes for the generated ones.

Haven't tried with other LLVM versions or if this would impact something else.
Comment 2 Esteve Varela Colominas 2024-09-29 15:38:03 UTC
Can you upload the failing build log and emerge --info? I want to know if this is related to other long-standing clang build problems we had workarounds for.
Comment 3 Pablo Cholaky 2024-10-02 16:42:50 UTC
Created attachment 904690 [details]
Build error of Telegram without the patch
Comment 4 Larry the Git Cow gentoo-dev 2025-01-06 02:05:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6dab9ad240fc6a8484460fa6617777335337118

commit b6dab9ad240fc6a8484460fa6617777335337118
Author:     Esteve Varela Colominas <esteve.varela@gmail.com>
AuthorDate: 2025-01-05 21:37:19 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2025-01-06 02:03:31 +0000

    net-im/telegram-desktop: Drop old
    
    Closes: https://bugs.gentoo.org/942770
    Closes: https://bugs.gentoo.org/940230
    Closes: https://bugs.gentoo.org/943388
    Closes: https://bugs.gentoo.org/946911
    Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 net-im/telegram-desktop/Manifest                   |   2 -
 .../files/tdesktop-5.8.3-webkit-no-wayland.patch   |  16 --
 net-im/telegram-desktop/metadata.xml               |   1 -
 .../telegram-desktop/telegram-desktop-5.5.5.ebuild | 261 ---------------------
 .../telegram-desktop-5.8.3-r1.ebuild               | 243 -------------------
 5 files changed, 523 deletions(-)