[llvm-dev] BPF: How can I enable BPF support in my LLVM toolchain?

Sedat Dilek via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 11 05:35:22 PST 2021


Hi,

when building a Linux-kernel with CONFIG_DEBUG_INFO_BTF=y my build breaks.

This is because my selfmade LLVM toolchain v11.0.1 has no BPF support:

$ llc --version
LLVM (http://llvm.org/):
 LLVM version 11.0.1
 Optimized build.
 Default target: x86_64-unknown-linux-gnu
 Host CPU: sandybridge

 Registered Targets:
   x86    - 32-bit X86: Pentium-Pro and above
   x86-64 - 64-bit X86: EM64T and AMD64

What system or binary requirements do I need and which CMAKE option(s)
need(s) to be set?
I hope this is not hardware-dependent (here: Intel SandyBridge).

Thanks in advance.

Regards,
- Sedat -

[1] https://github.com/ClangBuiltLinux/tc-build/issues/129


More information about the llvm-dev mailing list