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

issue example 1 #1

Open
chenxiang2019 opened this issue Sep 19, 2017 · 1 comment
Open

issue example 1 #1

chenxiang2019 opened this issue Sep 19, 2017 · 1 comment
Labels

Comments

@chenxiang2019
Copy link
Owner

Title: WTF the bug is?

Content:

I find a error:

heavy_hitter.p4(127): warning: -1: negative value with unsigned type
    add_to_field(ipv4.ttl, -1);
                            ^
heavy_hitter.p4(152): warning: csum16: unexpected algorithm
    algorithm : csum16;
                ^^^^^^
error: HashAlgorithm.csum16: Invalid enum tag
heavy_hitter.p4(177): error: hash: Cannot unify Type(HashAlgorithm) to HashAlgorithm
    modify_field_with_hash_based_offset(custom_metadata.hash_val1, 0,
    ^
/usr/local/share/p4c/p4include/v1model.p4(115)
enum HashAlgorithm {
^^^^

How to resolve this?

@chenxiang2019
Copy link
Owner Author

Mark this issue as invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant