-
Notifications
You must be signed in to change notification settings - Fork 915
Description
Hi,
I am setting up P4 tutorial environment on my Ubuntu server (not VM).
OS version: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
For this I'm following scripts in tutorial/vm-ubuntu-20.04 and executed scripts in following sequence:
-
root-dev-bootstrap.sh
-
user-dev-bootstrap.sh
For user-dev-bootstrap.sh, I got errors while building grpc while executing statement "sudo make install". Following are the errors:
In file included from /afs/unity.ncsu.edu/users/s/sschaud2/tutorials/vm-ubuntu-20.04/grpc/gens/src/proto/grpc/core/stats.grpc.pb.h:29,
from /afs/unity.ncsu.edu/users/s/sschaud2/tutorials/vm-ubuntu-20.04/grpc/gens/src/proto/grpc/core/stats.grpc.pb.cc:6:
include/grpcpp/impl/codegen/proto_utils.h: In function ‘grpc::Status grpc::GenericDeserialize(grpc::ByteBuffer*, grpc::protobuf::Message*)’:
include/grpcpp/impl/codegen/proto_utils.h:86:48: error: no matching function for call to ‘google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int, int)’
86 | decoder.SetTotalBytesLimit(INT_MAX, INT_MAX);
| ^
In file included from /afs/unity.ncsu.edu/users/s/sschaud2/tutorials/vm-ubuntu-20.04/grpc/gens/src/proto/grpc/core/stats.pb.h:23,
from /afs/unity.ncsu.edu/users/s/sschaud2/tutorials/vm-ubuntu-20.04/grpc/gens/src/proto/grpc/core/stats.grpc.pb.cc:5:
/usr/local/include/google/protobuf/io/coded_stream.h:401:8: note: candidate: ‘void google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int)’
401 | void SetTotalBytesLimit(int total_bytes_limit);
| ^~~~~~~~~~~~~~~~~~
/usr/local/include/google/protobuf/io/coded_stream.h:401:8: note: candidate expects 1 argument, 2 provided
Protobuf is already installed making grpc.