scylladb / seastar

High performance server-side application framework
http://seastar.io
Apache License 2.0
8.15k stars 1.53k forks source link

[project unrelated] Question about solving __common_cmp_cat duplicate definition problem #2234

Closed neko-para closed 1 month ago

neko-para commented 2 months ago

I've encountered the same problem that this commit refered. I've tried add #include <compare> ahead in my project, but it seems not work. @tchaikov Could you please share some extra information about how this could work? i.e. where exactly this header should been added to if multiple modules raise this problem.


The action is performed on archlinux with clang17.

I've tried with this commit, but in action it just failed as previous one.

tchaikov commented 1 month ago

@neko-para , i don't have enough bandwidth looking into your issue. actually, this FTBFS is still a mystery to me.

but i think, C++20 modules support in Clang-17 is still not quite ready in production. in addition to trying out Clang-18 plus libstdc++-13, i'd also suggest to reduce your module implementation unit until the said problem disappears and then identify what you need to workaround this problem.

in the meanwhile, i am closing your issue. as you put, it is not quite relevant to Seastar.