nsg-ethz/p4-learning

Got the below mentioned error while executing this example.

kumarkshiv opened this issue · 1 comments

Got this error while executing this example.
##############################################################################################
Building mininet topology.
p4c --target bmv2 --arch v1model --std p4-16 "debugging_table.p4" -o "/home/p4/p4-tools/p4-learning/examples/debugging_table"
debug.p4(59): [--Werror=type-error] error: Field clone_spec is not a member of structure struct standard_metadata
standard_metadata.clone_spec : exact;
^^^^^^^^^^
/usr/local/share/p4c/p4include/v1model.p4(61)
struct standard_metadata_t {
^^^^^^^^^^^^^^^^^^^
debug.p4(70): [--Werror=type-error] error: Field lf_field_list is not a member of structure struct standard_metadata
standard_metadata.lf_field_list : exact;
^^^^^^^^^^^^^
/usr/local/share/p4c/p4include/v1model.p4(61)
struct standard_metadata_t {
^^^^^^^^^^^^^^^^^^^
debug.p4(72): [--Werror=type-error] error: Field resubmit_flag is not a member of structure struct standard_metadata
standard_metadata.resubmit_flag : exact;
^^^^^^^^^^^^^
/usr/local/share/p4c/p4include/v1model.p4(61)
struct standard_metadata_t {
^^^^^^^^^^^^^^^^^^^
debug.p4(75): [--Werror=type-error] error: Field recirculate_flag is not a member of structure struct standard_metadata
standard_metadata.recirculate_flag : exact;
^^^^^^^^^^^^^^^^
/usr/local/share/p4c/p4include/v1model.p4(61)
struct standard_metadata_t {
^^^^^^^^^^^^^^^^^^^
Compilation Error
##############################################################################################

Got the issue resolved by commenting on those fields in v1model.p4 file.