/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.