Once upon a time, Tom Hughes <[email protected]> said:
> Well I imagine clang will define it when targetting x86_64 output
> but in this case he is targetting BPF output instead.
> 
> Adding -D__x86_64__ to the command line may be the quickest workaround
> for now though.

Yes, but in my VERY limited understanding, a given compiled eBPF object
is only for the specific kernel it was compiled against.  The kernel
headers define structures differently for different architectures, so to
use them, you have to have the right defines in the compiler.

There's probably a better way than just using -D__x86_64__ though, since
that would (obviously) only be correct on x86_64.  Fedora supports other
architectures, so there should be a more generic way to get the correct
architecture macros defined.

-- 
Chris Adams <[email protected]>
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to