Recently I have started working on Grpc. On Grpc C++ compilation I get below error, not sure what is caused the issue.
I am not from C++ background, any help will be much useful for me.
[HOSTLD] Linking /home/test/grpc/bins/opt/grpc_ruby_plugin [PROTOC] Generating protobuf CC file from src/proto/grpc/channelz/channelz.proto [GRPC] Generating gRPC's protobuf service CC file from src/proto/grpc/channelz/channelz.proto
terminate called after throwing an instance of 'std::system_error'
what(): Unknown error -1
--grpc_out: protoc-gen-grpc: Plugin killed by signal 6.
make: *** [/home/test/grpc/gens/src/proto/grpc/channelz/channelz.grpc.pb.cc] Error 1
Before the I was trying cross compilation and that was resulted in "grpc segmentation fault" on helloworld communication. To clear that I have followed below step.
I nuked my /usr/local/lib/ and cleared out all proto and grpc libs
rm -f /usr/local/lib/libproto* /usr/local/lib/libgrpc*
Cleaned everything
git submodule foreach git clean -xfd
git clean -xfd
Then re-installed everything but still, I get the above error. Can someone please help me on this issue?
Note: I removed the complete grpc folder, recloned it. Installed protobuf and the protobuf installation is successful but when I give "make" command in gRPC I get above error.
When I googled it, this looks to be some generic error from c++ side.
Below are steps which I have followed.:
• git clone -b $(curl -L http://grpc.io/release) https://github.com/grpc/grpc
• cd grpc
• git submodule update --init
• cd third_party/protobuf
• ./Autogen.sh
• ./configure
• make && make install (Protobuf installation is successful)
• go to grpc folder and give make.
This is not successful, throws terminate called after throwing an instance of 'std::system_error'