/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
Created attachment 884764 [details] build log clang++-17 -lc++
Same for 4.14.15 (edited summary)
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.
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(+)
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(-)