You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.
When compiling a .p4 file as described in the readme, clang cannot find the ebpf_xdp.h header:
/tmp/xdp1.h:6:10: fatal error: 'ebpf_xdp.h' file not found
The header file is included in this repository and says
This file contains all functions and definitions necessary for the xdp target C code to compile. It must be included with any file generated by the p4c-xdp compiler.
But how am I supposed to include it? Of course, I could hack this together somehow, but I'm wondering what is the correct way you intended for this. 😄 Maybe the Readme needs an update?
The text was updated successfully, but these errors were encountered:
The C compiler can be given a -I flag to indicate a path where headers are expected to be found.
So probably adding clang -I tests .... would work (assuming you are invoking clang in the root directory of the p4c-xdp project, since the ebpf_xdp.h file is there.) If this works for you we can update the README.
Is it really necessary to include them manually or is there something wrong with my install (debian 10, built from sources) annd normally the headers get installed into the system?
Anyway, adding a hint to the Readme would probably be helpful for others.
When compiling a .p4 file as described in the readme, clang cannot find the
ebpf_xdp.h
header:The header file is included in this repository and says
But how am I supposed to include it? Of course, I could hack this together somehow, but I'm wondering what is the correct way you intended for this. 😄 Maybe the Readme needs an update?
The text was updated successfully, but these errors were encountered: