[P4-dev] Right version of protobuf to use?

Alan Lo alanlo at mellanox.com
Thu Dec 7 14:05:54 EST 2017


Thanks Antonin!

These versions worked fine for me for both P4c and PI (on both Ubuntu 16 and OS X 10.12). Also with some minor tweaks it worked fine on Debian Jessie. Can we consider updating the PI documentation to reflect this information? While p4c can still use protobuf 3.0.2, this version had many issues in building PI because of the gRPC dependencies.

Thanks,
Aan

From: Antonin Bas <antonin at barefootnetworks.com<mailto:antonin at barefootnetworks.com>>
Date: Wednesday, November 29, 2017 at 7:23 PM
To: Alan Lo <alanlo at mellanox.com<mailto:alanlo at mellanox.com>>
Cc: "p4-dev at lists.p4.org<mailto:p4-dev at lists.p4.org>" <p4-dev at lists.p4.org<mailto:p4-dev at lists.p4.org>>
Subject: Re: [P4-dev] Right version of protobuf to use?

Hi Alan,

I personally use the following versions:
- protobuf 3.2.0
- grpc 1.3.2
These versions work for both p4lang/p4c and p4lang/PI. They also correspond to the refpoints we use in the p4lang/third-party repo: https://github.com/p4lang/third-party<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fp4lang%2Fthird-party&data=02%7C01%7Calanlo%40mellanox.com%7Cf1736e2284aa45dc2dc008d5374de2f9%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636475730021612878&sdata=C%2Ff2RGE3g3CBpaQnbGJbXVM32LIsXQUe23xTBm5lMpw%3D&reserved=0>, which means they are the versions we use for CI regressions.
More recent versions are likely to work fine as well (as long as the grpc and protobuf versions are compatible), but I haven't done any testing.

Thanks,

Antonin

On Wed, Nov 29, 2017 at 12:03 AM, Alan Lo <alanlo at mellanox.com<mailto:alanlo at mellanox.com>> wrote:
Also, to add, I am building grpc 1.7.0, which seems to require protobuf 3.4.x
Is going with an earlier version of grpc work as well? (I believe grpc 1.01 needs protobuf 3.0.2)

Thanks,
Alan

From: Alan Lo <alanlo at mellanox.com<mailto:alanlo at mellanox.com>>
Date: Wednesday, November 29, 2017 at 9:21 AM
To: "p4-dev at lists.p4.org<mailto:p4-dev at lists.p4.org>" <p4-dev at lists.p4.org<mailto:p4-dev at lists.p4.org>>
Subject: Right version of protobuf to use?

Hi,

I  am building a p4runtime for a new target, so was looking at the grpc_demo app in the PI repository. It looks like the latest PI requires protobuf 3.4 (otherwise there is a known compile error in grpc). However, p4c-16 itself, in the README.md, says to stick with 3.0.x.

Does anyone know if p4c has any known problems with protobuf 3.4.x, as it is a pain to have two different versions of protoc in our dev environment.

Thanks,
Alan

_______________________________________________
P4-dev mailing list
P4-dev at lists.p4.org<mailto:P4-dev at lists.p4.org>
http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.p4.org%2Fmailman%2Flistinfo%2Fp4-dev_lists.p4.org&data=02%7C01%7Calanlo%40mellanox.com%7Cf1736e2284aa45dc2dc008d5374de2f9%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636475730021612878&sdata=2YhWgrD%2FH2QycJPm8HYW%2FaJmTw8y9eg1hb7th4s1Q%2Fo%3D&reserved=0>



--
Antonin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20171207/2726ad7f/attachment-0002.html>


More information about the P4-dev mailing list