Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924323 - net-im/telegram-desktop-4.14.15 fails with clang++-17
Summary: net-im/telegram-desktop-4.14.15 fails with clang++-17
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:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-02-12 02:33 UTC by Geoff Leach
Modified: 2025-01-06 02:05 UTC (History)
7 users (show)

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


Attachments
build log clang++-17 -lc++ (net-im:telegram-desktop-4.14.9:20240212-003301.log.gz,97.97 KB, application/gzip)
2024-02-12 02:35 UTC, Geoff Leach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Leach 2024-02-12 02:33:39 UTC
/var/tmp/portage/net-im/telegram-desktop-4.14.9/work/tdesktop-4.14.9-full/Telegr
am/SourceFiles/history/view/media/history_view_web_page.cpp:157:16: error: no ma
tching function for call to 'make_optional'
  157 |         auto result = std::make_optional<SponsoredData>();
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Builds ok with g++-13.

log attached
Comment 1 Geoff Leach 2024-02-12 02:35:01 UTC
Created attachment 884764 [details]
build log clang++-17 -lc++
Comment 2 Geoff Leach 2024-02-13 08:57:21 UTC
Same for 4.14.15 (edited summary)
Comment 3 Esteve Varela Colominas 2024-02-13 18:38:53 UTC
Thanks for reporting.
It's a known issue, don't use libstdc++ with clang. I don't know what causes it but I know more projects are affected by incompatibilities like this. Both clang+libc++ and gcc+libstdc++ work, but you have to make sure to build your entire dependency chain with only one of these libraries.
I don't don't know where the old ticket for it went, so I guess I'll link future issues here.
Comment 4 Larry the Git Cow gentoo-dev 2025-01-03 01:17:11 UTC
The bug has been referenced in the following commit(s):

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

commit 25c6fc40b1ceeb8767813787813a0eb66c032849
Author:     Esteve Varela Colominas <esteve.varela@gmail.com>
AuthorDate: 2025-01-02 22:26:25 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2025-01-03 01:16:08 +0000

    media-libs/tg_owt: Bump to 0_pre20241202
    
    This should relieve some build issues with clang/libstdcxx (not clang/libc++).
    No real interesting changes otherwise...
    
    Bug: https://bugs.gentoo.org/924323
    Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 media-libs/tg_owt/Manifest                    |   1 +
 media-libs/tg_owt/tg_owt-0_pre20241202.ebuild | 123 ++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)
Comment 5 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=1516b45258c043c989783297073358f41bb35321

commit 1516b45258c043c989783297073358f41bb35321
Author:     Esteve Varela Colominas <esteve.varela@gmail.com>
AuthorDate: 2025-01-05 21:38:47 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2025-01-06 02:03:34 +0000

    media-libs/tg_owt: Drop old
    
    Closes: https://bugs.gentoo.org/924323
    Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 media-libs/tg_owt/Manifest                       |   1 -
 media-libs/tg_owt/tg_owt-0_pre20240804-r2.ebuild | 123 -----------------------
 2 files changed, 124 deletions(-)