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

Tom Stellard via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 11 07:35:38 PST 2021


On 1/11/21 5:35 AM, Sedat Dilek via llvm-dev wrote:
> Hi,
> 
> when building a Linux-kernel with CONFIG_DEBUG_INFO_BTF=y my build breaks.
> 

I commented on the GitHub issue about the root cause of this.

> 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?

The LLVM_TARGETS_TO_BUILD CMake option controls which targets to build.

-Tom

> I hope this is not hardware-dependent (here: Intel SandyBridge).
> 
> Thanks in advance.
> 
> Regards,
> - Sedat -
> 
> [1] https://github.com/ClangBuiltLinux/tc-build/issues/129
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> 



More information about the llvm-dev mailing list