[P4-dev] p4c Compiler Bug: No parameter named ig

Mihai Budiu mbudiu at vmware.com
Thu Aug 17 16:29:29 EDT 2017

I have just pushed a PR which should fix this bug; the compiler should not crash, but give a better error message.
The way you are invoking p4c it attempts to compile for BMv2 as a target; however, programs compiled for BMv2 must use the v1model.p4 architecture. The vss-example.p4 program is written for a different architecture (very_simple_model), not for v1model. There is no compiler back-end that supports the very_simple_model.p4, it is just a pedagogical example used in the P4-16 spec.


From: P4-dev [mailto:p4-dev-bounces at lists.p4.org] On Behalf Of hemant at mnkcg.com
Sent: Thursday, July 13, 2017 11:10 AM
To: 'p4-dev' <p4-dev at lists.p4.org>
Subject: [P4-dev] p4c Compiler Bug: No parameter named ig

Am I doing anything wrong when I invoke p4c on a test file in the following path of the code from the p4c compiler.  I have downloaded the latest version last night from github and run this test today.

~/p4c/testdata/p4_16_samples$ p4c vss-example.p4
vss-example.p4(159): warning: nextHop may be uninitialized
          key = { nextHop : exact; }
In file: ../ir/ir.cpp:171
Compiler Bug: No parameter named ig


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170817/5d3f3d84/attachment-0002.html>

More information about the P4-dev mailing list