[P4] t4p4s-16 jobban fordul
Dániel Horpácsi
daniel-h at elte.hu
Sun Aug 13 15:01:28 CEST 2017
:~/t4p4s$ P4DPDK_VARIANT=no_nic_l3 ./launch.sh
./examples/l3_routing-full.p4 -v 14 -- -c 0x3 -n 4 - --log-level 3 -- -p
0x3 --config "\"(0,0,0),(1,0,1)\""
-------------------- Compilation P4-14 -> C
WARNING: No error rule is defined for exclusive state 'pragma'
WARNING: Token 'DIVIDE' defined, but not used
WARNING: Token 'PPHASH' defined, but not used
WARNING: Token 'MOD' defined, but not used
WARNING: There are 3 unused tokens
parsing successful
semantic checking successful
Header type standard_metadata_t not byte-aligned, adding padding
Traceback (most recent call last):
File "src/compiler.py", line 290, in <module>
main()
File "src/compiler.py", line 265, in main
success = load_file(args['p4_file'])
File "src/compiler.py", line 238, in load_file
hlir16 = load_p4(args['p4_file'], args['p4v'], args['p4c_path'])
File "/home/daniel/t4p4s/src/hlir16/hlir16.py", line 410, in load_p4
return load_p4_json_file(json_filename, p4_version or
MOST_RECENT_P4_VERSION)
File "/home/daniel/t4p4s/src/hlir16/hlir16.py", line 117, in
load_p4_json_file
set_additional_attrs(hlir16, nodes, p4_version)
File "/home/daniel/t4p4s/src/hlir16/hlir16.py", line 243, in
set_additional_attrs
hdrs = [(False, hdr, hdr.name,
hlir16.declarations.get(hdr.type.path.name, "Type_Header"),
get_bit_width(hlir16, hdr)) for hdr in hlir16.headers]
File "/home/daniel/t4p4s/src/hlir16/utils_hlir16.py", line 22, in
get_bit_width
return type_bit_width(hlir16, get_type(hlir16, node))
File "/home/daniel/t4p4s/src/hlir16/utils_hlir16.py", line 26, in
type_bit_width
return sum([get_type(hlir16, hf).size for hf in p4type.fields])
File "/home/daniel/t4p4s/src/hlir16/utils_hlir16.py", line 42, in
get_type
raise ValueError("Expected node that describes a type, got " +
str(node))
ValueError: Expected node that describes a type, got
options<StructField>[annotations, declid, name, type]
P4 compilation failed with error code 1
On 2017-08-10 15:39, Kitlei Róbert wrote:
>
> Aki ki szeretné próbálni a t4p4s-16-ot, lehet próbálkozni...
>
>
> _______________________________________________
> P4 mailing list
> P4 at plc.inf.elte.hu
> https://plc.inf.elte.hu/mailman/listinfo/p4
More information about the P4
mailing list