<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Valami ötlet?<br>
</p>
<div class="moz-forward-container"><br>
<br>
-------- Továbbított üzenet --------
<table class="moz-email-headers-table" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Tárgy: </th>
<td>Re: small query on running your example(s)</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Dátum: </th>
<td>Tue, 20 Nov 2018 18:36:07 -0800</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Feladó:
</th>
<td>Anoosh Hosseini <a class="moz-txt-link-rfc2396E" href="mailto:anoosh.hosseini@gmail.com"><anoosh.hosseini@gmail.com></a></td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Címzett:
</th>
<td><a class="moz-txt-link-abbreviated" href="mailto:ldani@elte.hu">ldani@elte.hu</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<div dir="ltr">
<div dir="ltr">
<div>Dear Daniel,</div>
<div>thanks for your reply. I tried variations. In the end I
started from a blank/unmodified ubuntu LTE 18 VM.</div>
<div>I copied only your bootstrap (per instructions) executed
it, but still hit this issue in the end.</div>
<div>regards</div>
<div>-anoosh<br>
</div>
<div><br>
</div>
<div>-- Added 9 tests to 'ebpf' (0 xfails)<br>
-- Added 497 tests to 'p4' (1 xfails)<br>
-- Added 181 tests to 'p14_to_16' (0 xfails)<br>
-- CTest parallel: -j 4<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to:
/home/anoosh/p4/x/p4c/build<br>
[ 62%] Built target update_includes<br>
[ 62%] Built target linkbmv2<br>
[ 62%] Built target linkp4test<br>
[ 62%] Built target p4ctoolkit<br>
[ 62%] Built target linkp4cebpf<br>
[ 62%] Built target mkv1dirs<br>
[ 62%] Built target mkp4dirs<br>
[ 62%] Built target gtest<br>
[ 62%] Built target mkP4configdir<br>
[ 62%] Built target p4c_driver<br>
[ 62%] Built target irgenerator<br>
[ 62%] Built target genIR<br>
make[2]: *** No rule to make target
'../control-plane/PI/proto/google/rpc/status.proto', needed
by 'control-plane/p4/config/<a href="http://p4info.pb.cc"
moz-do-not-send="true">p4info.pb.cc</a>'. Stop.<br>
CMakeFiles/Makefile2:1036: recipe for target
'control-plane/CMakeFiles/controlplane.dir/all' failed<br>
make[1]: *** [control-plane/CMakeFiles/controlplane.dir/all]
Error 2<br>
make[1]: *** Waiting for unfinished jobs....<br>
[ 62%] Built target ir<br>
[ 62%] Built target midend<br>
[ 62%] Built target frontend<br>
Makefile:140: recipe for target 'all' failed<br>
make: *** [all] Error 2<br>
[ 0%] Built target update_includes<br>
[ 0%] Built target linkbmv2<br>
[ 0%] Built target linkp4test<br>
[ 3%] Built target p4ctoolkit<br>
[ 3%] Built target linkp4cebpf<br>
[ 3%] Built target mkv1dirs<br>
[ 3%] Built target mkp4dirs<br>
[ 7%] Built target gtest<br>
[ 7%] Built target mkP4configdir<br>
[ 9%] Built target p4c_driver<br>
[ 18%] Built target irgenerator<br>
[ 20%] Built target genIR<br>
make[2]: *** No rule to make target
'../control-plane/PI/proto/google/rpc/status.proto', needed
by 'control-plane/p4/config/<a href="http://p4info.pb.cc"
moz-do-not-send="true">p4info.pb.cc</a>'. Stop.<br>
CMakeFiles/Makefile2:1036: recipe for target
'control-plane/CMakeFiles/controlplane.dir/all' failed<br>
make[1]: *** [control-plane/CMakeFiles/controlplane.dir/all]
Error 2<br>
make[1]: *** Waiting for unfinished jobs....<br>
[ 25%] Built target ir<br>
[ 33%] Built target midend<br>
[ 62%] Built target frontend<br>
Makefile:140: recipe for target 'all' failed<br>
make: *** [all] Error 2<br>
DPDK_VSN=16.07<br>
RTE_SDK=/home/anoosh/p4/x/dpdk-18.08/<br>
P4C=/home/anoosh/p4/x/p4c<br>
<br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Wed, Nov 14, 2018 at 1:57 AM Leskó Dániel <<a
href="mailto:ldani@elte.hu" moz-do-not-send="true">ldani@elte.hu</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hi there,</p>
<p> 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)</p>
<p>Best,<br>
Daniel Lesko<br>
</p>
<div class="m_806402871273712649moz-cite-prefix">2018.11.10.
8:43 keltezéssel, Anoosh Hosseini írta:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div>Greetings</div>
<div>I was trying out your P4 work on github, but seem
to have trouble running any example.</div>
<div>Can you shed light on my pilot error?</div>
<div>many thanks</div>
<div>-anoosh</div>
<div><br>
</div>
<div>(this inside an Ubuntu VM)</div>
<div><br>
</div>
<div>anoosh@ubuntu:~/p4/t4p4s$ ./t4p4s.sh :l2fwd
verbose<br>
Parsing variant config file examples.cfg<br>
Parsing file opts_dpdk.cfg<br>
Determined P4 version to be 14 by the extension of
./examples/l2fwd.p4_14 <br>
Options:
^silent,arch=dpdk,cfgfiles,choice=l2fwd@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,<a
class="m_806402871273712649moz-txt-link-abbreviated"
href="mailto:executable=./build/l2fwd@std/build/l2fwd,hugepages=2048,include-hdrs=dpdk_nicon.h,include-srcs=dpdk_nicon.c"
target="_blank" moz-do-not-send="true">executable=./build/l2fwd@std/build/l2fwd,hugepages=2048,include-hdrs=dpdk_nicon.h,include-srcs=dpdk_nicon.c</a>
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,<br>
[COMPILE P4-14] ./examples/l2fwd.p4_14 @std<br>
P4 compiler options: ./examples/l2fwd.p4_14 --p4v 14
-g ./build/l2fwd@std/srcgen -verbose <br>
Compiling P4-16 HLIR for ./examples/l2fwd.p4_14...<br>
Using cached JSON file l2fwd.p4_14.json...<br>
Traceback (most recent call last):<br>
File "src/compiler.py", line 540, in
<module><br>
main()<br>
File "src/compiler.py", line 517, in main<br>
success = load_p4_file(filename)<br>
File "src/compiler.py", line 477, in load_p4_file<br>
hlir = load_p4(to_load, args['p4v'],
args['p4c_path'], cache_dir_name)<br>
File "/home/anoosh/p4/t4p4s/src/hlir16/hlir16.py",
line 151, in load_p4<br>
retval = load_p4_json_file(json_filename,
p4_version or MOST_RECENT_P4_VERSION)<br>
File "/home/anoosh/p4/t4p4s/src/hlir16/hlir16.py",
line 129, in load_p4_json_file<br>
set_additional_attrs(hlir16, nodes, p4_version)<br>
File
"/home/anoosh/p4/t4p4s/src/hlir16/hlir16_attrs.py",
line 561, in set_additional_attrs<br>
attrs_structs(hlir16)<br>
File
"/home/anoosh/p4/t4p4s/src/hlir16/hlir16_attrs.py",
line 173, in attrs_structs<br>
for struct in
hlir16.declarations['Type_Struct']:<br>
<span style="background-color:rgb(255,0,0)">AttributeError:
'P4Node' object has no attribute 'declarations'</span><br>
Error: P4 to C compilation failed (error code: 1)<br>
Terminating controller dpdk_l2fwd_controller<br>
anoosh@ubuntu:~/p4/t4p4s$ <br>
<span style="background-color:rgb(255,255,255)"><span></span></span><br>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</body>
</html>