[P4-dev] p4c Travis broken tonight

hemant at mnkcg.com hemant at mnkcg.com
Wed Feb 6 22:53:22 EST 2019


The following tests fail with latest p4c and its Travis.

 

Test project /home/hemant/p4c/build

    Start 152: bmv2/testdata/p4_14_samples/p414-special-ops-2-bmv2-midend.p4

1/6 Test #152: bmv2/testdata/p4_14_samples/p414-special-ops-2-bmv2-midend.p4
........***Failed    0.34 sec

    Start 154: bmv2/testdata/p4_14_samples/p414-special-ops-3-bmv2-midend.p4

2/6 Test #154: bmv2/testdata/p4_14_samples/p414-special-ops-3-bmv2-midend.p4
........***Failed    0.35 sec

    Start 1178:
p14_to_16/testdata/p4_14_samples/p414-special-ops-2-bmv2-midend.p4

3/6 Test #1178:
p14_to_16/testdata/p4_14_samples/p414-special-ops-2-bmv2-midend.p4
...***Failed    0.10 sec

    Start 1179: p14_to_16/testdata/p4_14_samples/p414-special-ops-2-bmv2.p4

5/6 Test #1180:
p14_to_16/testdata/p4_14_samples/p414-special-ops-3-bmv2-midend.p4
...***Failed    0.10 sec

 

Turns out, these tests were added recently by the following issue and its
commit.

 

Add XFAIL P4_14 test program that fails because of issue #1694

 

https://github.com/p4lang/p4c/commit/00cf6c82b6f30e32d086a8267757e80f65b1783
f

 

Debugging one failure, I see this log.  Soon as I change '--std p4-14' to
'--std p4-16', the test passes. 

 

./p4test --pp ./tmp9eAdHC/p414-special-ops-3-bmv2-midend.p4 --dump
./tmp9eAdHC --t

op4 FrontEndLast,FrontEndDump,MidEndLast --testJson --arch v1model --std
p4-14 /ho

me/hemant/p4c/testdata/p4_14_samples/p414-special-ops-3-bmv2-midend.p4

Exit code  1

Error compiling

p414-special-ops-3-bmv2-midend.p4:1:19: error: no include path in which to
search 

for core.p4

#include <core.p4>

                   ^

 

Hemant

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20190206/e4dca2b8/attachment.html>


More information about the P4-dev mailing list