On 18/10/2019 14:59, Chris Adams wrote:
Once upon a time, Tom Hughes <tom@xxxxxxxxxx> 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.
Right so clang should probably default to setting the normal host
defines when the target is BPF so maybe somebody should open a bug
with clang about it...
Tom
--
Tom Hughes (tom@xxxxxxxxxx)
http://compton.nu/
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/devel@xxxxxxxxxxxxxxxxxxxxxxx