С оф ресурса gRPC по инструкции делаю:
$ git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
$ cd grpc
$ git submodule update --init
$ make
Выдает ошибку:
src/core/lib/iomgr/tcp_posix.cc:534:61: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
tcp->inq = *reinterpret_cast<int*>(CMSG_DATA( ^
src/core/lib/iomgr/tcp_posix.cc: In function ‘bool tcp_write_with_timestamps({anonymous}::grpc_tcp*, msghdr*, size_t, ssize_t*)’:
src/core/lib/iomgr/tcp_posix.cc:714:42: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
*reinterpret_cast<int*>(CMSG_DATA(cmsg)) =
Как поправить?
p.s. protobuf установлен. protoc проверил.