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: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Esteve Varela Colominas
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-12 02:33 UTC by Geoff Leach
Modified: 2024-02-13 18:38 UTC (History)
5 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.