[P4-dev] Xenial & bionic P4lang packages - now available

hemant at mnkcg.com hemant at mnkcg.com
Tue Apr 9 10:56:08 EDT 2019

I am not sure if you should include the ply in package or not.  Please test and see if you should.






From: Fréderic LOUI <frederic.loui at renater.fr> 
Sent: Tuesday, April 09, 2019 10:49 AM
To: hemant at mnkcg.com
Cc: Antonin Bas <antonin at barefootnetworks.com>; p4-dev <p4-dev at lists.p4.org>
Subject: Re: [P4-dev] Xenial & bionic P4lang packages - now available


Hi hemant,


Thanks for you feedback.


if you look at the p4lang-3rd-party repository you will see packages for:

pyroute2 0.5.2 (similar to PIP), scapy 2.4.0, ply is the distrib package, libpcap-dev is installed by bmv2 package


And here is an extract of p4c debian/control file:

Source: p4c

Section: devel

Priority: optional

Maintainer: Frederic LOUI <frederic.loui at renater.fr <mailto:frederic.loui at renater.fr> >


 debhelper (>= 9),





 libboost-dev, libboost-graph-dev, libboost-iostreams1.65-dev,





 python-ipaddr, python-setuptools,







 python-tenjin, python-pyroute2, python-ply, python-scapy,

 libprotobuf17, libprotobuf-dev, libprotobuf-java, libprotoc17, libprotoc-dev, protobuf-compiler, python-protobuf,

 libgrpc++1, libgrpc7, libgrpc-dev, libgrpc++-dev, protobuf-compiler-grpc, python-grpcio,

 libthrift0, libthrift-dev, python-thrift, thrift-compiler,

 libbmv2-core, libbmv2-core-dev, bmv2-core,

 libbmv2-pdfixed, libbmv2-pdfixed-dev,

 libbmv2-pi, libbmv2-pi-dev, bmv2-pi,

 python-bmv2-core, python-bmv2-pdfixed, python-bmv2-pi,

Standards-Version: 4.1.4

Homepage: https://github.com/p4lang/p4c 


So if I'm not mistaken, all dependencies are satisfied ? Or do you think I shuold also package "ply" software ?


A bientôt,




De: hemant at mnkcg.com <mailto:hemant at mnkcg.com> 
À: "frederic loui" <frederic.loui at renater.fr <mailto:frederic.loui at renater.fr> >, "Antonin Bas" <antonin at barefootnetworks.com <mailto:antonin at barefootnetworks.com> >
Cc: "p4-dev" <p4-dev at lists.p4.org <mailto:p4-dev at lists.p4.org> >
Envoyé: Mardi 9 Avril 2019 16:32:54
Objet: RE: [P4-dev] Xenial & bionic P4lang packages - now available


From: P4-dev <p4-dev-bounces at lists.p4.org <mailto:p4-dev-bounces at lists.p4.org> > On Behalf Of Fréderic LOUI
Sent: Tuesday, April 09, 2019 2:30 AM
To: Antonin Bas <antonin at barefootnetworks.com <mailto:antonin at barefootnetworks.com> >
Cc: p4-dev <p4-dev at lists.p4.org <mailto:p4-dev at lists.p4.org> >
Subject: Re: [P4-dev] Xenial & bionic P4lang packages - now available


4) I was surprised by the size of the p4c package (100MB) but it may be because each p4c backend binary

    (p4c-bm2-ss, p4c-bm2-psa, p4c-ebpf, p4c-graphs, p4test) is self-contained and they do not used a shared library for their common parts.

    => Yes me too. Please note that make check is failing for the latest p4c. (ebpf tests only. <-- Check buildlogs)


See https://github.com/p4lang/p4c/blob/master/backends/ebpf/README.md  which says EBPF needs more software to install.  Once you install the extra software EBPF tests will pass ‘make check’.


This is the extra software to install.


$ sudo apt-get install clang llvm libpcap-dev libelf-dev iproute2 net-tools

$ sudo pip install pyroute2 ply scapy==2.4.0





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20190409/f18a2daa/attachment-0001.html>

More information about the P4-dev mailing list