Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 924323

Summary: net-im/telegram-desktop-4.14.15 fails with clang++-17
Product: Gentoo Linux Reporter: Geoff Leach <gl>
Component: Current packagesAssignee: Esteve Varela Colominas <esteve.varela>
Status: UNCONFIRMED ---    
Severity: normal CC: dlan, esteve.varela, gl, jstein, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log clang++-17 -lc++

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.