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

hemant at mnkcg.com hemant at mnkcg.com
Thu Jul 13 16:08:58 EDT 2017


Han,

 

Correct.  This is why I decided to use p4test.  Thanks for your reply.  

 

Cheers,

 

Hemant

 

From: Han Wang [mailto:hanwang at barefootnetworks.com] 
Sent: Thursday, July 13, 2017 4:05 PM
To: hemant at mnkcg.com
Cc: p4-dev <p4-dev at lists.p4.org>
Subject: Re: [P4-dev] p4c Compiler Bug: No parameter named ig

 

Hi Hemant,

 

p4c is the compiler driver that invokes target-specific compiler binary. You
can 

print the commands executed by p4c with -### flag.

 

In your case, p4c invoked p4c-bm2-ss to compile vss-example.p4. The error
happens

because p4c-bm2-ss is a compiler for programs targeting v1model.p4, but,

vss-example.p4 is a program targeting very_simple_model.p4. 

 

The very-simple-model architecture is not a supported backend for bmv2 yet.

 

Han

 

On Jul 13, 2017, at 12:10 PM, hemant at mnkcg.com <mailto:hemant at mnkcg.com>
wrote:

 

I used p4test and then the .p4 file compiles fine.  

 

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 2:10 PM
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

 

Thanks,

 

Hemant

_______________________________________________
P4-dev mailing list
P4-dev at lists.p4.org <mailto:P4-dev at lists.p4.org> 
http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org

 

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


More information about the P4-dev mailing list