behavioral-model icon indicating copy to clipboard operation
behavioral-model copied to clipboard

Where is the original p4 source code for recirc.json

Open jinxie0731 opened this issue 7 months ago • 8 comments

Hi,

I can find a recirc. json file in the folder of targets/simple.switch/tests/testdata/. I guess the corresponding p4 source code file should be recirc.p4 which is located in the same folder, but when I tried to recompile this file with command " p4c --target bmv2 --arch v1model ./recirc.p4", I got the following error:

./recirc.p4(16):syntax error, unexpected {, expecting ( header_type intrinsic_metadata_t { ^ [--Werror=overlimit] error: 1 errors encountered, aborting compilation

So how can I recompile and get recirc. json, please help with this, thank you very much!

jinxie0731 avatar Jul 04 '24 09:07 jinxie0731