Skip to content

no matching function for call SetTotalBytesLimit(int, int) in building grpc #468

@sschaud2

Description

@sschaud2

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:

  1. root-dev-bootstrap.sh

  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions