Re: Build error of perf


Zhenhua Luo
 

Hi Lei,

May I know which branch you are using?


Best Regards,

Zhenhua

-----Original Message-----
From: meta-freescale@... <meta-
freescale@...> On Behalf Of leimaohui via
lists.yoctoproject.org
Sent: Tuesday, September 8, 2020 10:09 AM
To: Andrey Zhizhikin <andrey.z@...>
Cc: meta-freescale@...
Subject: Re: [meta-freescale] Build error of perf

Hi, Andrey

I guess you're not building the latest meta-freescale, since the
latest version of kernel recipes (linux-fslc and linux-fslc-imx)
contains version v5.4.62. Or it is possible that you're building
linux-imx kernel, in which case you would have to port the patch on top of
your tree.

I'm using linux-qoriq and I have updated to the newest commit of meta-
freescale.

Best regards
Lei

-----Original Message-----
From: Andrey Zhizhikin <andrey.z@...>
Sent: Monday, September 7, 2020 4:20 PM
To: Lei, Maohui <leimaohui@...>
Cc: meta-freescale@...
Subject: Re: [meta-freescale] Build error of perf

Hello Lei,

On Mon, Sep 7, 2020 at 7:37 AM leimaohui <leimaohui@...>
wrote:

Hi,

By latest meta-freescale, perf build failed, the error is as following:

---------------------------------------------
aarch64-ubinux-linux-ld:
/ubinux-dev/build-ubinux-armv8-multlib-daily/tmp/work/ubinux_armv8-u
bi
nux-linux/perf/1.0-r9/perf-1.0/bench/epoll-ctl.o:/usr/src/debug/perf
/1
.0-r9/perf-1.0/tools/perf/bench/epoll-ctl.c:38: multiple definition
of `runtime';
/ubinux-dev/build-ubinux-armv8-multlib-daily/tmp/work/ubinux_armv8-u
bi
nux-linux/perf/1.0-r9/perf-1.0/bench/epoll-wait.o:/usr/src/debug/per
f/
1.0-r9/perf-1.0/tools/perf/bench/epoll-wait.c:93: first defined here
aarch64-ubinux-linux-ld: /ubinux-dev/
build-ubinux-armv8-multlib-daily/tmp/work/ubinux_armv8-ubinux-
linux/perf/1.0-r9/perf-1.0/bench/epoll-ctl.o:/usr/src/debug/perf/1.0-r
9/perf-
1.0/tools/perf/bench/epoll-ctl.c:38: multiple definition of `end';
/ubinux-dev/
/build-ubinux-armv8-multlib-daily/tmp/work/ubinux_armv8-ubinux-
linux/perf/1.0-r9/perf-1.0/bench/epoll-wait.o:/usr/src/debug/perf/1.0-
r9/perf-1.0/tools/perf/bench/epoll-wait.c:93: first defined here ......
---------------------------------------------

It seems that the repository has to merge the following patch:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flk
ml.org%2Flkml%2F2020%2F3%2F4%2F313&amp;data=02%7C01%7Czhenhua.lu
o%40
nxp.com%7C63f43673235e4dd22bc008d8539c24f4%7C686ea1d3bc2b4c6fa92c
d99
c5c301635%7C0%7C0%7C637351277383842133&amp;sdata=Qm7fCOHUJ7JO3
eb2z%2
BxQ97ke6sGZJRFhjIJfyuMVtSo%3D&amp;reserved=0
This is covered by [df35e878d0a51755fb500e2e8e29c7ebb0239756] which is
present in the kernel tree and came in with v5.4.56.

I guess you're not building the latest meta-freescale, since the
latest version of kernel recipes (linux-fslc and linux-fslc-imx)
contains version v5.4.62. Or it is possible that you're building
linux-imx kernel, in which case you would have to port the patch on top of
your tree.


Best regards
Lei





--
Regards,
Andrey.

Join meta-freescale@lists.yoctoproject.org to automatically receive all group messages.