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

hemant at mnkcg.com hemant at mnkcg.com
Thu Aug 17 19:00:27 EDT 2017



From: Mihai Budiu [mailto:mbudiu at vmware.com] 
Sent: Thursday, August 17, 2017 4:29 PM
To: hemant at mnkcg.com; 'p4-dev' <p4-dev at lists.p4.org>
Subject: RE: [P4-dev] p4c Compiler Bug: No parameter named ig


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 <mailto:hemant at mnkcg.com> 
Sent: Thursday, July 13, 2017 11:10 AM
To: 'p4-dev' <p4-dev at lists.p4.org <mailto: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/e16b99e7/attachment-0002.html>

More information about the P4-dev mailing list