Re: [PATCH] perf loongarch: Fix build failure with CONFIG_LIBDW_DWARF_UNWIND

From: hev

Date: Mon Apr 13 2026 - 21:18:55 EST


On Tue, Apr 14, 2026 at 9:13 AM jiny L <leeavianna3@xxxxxxxxx> wrote:
>
>
>
> On Mon, Apr 13, 2026 at 5:52 PM 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>
>> ---
>> 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
>>
>>
>
> I happened to have the same build issue on linux 7.0 and I found there is already a patch fixing this https://lore.kernel.org/lkml/20260413024805.1316480-3-irogers@xxxxxxxxxx/

Thanks for the reference.
Rui