Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
(Lo priority) Update to Thrift version 0.11.0 to enable installation on Ubuntu 18.04 ? #597
I installed an Ubuntu 18.04 LTS Linux virtual machine a few days ago, to see whether I could install p4lang/behavioral-model, p4lang/p4c, and a few other open source P4 tools I sometimes use.
I had trouble compiling Thrift version 0.9.2 that p4lang/behavioral-model's travis/install-thrift.sh script currently tries to do. As a quick experiment, I tried changing that script to install Thrift version 0.11.0 instead. It built fine, as did behavioral-model and p4c, and all of p4c's 'make check' tests ran successfully, including the ones that run packets through simple_switch after installing a handful of table entries according to the contents of the STF test files.
I have not tried any other kind of extensive testing of other tools like mininet, nor tried to understand the changes from Thrift version 0.9.2 to 0.11.0 to see if there are any gotchas. Just wanted to mention this for the long term possibility of supporting newer Ubuntu releases. There might very well be an easy way to continue using Thrift 0.9.2 on Ubuntu 18.04 -- I didn't look into that in any depth.
A few minutes ago I created a brand new Ubuntu 18.04 desktop virtual machine, updated the Ubuntu 18.04 software with all updates as of now (2018-Jul-31), and ran these commands:
That last command is a public bash script that among other things, clones the latest master versions of the p4lang/behavioral-model and p4lang/p4c repositories. Before using the behavioral-model/travis/install-thrift.sh script, it changes all version numbers from 0.9.2 to 0.11.0.
When I ran it, these were the latest git commits for those two repositories:
I was able to use simple_switch_CLI to connect to a simple_switch process and install table entries, and then process a few packets that matched those entries. I didn't do much more extensive testing than that -- it isn't completely broken.
David Hancock on the p4-dev email list has done more extensive testing with Ubuntu 18.04 and Thrift 0.11.0 than I have, and reported some problems in attempting to use that combination here: http://lists.p4.org/pipermail/p4-dev_lists.p4.org/2018-September/003655.html