portage has an old version (1.32.0, released in sept 2020). I'm hit by some bugs in it. The last version is 1.37.1 (released 20 hours ago :-) https://github.com/grpc/grpc/releases Reproducible: Always
I tried just copying the ebuild, but it fails as the patch (use-pkg-config-to-find-re2.patch) doesn't apply cleanly anymore I removed the patch from the ebuild, and it now fails with lot of cmake errors like: CMake Error at CMakeLists.txt:2974 (add_library): Target "grpc++_alts" links to target "absl::statusor" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? CMake Error at CMakeLists.txt:2247 (add_library): Target "grpc_unsecure" links to target "absl::statusor" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? ... Now i'm stuck.
It's in the tree. patch no longer needed as it was fixed upstream.
as for absl error, you need new absl and both grpc and absl compiled with cxx17 standard. new ebuild takes care of that so it'll just work.
And i can confirm it works. Thanks a lot !