Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Using XDP with clang/llvm version 9 #124

Open
maharishib opened this issue Mar 23, 2020 · 3 comments
Open

Using XDP with clang/llvm version 9 #124

maharishib opened this issue Mar 23, 2020 · 3 comments
Labels

Comments

@maharishib
Copy link

maharishib commented Mar 23, 2020

Hi,
My XDP code is running perfectly with clang/llvm version < 8. When compiling using v9, I get the following error:
0 maps not supported in current map section!
Error fixing up map structure, incompatible struct bpf_elf_map used?
Error fetching ELF ancillary data!

I need to use v9 as bpf_spin_locks are not supported by clang/llvm version < 8 due to some BTF annotation issue.

@mihaibudiu
Copy link
Contributor

mihaibudiu commented Mar 23, 2020

I frankly do not think this is a problem with our compiler; here are other people complaining about a similar problem: https://forums.whirlpool.net.au/archive/9znlnrk9
The error message is somewhere in iproute.

@maharishib
Copy link
Author

OK Thanks

@mihaibudiu
Copy link
Contributor

On the other hand, we are using some hand-crafted bpf headers, which may become incompatible with the kernel headers if they change. This has been a long-standing problem. I understand that there may be better solutions in newer kernel versions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2 participants