Re: [PATCH] perf loongarch: Fix build failure with CONFIG_LIBDW_DWARF_UNWIND
From: Huacai Chen
Date: Tue Apr 14 2026 - 03:12:54 EST
On Tue, Apr 14, 2026 at 8:52 AM WANG Rui <r@xxxxxx> wrote:
>
> Building perf for LoongArch fails when CONFIG_LIBDW_DWARF_UNWIND is
> enabled because unwind-libdw.o is still referenced in
> arch/loongarch/util/Build.
>
> Fixes: e62fae9d9e8 ("perf unwind-libdw: Fix a cross-arch unwinding bug")
> Signed-off-by: WANG Rui <r@xxxxxx>
Acked-by: Huacai Chen <chenhuacai@xxxxxxxxxxx>
> ---
> tools/perf/arch/loongarch/util/Build | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/tools/perf/arch/loongarch/util/Build b/tools/perf/arch/loongarch/util/Build
> index 3ad73d0289f3..8d91e78d31c9 100644
> --- a/tools/perf/arch/loongarch/util/Build
> +++ b/tools/perf/arch/loongarch/util/Build
> @@ -1,4 +1,3 @@
> perf-util-y += header.o
>
> perf-util-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind.o
> -perf-util-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
> --
> 2.53.0
>
>