Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Compiler Bug] bmv2 checksum: not handled yet #270

Closed
smolkaj opened this issue Jan 30, 2017 · 1 comment
Closed

[Compiler Bug] bmv2 checksum: not handled yet #270

smolkaj opened this issue Jan 30, 2017 · 1 comment

Comments

@smolkaj
Copy link
Member

smolkaj commented Jan 30, 2017

After updating p4c, I see the following bug when trying to compile a P4_16 version of switch.p4:

terminate called after throwing an instance of 'Util::CompilerBug'
  what():  COMPILER BUG: ../backends/bmv2/jsonconverter.cpp:2042
/home/ubuntu/src/switch/test/../p4src/includes/checksum.p4(81): inner_cksum_2/inner_cksum = tmp_202;: not handled yet
        bit<16> inner_cksum = inner_ipv4_checksum.get({
        ^

I'm attaching checksum.p4 for reference.

mihaibudiu pushed a commit to mihaibudiu/p4c-clone that referenced this issue Feb 1, 2017
@smolkaj
Copy link
Member Author

smolkaj commented Feb 1, 2017

👍 e92cff0 fixes the problem

ChrisDodd pushed a commit that referenced this issue Feb 2, 2017
* Use cstring() instead of the empty cstring

* Two more improvements

* Fix for issue #270: improve on code submitted with PR #250 with a more principled approach

* Fixed some incorrect comments

* Bugfix following review comments

* Improvement suggested by review
@smolkaj smolkaj closed this as completed Feb 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant