-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sysdig fails to build with grpc 1.41 #1778
Comments
The problem is not the C++ standard (it reprouces when building everything with c++17) but that code that links against grpc-1.41 also needs to link a new dependency required by grpc itself (libabsl_synchronization) so it could be a bug in grpc, though it looks more like something missing in libsinsp's grpc support. |
I'm not sure how useful this is for current master, but the patch here makes 0.27.1 build/link/work against grpc-1.41 for me on Gentoo (without any bundled deps), even with all of abseil-cpp/grpc/sysdig built with LTO. :) |
@hhoffstaette thanks for the patch, but it doesn't seem like that's the same issue. As you can see in the log of my error, the |
Nevermind, it works. I was looking at the wrong log. Thanks again! |
I'm looking at the same failure for openSUSE. The link call needs to be in a block that first checks if the library was found, or it will cause errors when building with older grpc.
When sysdig updates the minimum CMake version, this could be converted to a generator expression. The build still fails but not because of this issue anymore :) |
We need the patch adopted by Arch Linux and reported upstream at draios/sysdig#1778 to build this on Linux.
We need the patch adopted by Arch Linux and reported upstream at draios/sysdig#1778 to build this on Linux. Also, skip the libscap examples, and don't force a C++ standard. This leads to build failures.
@mtorromeo I opened a PR to fix build using system grpc: falcosecurity/libs#144. Hopefully it will get merged soon :) |
The PR on libs is now merged; Sysdig still points to an older one though. |
Sysdig 0.28 should built with system grpc! @mtorromeo any feedback? |
@FedeDP yes, it works fine now. Thanks |
As per the title, I am having some trouble building sysdig against grpc 1.41.0 on Arch.
The build fails at the linking phase with the following error:
It is my understanding that the problem is due to ABI incompatibility between grpc and abseil-cpp being built using c++17 while sysdig uses c++0x.
This has been a potential problem for a while, but it happened to work just fine with grpc up to version 1.39.0.
I tried building sysdig with c++17 as well, patching the cmake files where necessary, but it fails with a different type of error with the code generated by protobuf, I think. I don't have the log handy at the moment, but I can try it again and paste it here later if you need it.
Thanks
The text was updated successfully, but these errors were encountered: