Re: Build error of perf


Andrey Zhizhikin
 

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-ubinux-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-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
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-r9/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://lkml.org/lkml/2020/3/4/313
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.