Re: [RFC] perf build: Allow passing extra Clang flags via EXTRA_CLANG_FLAGS
From: Leo Yan
Date: Mon Oct 13 2025 - 12:14:32 EST
On Mon, Oct 13, 2025 at 08:46:01AM -0700, Ian Rogers wrote:
> On Mon, Oct 13, 2025 at 1:08 AM hupu <hupu.gm@xxxxxxxxx> wrote:
> >
> > Hi Maintainer,
> >
> > I encountered some issues while cross-compiling perf (ARCH=arm64),
> > particularly when enabling the BPF option. During the build, Clang
> > fails to compile BPF programs due to missing header files. The
> > relevant error messages are as follows:
>
> Thanks for reporting this issue! There has been some recent work in
> this area by Leo:
> https://lore.kernel.org/lkml/20251006-perf_build_android_ndk-v3-0-4305590795b2@xxxxxxx/
> The patches are in Linux v6.18-rc1. Perhaps you could try repeating
> your build with this tree and reporting issues?
I am not 100% sure, could you execute install kernel headers and then
build perf ?
make headers_install
Thanks,
Leo