[P4] Fwd: Re: small query on running your example(s)
Leskó Dániel
ldani at elte.hu
Wed Nov 21 10:36:08 CET 2018
Valami ötlet?
-------- Továbbított üzenet --------
Tárgy: Re: small query on running your example(s)
Dátum: Tue, 20 Nov 2018 18:36:07 -0800
Feladó: Anoosh Hosseini <anoosh.hosseini at gmail.com>
Címzett: ldani at elte.hu
Dear Daniel,
thanks for your reply. I tried variations. In the end I started from a
blank/unmodified ubuntu LTE 18 VM.
I copied only your bootstrap (per instructions) executed it, but still
hit this issue in the end.
regards
-anoosh
-- Added 9 tests to 'ebpf' (0 xfails)
-- Added 497 tests to 'p4' (1 xfails)
-- Added 181 tests to 'p14_to_16' (0 xfails)
-- CTest parallel: -j 4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/anoosh/p4/x/p4c/build
[ 62%] Built target update_includes
[ 62%] Built target linkbmv2
[ 62%] Built target linkp4test
[ 62%] Built target p4ctoolkit
[ 62%] Built target linkp4cebpf
[ 62%] Built target mkv1dirs
[ 62%] Built target mkp4dirs
[ 62%] Built target gtest
[ 62%] Built target mkP4configdir
[ 62%] Built target p4c_driver
[ 62%] Built target irgenerator
[ 62%] Built target genIR
make[2]: *** No rule to make target
'../control-plane/PI/proto/google/rpc/status.proto', needed by
'control-plane/p4/config/p4info.pb.cc <http://p4info.pb.cc>'. Stop.
CMakeFiles/Makefile2:1036: recipe for target
'control-plane/CMakeFiles/controlplane.dir/all' failed
make[1]: *** [control-plane/CMakeFiles/controlplane.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 62%] Built target ir
[ 62%] Built target midend
[ 62%] Built target frontend
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
[ 0%] Built target update_includes
[ 0%] Built target linkbmv2
[ 0%] Built target linkp4test
[ 3%] Built target p4ctoolkit
[ 3%] Built target linkp4cebpf
[ 3%] Built target mkv1dirs
[ 3%] Built target mkp4dirs
[ 7%] Built target gtest
[ 7%] Built target mkP4configdir
[ 9%] Built target p4c_driver
[ 18%] Built target irgenerator
[ 20%] Built target genIR
make[2]: *** No rule to make target
'../control-plane/PI/proto/google/rpc/status.proto', needed by
'control-plane/p4/config/p4info.pb.cc <http://p4info.pb.cc>'. Stop.
CMakeFiles/Makefile2:1036: recipe for target
'control-plane/CMakeFiles/controlplane.dir/all' failed
make[1]: *** [control-plane/CMakeFiles/controlplane.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 25%] Built target ir
[ 33%] Built target midend
[ 62%] Built target frontend
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
DPDK_VSN=16.07
RTE_SDK=/home/anoosh/p4/x/dpdk-18.08/
P4C=/home/anoosh/p4/x/p4c
On Wed, Nov 14, 2018 at 1:57 AM Leskó Dániel <ldani at elte.hu
<mailto:ldani at elte.hu>> wrote:
Hi there,
Sorry for being late with the response. You probably having an
issue with the versioning of P4C. We are using an older version of
it (the exact version info can be found in bootstrap-t4p4s.sh, line 7)
Best,
Daniel Lesko
2018.11.10. 8:43 keltezéssel, Anoosh Hosseini írta:
> Greetings
> I was trying out your P4 work on github, but seem to have trouble
> running any example.
> Can you shed light on my pilot error?
> many thanks
> -anoosh
>
> (this inside an Ubuntu VM)
>
> anoosh at ubuntu:~/p4/t4p4s$ ./t4p4s.sh :l2fwd verbose
> Parsing variant config file examples.cfg
> Parsing file opts_dpdk.cfg
> Determined P4 version to be 14 by the extension of
> ./examples/l2fwd.p4_14
> Options: ^silent,arch=dpdk,cfgfiles,choice=l2fwd at std,cmdopts=-p
> 0x3 --config
> "\"(0,0,0),(0,1,1),(1,0,0),(1,1,1)\"",ctr=l2fwd,ctrcfg=examples/l2fwd_table.txt,ealopts=-c
> 0x3 -n
> 4,example=l2fwd,executable=./build/l2fwd at std/build/l2fwd,hugepages=2048,include-hdrs=dpdk_nicon.h,include-srcs=dpdk_nicon.c
> <mailto:executable=./build/l2fwd at std/build/l2fwd,hugepages=2048,include-hdrs=dpdk_nicon.h,include-srcs=dpdk_nicon.c>
> dpdkx_v1model.c
> dpdkx_smem.c,light=green,yellow,cyan,red,model=v1model,source=./examples/l2fwd.p4_14,variant=std,vsn=14,2cores,2x2ports,c,l2fwd,p4,run,smem,verbose,
> [COMPILE P4-14] ./examples/l2fwd.p4_14 @std
> P4 compiler options: ./examples/l2fwd.p4_14 --p4v 14 -g
> ./build/l2fwd at std/srcgen -verbose
> Compiling P4-16 HLIR for ./examples/l2fwd.p4_14...
> Using cached JSON file l2fwd.p4_14.json...
> Traceback (most recent call last):
> File "src/compiler.py", line 540, in <module>
> main()
> File "src/compiler.py", line 517, in main
> success = load_p4_file(filename)
> File "src/compiler.py", line 477, in load_p4_file
> hlir = load_p4(to_load, args['p4v'], args['p4c_path'],
> cache_dir_name)
> File "/home/anoosh/p4/t4p4s/src/hlir16/hlir16.py", line 151, in
> load_p4
> retval = load_p4_json_file(json_filename, p4_version or
> MOST_RECENT_P4_VERSION)
> File "/home/anoosh/p4/t4p4s/src/hlir16/hlir16.py", line 129, in
> load_p4_json_file
> set_additional_attrs(hlir16, nodes, p4_version)
> File "/home/anoosh/p4/t4p4s/src/hlir16/hlir16_attrs.py", line
> 561, in set_additional_attrs
> attrs_structs(hlir16)
> File "/home/anoosh/p4/t4p4s/src/hlir16/hlir16_attrs.py", line
> 173, in attrs_structs
> for struct in hlir16.declarations['Type_Struct']:
> AttributeError: 'P4Node' object has no attribute 'declarations'
> Error: P4 to C compilation failed (error code: 1)
> Terminating controller dpdk_l2fwd_controller
> anoosh at ubuntu:~/p4/t4p4s$
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://plc.inf.elte.hu/pipermail/p4/attachments/20181121/07f9dfd3/attachment.html>
More information about the P4
mailing list