[P4] Fwd: t4p4s problemak

Péter Vörös vpetyaa at gmail.com
Thu Jul 16 12:53:41 CEST 2020


---------- Forwarded message ---------
Feladó: Gergely Pongracz <Gergely.Pongracz at ericsson.com>
Date: 2020. júl. 15., Sze, 14:26
Subject: t4p4s problemak
To: LAKI Sandor <lakis at inf.elte.hu>, Péter Vörös <vpetyaa at gmail.com>,
László Molnár <laszlo.molnar at ericsson.com>, Csaba Györgyi <
gycsaba96 at gmail.com>, Kitlei Róbert (kitlei at elte.hu) <kitlei at elte.hu>


No akkor leirom, miket t4p4s-taltam 🙂 az uj t4p4s verzioval.

Eloszor is a sajat gepemen el sem indul, ilyesmit irogat:

egerpon at elx7845604p:~/Projects/P4/t4p4s$ ./t4p4s.sh
  File "<string>", line 27
    print 'ok', ('y' if m is not None else 'n')
             ^
SyntaxError: invalid syntax
./t4p4s.sh: line 115: OPTS: bad array subscript
./t4p4s.sh: line 116: OPTS[$1]: bad array subscript
mkdir: missing operand
Try 'mkdir --help' for more information.
mkdir: missing operand
Try 'mkdir --help' for more information.
./t4p4s.sh: line 498: /redo.opts.txt: Permission denied

A dpdk1-en sikerult beizzitani, ott "csak" nem forditja le a kodot. Elsonek
ezt mondja (V1 model, de PSA is ugyanez):

[COMPILE  P4-16] ../p4_codes/EPG-2020/epg_2020.p4
P4 compilation failed for file compiler_load_p4.py
Error during the compilation of None

Error: P4 to C compilation failed (error code: 1)

Aztan ujabb hivasnal mar kicsit mast csinal (gondolom bent hagy valamilyen
koztes file-okat, amik elcseszik):

[COMPILE  P4-16] /home/egerpon/P4-2020/p4_codes/EPG-2020/epg_2020.p4 @std
Error during the compilation of None
Traceback (most recent call last):
  File "src/compiler.py", line 471, in <module>
    main()
  File "src/compiler.py", line 466, in main
    print_with_backtrace(sys.exc_info(), current_compilation['from'] if
current_compilation else "(no compiled file)")
  File "src/compiler.py", line 452, in main
    hlir = load_from_p4(args, cache_dir_name)
  File "/home/egerpon/P4-2020/t4p4s/src/compiler_load_p4.py", line 244, in
load_from_p4
    hlir = load_hlir(filename, cache_dir_name)
  File "/home/egerpon/P4-2020/t4p4s/src/compiler_load_p4.py", line 163, in
load_hlir
    return continue_stages(stages, stage_idx, data)
  File "/home/egerpon/P4-2020/t4p4s/src/compiler_load_p4.py", line 132, in
continue_stages
    new_data = loader(None, data)
  File "/home/egerpon/P4-2020/t4p4s/src/compiler_load_p4.py", line 167, in
<lambda>
    return ([], lambda file, data: pickle.load(file) if file is not None
else no_cache_loader(data) if data is not None else None)
  File "/home/egerpon/P4-2020/t4p4s/src/compiler_load_p4.py", line 204, in
<lambda>
    'loaders': [cache_loader(lambda hlir: set_additional_attrs(hlir,
args['p4v']))],
  File "/home/egerpon/P4-2020/t4p4s/src/hlir16/hlir16_attrs.py", line 883,
in set_additional_attrs
    attrfun(hlir16)
  File "/home/egerpon/P4-2020/t4p4s/src/hlir16/hlir16_attrs.py", line 385,
in attrs_header_types_add_attrs
    hdrt.bit_width   = sum([f.canonical_type().size for f in hdrt.fields])
  File "/home/egerpon/P4-2020/t4p4s/src/hlir16/p4node.py", line 239, in
__getattr__
    return self.__dict__[key]
KeyError: 'size'

Error: P4 to C compilation failed (error code: 1)

A PSA-t is idaig tudtam elvinni. Kb. ugyanezt csinalja. Hibat nem ir ki, de
ide jut mindketto.
Ami erdekes, hogy p4c-vel fordul a v1model-es valtozat. A PSA-t nem
probaltam.
Itt akadtam le egyelore.
Tippek?
Koszi!

G.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://plc.inf.elte.hu/pipermail/p4/attachments/20200716/464cd413/attachment.html>


More information about the P4 mailing list