Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make check fails #1721

Closed
maharishib opened this issue Feb 8, 2019 · 6 comments
Closed

make check fails #1721

maharishib opened this issue Feb 8, 2019 · 6 comments
Labels
fixed This topic is considered to be fixed. question This is a topic requesting clarification.

Comments

@maharishib
Copy link

make is 100% complete
make check fails for ebpf and xdp
LogTest.log is attached
LastTest.log

@hesingh
Copy link
Contributor

hesingh commented Feb 8, 2019

EBPF has dependencies which are listed at this URL:

https://github.com/p4lang/p4c/blob/master/backends/ebpf/README.md

Install the software below and 'make check' will pass.

$ sudo apt-get install clang llvm libpcap-dev libelf-dev iproute2 net-tools
$ sudo pip install pyroute2 ply scapy==2.4.0

@maharishib
Copy link
Author

I tried, but same errors

@hesingh
Copy link
Contributor

hesingh commented Feb 11, 2019

Please email p4-dev with this issue and see if others can reply. I have seen Issues filed in the past when make check fails for EBPF. p4c did fix some failures, but all failures may not have been fixed.

@hesingh
Copy link
Contributor

hesingh commented Feb 11, 2019

See #1376

@mihaibudiu
Copy link
Contributor

Some of the errors in your log are related to the xdp extension, which is not part of this project.
Can you first try to compile without that extension?
Just delete the symlink from the extensions folder.
Second, when you install the extension, can you make sure you follow the instructions from the p4c-xdp project web page?

@mihaibudiu mihaibudiu added the question This is a topic requesting clarification. label Feb 27, 2019
@maharishib
Copy link
Author

Solved this problem by first removing /usr/include/linux/bpf.h and then creating a soft link /usr/include/linux/bpf.h which points to /usr/src/linux-headers-uname -r/include/uapi/linux/

@mihaibudiu mihaibudiu added the fixed This topic is considered to be fixed. label Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed This topic is considered to be fixed. question This is a topic requesting clarification.
Projects
None yet
Development

No branches or pull requests

3 participants