p4-dev@lists.p4.org

list for questions/discussion of p4 programs and tools

View all threads

P4lang pi/bmv4/p4c for Debian 10/Debian 11

FL
Frédéric LOUI
Wed, Nov 3, 2021 9:28 AM

Hi,

For P4 developer using bmv2 target:

I’ve re-enabled automated build for p4lang-pi, bmv2.

p4c has been built however, the build is for now manual. (Need to find a GitHub spell in order to automate the build again from OBS)

p4lang/p4c project added a debian folder not compatible with OBS quilt. (OBS is using quilt format 1.0)
And I could not find a proper to alter quit version via OBS git hook.

Packages are here:
Debian 10: (aka buster)
https://download.opensuse.org/repositories/home:/frederic-loui:/p4lang:/p4c:/master/Debian_10/amd64/

For the record these packages have been use over the last 2 years in order to validate our code on bmv2 target
Here: rare.freertr.net

I also started Debian 11 (bullseye) automated built in sync with p4lang GitHub/main:
https://download.opensuse.org/repositories/home:/frederic-loui:/p4lang:/p4c:/main/Debian_11/amd64/

As opposed to buster packages, these ones use stock protobuf/grpc/thrift from debian bullseyes

So:
protobuf 3.6.1 has been replaced by protobuf 3.12.4
grpc 1.17.2 has been replaced by 1.30.2
thrift 0.12.0 has been replaced by 0.13.0

My hope is that p4lang project will slowly drop old stable (buster) support  and align software for stable (bullseye). (Or may not :-P)

These packages have not been tested, you have the prime !
Feel free to reach me should you have valuable feedback to share.

PS: p4c built for Bullseye has somewhat random issue to built properly (the build ends with out of memory @ OBS), so you might have to wait until a build succeeds …

Happy p4,
Frederic

Hi, For P4 developer using bmv2 target: I’ve re-enabled automated build for p4lang-pi, bmv2. p4c has been built however, the build is for now manual. (Need to find a GitHub spell in order to automate the build again from OBS) p4lang/p4c project added a debian folder not compatible with OBS quilt. (OBS is using quilt format 1.0) And I could not find a proper to alter quit version via OBS git hook. Packages are here: Debian 10: (aka buster) https://download.opensuse.org/repositories/home:/frederic-loui:/p4lang:/p4c:/master/Debian_10/amd64/ For the record these packages have been use over the last 2 years in order to validate our code on bmv2 target Here: rare.freertr.net I also started Debian 11 (bullseye) automated built in sync with p4lang GitHub/main: https://download.opensuse.org/repositories/home:/frederic-loui:/p4lang:/p4c:/main/Debian_11/amd64/ As opposed to buster packages, these ones use stock protobuf/grpc/thrift from debian bullseyes So: protobuf 3.6.1 has been replaced by protobuf 3.12.4 grpc 1.17.2 has been replaced by 1.30.2 thrift 0.12.0 has been replaced by 0.13.0 My hope is that p4lang project will slowly drop old stable (buster) support and align software for stable (bullseye). (Or may not :-P) These packages have not been tested, you have the prime ! Feel free to reach me should you have valuable feedback to share. PS: p4c built for Bullseye has somewhat random issue to built properly (the build ends with out of memory @ OBS), so you might have to wait until a build succeeds … Happy p4, Frederic