MaoJianwei / P4-example-code

P4 example code referred by my posted article at my blog www.MaoJianwei.com and www.SDNLAB.com
http://www.maojianwei.com/
4 stars 1 forks source link

core.p4 not found #1

Open wjf1993 opened 6 years ago

wjf1993 commented 6 years ago

root@ubuntu:/home/sdn/test_my_p4_core# p4c-bm2-ss --p4v 16 -o output.file ./mao_push_three_labels_send_back.p4 ./mao_push_three_labels_send_back.p4:1:19: error: no include path in which to search for core.p4 ./mao_push_three_labels_send_back.p4:2:22: error: no include path in which to search for v1model.p4 ./mao_push_three_labels_send_back.p4(51):syntax error, unexpected IDENTIFIER "packet_in" parser ParserImpl(packet_in ^^^^^^^^^ error: Preprocessor returned exit code 256; abortin

MaoJianwei commented 6 years ago

thanks for attentions.

You need compile and install p4c and behaviour-model first.

wjf1993 commented 6 years ago

我已经安装编译了p4c和behaviour-model 了,这个貌似是一个bug,在p4c issue上已经有人提交了这个错误。

MaoJianwei commented 6 years ago

可能是近两个月的commit引入的bug吧,我的一直很正常,看来不能随便 pull

在 2018-03-14 15:57:52,"wjf1993" notifications@github.com 写道:

我已经安装编译了p4c和behaviour-model 了,这个貌似是一个bug,在p4c issue上已经有人提交了这个错误。

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.