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

Mihai Budiu mbudiu at vmware.com
Tue Apr 9 17:45:13 EDT 2019


If we saw the failures reported by make check-ebpf we could perhaps figure out what’s missing.

Mihai

From: P4-dev <p4-dev-bounces at lists.p4.org> On Behalf Of Fréderic LOUI
Sent: Tuesday, April 9, 2019 7:49 AM
To: hemant at mnkcg.com
Cc: 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>>
Build-Depends:
 debhelper (>= 9),
 bison,
 cmake,
 flex,
 g++,
 libboost-dev, libboost-graph-dev, libboost-iostreams1.65-dev,
 libfl-dev,
 libgc-dev,
 libgmp-dev,
 pkg-config,
 python-ipaddr, python-setuptools,
 tcpdump,
 libelf-dev,
 llvm,
 clang,
 iproute2,
 net-tools,
 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,
Frederic

________________________________
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<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fp4lang%2Fp4c%2Fblob%2Fmaster%2Fbackends%2Febpf%2FREADME.md&data=02%7C01%7Cmbudiu%40vmware.com%7C671a45dc371344bb979c08d6bcfaabe8%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C636904182154841072&sdata=%2BdrSraUUqDJcP6TIo%2F94lvbvlr044HRAKdHSww1mxw4%3D&reserved=0>  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

Hemant


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


More information about the P4-dev mailing list