You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG_CHECK(!write_slice,
"ActionAnalysis did not split up container by container. "
"Field: %1%, alloc1: %2%, alloc2: %3%, table: %4%.",
field->name, *write_slice, alloc, cont_action.table_context->externalName());
is complaining that a field being written by an action in a table has been sliced/allocated such that two different parts of the same PHV container are being written. The message should contain the field name and the table name (but not the action name oddly), as well as the two slices.
Basically, complaining that PHV allocation has allocated things in a way such that code cannot be generated for an action (it would require two writes to the same PHV container at the same time).
If you attach the P4 code that hits this, I might be able to give you more detail about what is going wrong.
@ChrisDodd Thank you for your response.
The P4 program is very huge and i am finding it very challenging in simplifying it.
Here is the actual error message (names slightly modified).
..........
In file: p4c/backends/tofino/bf-p4c/mau/action_analysis.cpp:754
Compiler Bug: ActionAnalysis did not split up container by container. Field: ControlEgress.process_sub_control_1.temp_value_reg$index, alloc1: H5 bit[12..0] <-- ControlEgress.process_sub_control_1.temp_value_reg$index<13> meta [0:12] live at P[9w, 9w] } 0 units {}, alloc2: H5 bit[12..0] <-- ControlEgress.process_sub_control_1.temp_value_reg$index<13> meta [0:12] live at P[10r, 10r] } 0 units {}, table: ControlEgress.process_sub_control_1.table_1_getvaluelist.
Internal compiler error. Please submit a bug report with your code.
..........
Please check if you can give some more insight about this compiler bug. Thanks.
For a P4 program, when it is compiled with alt-phv-alloc flag, compiler bug at line number 754 is hitting in the below file:
https://github.com/p4lang/p4c/blob/main/backends/tofino/bf-p4c/mau/action_analysis.cpp
More insight about this internal compiler error would be useful to address the issue. Thanks.
The text was updated successfully, but these errors were encountered: