p4-discuss@lists.p4.org

discussion of p4 language ideas, tools, questions, etc. -- not related to direct code development

View all threads

error in tutorial assighnment switch calc

PP
Phanindra Palagummi
Thu, Apr 11, 2019 6:36 AM

Hello,

I am running the tutorial assignment Switch calc (
https://github.com/NetFPGA/P4-NetFPGA-public/wiki/Tutorial-Assignments),
previously this ran fine and now I have done a fresh installation, this
time compiling my switch_calc.p4 program I am getting below error please
let me know if I am missing something.

fpga@phani-Precision-T5610:~/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc$
make
make -C src/ clean
make[1]: Entering directory
/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src' rm -f *.sdnet *.tbl .sdnet_switch_info.dat make[1]: Leaving directory /home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src'
make -C testdata/ clean
make[1]: Entering directory
/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/testdata' rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py make[1]: Leaving directory /home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/testdata'
rm -rf nf_sume_sdnet_ip/
rm -f
rm -f sw/config_tables.c
make -C src/
make[1]: Entering directory
/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src' p4c-sdnet -o switch_calc.sdnet --sdnet_info .sdnet_switch_info.dat switch_calc.p4 /home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/p4_px_tables.py commands.txt .sdnet_switch_info.dat *ERROR: set_result is not a recognized action for this table* make[1]: *** [all] Error 1 make[1]: Leaving directory /home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src'
make: *** [frontend] Error 2

Thank you,
Phani

Hello, I am running the tutorial assignment Switch calc ( https://github.com/NetFPGA/P4-NetFPGA-public/wiki/Tutorial-Assignments), previously this ran fine and now I have done a fresh installation, this time compiling my switch_calc.p4 program I am getting below error please let me know if I am missing something. fpga@phani-Precision-T5610:~/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc$ make make -C src/ clean make[1]: Entering directory `/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src' rm -f *.sdnet *.tbl .sdnet_switch_info.dat make[1]: Leaving directory `/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src' make -C testdata/ clean make[1]: Entering directory `/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/testdata' rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py make[1]: Leaving directory `/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/testdata' rm -rf nf_sume_sdnet_ip/ rm -f rm -f sw/config_tables.c make -C src/ make[1]: Entering directory `/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src' p4c-sdnet -o switch_calc.sdnet --sdnet_info .sdnet_switch_info.dat switch_calc.p4 /home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/p4_px_tables.py commands.txt .sdnet_switch_info.dat *ERROR: set_result is not a recognized action for this table* make[1]: *** [all] Error 1 make[1]: Leaving directory `/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src' make: *** [frontend] Error 2 Thank you, Phani
AB
Antonin Bas
Thu, Apr 11, 2019 5:19 PM

This seems to be an issue specific to the sdnet framework. You should
probably reach out to them directly.

On Wed, Apr 10, 2019 at 11:38 PM Phanindra Palagummi <
phanindra.palagummi@gmail.com> wrote:

Hello,

I am running the tutorial assignment Switch calc (
https://github.com/NetFPGA/P4-NetFPGA-public/wiki/Tutorial-Assignments),
previously this ran fine and now I have done a fresh installation, this
time compiling my switch_calc.p4 program I am getting below error please
let me know if I am missing something.

fpga@phani-Precision-T5610:~/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc$
make
make -C src/ clean
make[1]: Entering directory
/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src' rm -f *.sdnet *.tbl .sdnet_switch_info.dat make[1]: Leaving directory /home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src'
make -C testdata/ clean
make[1]: Entering directory
/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/testdata' rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py make[1]: Leaving directory /home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/testdata'
rm -rf nf_sume_sdnet_ip/
rm -f
rm -f sw/config_tables.c
make -C src/
make[1]: Entering directory
/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src' p4c-sdnet -o switch_calc.sdnet --sdnet_info .sdnet_switch_info.dat switch_calc.p4 /home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/p4_px_tables.py commands.txt .sdnet_switch_info.dat *ERROR: set_result is not a recognized action for this table* make[1]: *** [all] Error 1 make[1]: Leaving directory /home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src'
make: *** [frontend] Error 2

Thank you,
Phani


P4-discuss mailing list
P4-discuss@lists.p4.org
http://lists.p4.org/mailman/listinfo/p4-discuss_lists.p4.org

--
Antonin

This seems to be an issue specific to the sdnet framework. You should probably reach out to them directly. On Wed, Apr 10, 2019 at 11:38 PM Phanindra Palagummi < phanindra.palagummi@gmail.com> wrote: > Hello, > > I am running the tutorial assignment Switch calc ( > https://github.com/NetFPGA/P4-NetFPGA-public/wiki/Tutorial-Assignments), > previously this ran fine and now I have done a fresh installation, this > time compiling my switch_calc.p4 program I am getting below error please > let me know if I am missing something. > > fpga@phani-Precision-T5610:~/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc$ > make > make -C src/ clean > make[1]: Entering directory > `/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src' > rm -f *.sdnet *.tbl .sdnet_switch_info.dat > make[1]: Leaving directory > `/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src' > make -C testdata/ clean > make[1]: Entering directory > `/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/testdata' > rm -f *.pcap *.txt *.pyc *.axi config_writes.* *_reg_defines.py > make[1]: Leaving directory > `/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/testdata' > rm -rf nf_sume_sdnet_ip/ > rm -f > rm -f sw/config_tables.c > make -C src/ > make[1]: Entering directory > `/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src' > p4c-sdnet -o switch_calc.sdnet --sdnet_info .sdnet_switch_info.dat > switch_calc.p4 > /home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/bin/p4_px_tables.py > commands.txt .sdnet_switch_info.dat > *ERROR: set_result is not a recognized action for this table* > make[1]: *** [all] Error 1 > make[1]: Leaving directory > `/home/fpga/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/switch_calc/src' > make: *** [frontend] Error 2 > > Thank you, > Phani > > _______________________________________________ > P4-discuss mailing list > P4-discuss@lists.p4.org > http://lists.p4.org/mailman/listinfo/p4-discuss_lists.p4.org > -- Antonin