* [PATCH] perf loongarch: Fix build failure with CONFIG_LIBDW_DWARF_UNWIND
@ 2026-04-14 0:51 WANG Rui
[not found] ` <CANVb8WZXZj1Yqd7foqHBLSHjO73r0Kg62bMbrb--aE8wR3G2hg@mail.gmail.com>
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: WANG Rui @ 2026-04-14 0:51 UTC (permalink / raw)
To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
Namhyung Kim
Cc: Mark Rutland, Alexander Shishkin, Jiri Olsa, Ian Rogers,
Adrian Hunter, James Clark, linux-perf-users, linux-kernel,
loongarch, WANG Rui
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@hev.cc>
---
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] perf loongarch: Fix build failure with CONFIG_LIBDW_DWARF_UNWIND
[not found] ` <CANVb8WZXZj1Yqd7foqHBLSHjO73r0Kg62bMbrb--aE8wR3G2hg@mail.gmail.com>
@ 2026-04-14 1:18 ` hev
2026-04-14 6:47 ` Namhyung Kim
0 siblings, 1 reply; 5+ messages in thread
From: hev @ 2026-04-14 1:18 UTC (permalink / raw)
To: jiny L
Cc: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
Namhyung Kim, Mark Rutland, Alexander Shishkin, Jiri Olsa,
Ian Rogers, Adrian Hunter, James Clark, linux-perf-users,
linux-kernel, loongarch
On Tue, Apr 14, 2026 at 9:13 AM jiny L <leeavianna3@gmail.com> wrote:
>
>
>
> On Mon, Apr 13, 2026 at 5:52 PM WANG Rui <r@hev.cc> 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@hev.cc>
>> ---
>> 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@google.com/
Thanks for the reference.
Rui
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] perf loongarch: Fix build failure with CONFIG_LIBDW_DWARF_UNWIND
2026-04-14 1:18 ` hev
@ 2026-04-14 6:47 ` Namhyung Kim
0 siblings, 0 replies; 5+ messages in thread
From: Namhyung Kim @ 2026-04-14 6:47 UTC (permalink / raw)
To: hev
Cc: jiny L, Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
Mark Rutland, Alexander Shishkin, Jiri Olsa, Ian Rogers,
Adrian Hunter, James Clark, linux-perf-users, linux-kernel,
loongarch
On Tue, Apr 14, 2026 at 09:18:18AM +0800, hev wrote:
> On Tue, Apr 14, 2026 at 9:13 AM jiny L <leeavianna3@gmail.com> wrote:
> >
> >
> >
> > On Mon, Apr 13, 2026 at 5:52 PM WANG Rui <r@hev.cc> 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@hev.cc>
> >> ---
> >> 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@google.com/
>
> Thanks for the reference.
> Rui
As the Ian's series is still under review, I'd pick this one instead.
Thanks,
Namhyung
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] perf loongarch: Fix build failure with CONFIG_LIBDW_DWARF_UNWIND
2026-04-14 0:51 [PATCH] perf loongarch: Fix build failure with CONFIG_LIBDW_DWARF_UNWIND WANG Rui
[not found] ` <CANVb8WZXZj1Yqd7foqHBLSHjO73r0Kg62bMbrb--aE8wR3G2hg@mail.gmail.com>
@ 2026-04-14 7:12 ` Huacai Chen
2026-04-14 17:12 ` Namhyung Kim
2 siblings, 0 replies; 5+ messages in thread
From: Huacai Chen @ 2026-04-14 7:12 UTC (permalink / raw)
To: WANG Rui
Cc: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
Namhyung Kim, Mark Rutland, Alexander Shishkin, Jiri Olsa,
Ian Rogers, Adrian Hunter, James Clark, linux-perf-users,
linux-kernel, loongarch
On Tue, Apr 14, 2026 at 8:52 AM WANG Rui <r@hev.cc> 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@hev.cc>
Acked-by: Huacai Chen <chenhuacai@loongson.cn>
> ---
> 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
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] perf loongarch: Fix build failure with CONFIG_LIBDW_DWARF_UNWIND
2026-04-14 0:51 [PATCH] perf loongarch: Fix build failure with CONFIG_LIBDW_DWARF_UNWIND WANG Rui
[not found] ` <CANVb8WZXZj1Yqd7foqHBLSHjO73r0Kg62bMbrb--aE8wR3G2hg@mail.gmail.com>
2026-04-14 7:12 ` Huacai Chen
@ 2026-04-14 17:12 ` Namhyung Kim
2 siblings, 0 replies; 5+ messages in thread
From: Namhyung Kim @ 2026-04-14 17:12 UTC (permalink / raw)
To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo, WANG Rui
Cc: Mark Rutland, Alexander Shishkin, Jiri Olsa, Ian Rogers,
Adrian Hunter, James Clark, linux-perf-users, linux-kernel,
loongarch
On Tue, 14 Apr 2026 08:51:52 +0800, WANG Rui 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.
>
>
Applied to perf-tools-next, thanks!
Best regards,
Namhyung
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-04-14 17:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14 0:51 [PATCH] perf loongarch: Fix build failure with CONFIG_LIBDW_DWARF_UNWIND WANG Rui
[not found] ` <CANVb8WZXZj1Yqd7foqHBLSHjO73r0Kg62bMbrb--aE8wR3G2hg@mail.gmail.com>
2026-04-14 1:18 ` hev
2026-04-14 6:47 ` Namhyung Kim
2026-04-14 7:12 ` Huacai Chen
2026-04-14 17:12 ` Namhyung Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox