Open imaginezz opened 7 years ago
You seem to be using an older version of p4c-bm. Range support was added to p4c-bm in June (https://github.com/p4lang/p4c-bm/pull/52)
I checked the version, the p4c-bm is the newest. I reinstalled p4c-bm and bmv2 again, and the Error is the same.
If you look at the latest p4c-bm code, you would be hard-pressed to find that error string...
You can run p4c-bmv2 -v
to check the version number, it should be 1.4.0
.
We changed the installation process recently and it is possible that your installation is picking up some old code. I would recommend deleting old files by hand before re-installing again. The following should work:
sudo rm -rf /usr/local/lib/python2.7/dist-packages/p4c*
sudo rm -rf /usr/local/bin/p4c-bmv2
I have installed bmv2 and p4c-bmv2 successfully as README said. But when I tried to make it ,it shows below. I think it is something wrong with p4c_bm it can't complie the P4 script in p4src, but I can't solve it.