[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Zh_x0_VSO72xyaer@x1>
Date: Wed, 17 Apr 2024 12:59:15 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: Ian Rogers <irogers@...gle.com>
Cc: cp0613@...ux.alibaba.com, palmer@...belt.com, paul.walmsley@...ive.com,
aou@...s.berkeley.edu, linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-riscv@...ts.infradead.org
Subject: Re: [PATCH] tools/perf: Fix compiling with libelf on rv32
On Tue, Apr 16, 2024 at 08:04:55AM -0700, Ian Rogers wrote:
> On Mon, Apr 15, 2024 at 2:57 AM <cp0613@...ux.alibaba.com> wrote:
> >
> > From: Chen Pei <cp0613@...ux.alibaba.com>
> >
> > When cross-compiling perf with libelf, the following error occurred:
> >
> > In file included from tests/genelf.c:14:
> > tests/../util/genelf.h:50:2: error: #error "unsupported architecture"
> > 50 | #error "unsupported architecture"
> > | ^~~~~
> > tests/../util/genelf.h:59:5: warning: "GEN_ELF_CLASS" is not defined, evaluates to 0 [-Wundef]
> > 59 | #if GEN_ELF_CLASS == ELFCLASS64
> >
> > Fix this by adding GEN-ELF-ARCH and GEN-ELF-CLASS definitions for rv32.
> >
> > Signed-off-by: Chen Pei <cp0613@...ux.alibaba.com>
>
> Reviewed-by: Ian Rogers <irogers@...gle.com>
Thanks, applied to perf-tools-next,
- Arnaldo
Powered by blists - more mailing lists