perf error while building images for ls1043ardb using flex-builder

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

perf error while building images for ls1043ardb using flex-builder

777 Views
sanjayben
Contributor II

I am trying build all images for the board ls1043arbd using flex-builder

I've used the command below as root

$ flex-builder -m ls1043ardb

 

The error log is below,

Kind help

 

COMPONENT: perf

SOCFAMILY: LS

make: Entering directory '/home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108'

make[1]: Entering directory '/home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/packages/linux'

 

Building kernel tools/perf ...

make[2]: Entering directory '/home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/components/linux/linux'

make[3]: Entering directory '/home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/build/linux/linux/arm64/LS/output/LSDK-21.08'

BUILD: Doing 'make -j3' parallel build

Warning: Kernel ABI header at 'tools/include/uapi/linux/stat.h' differs from latest version at 'include/uapi/linux/stat.h'

diff -u tools/include/uapi/linux/stat.h include/uapi/linux/stat.h

Warning: Kernel ABI header at 'tools/include/linux/build_bug.h' differs from latest version at 'include/linux/build_bug.h'

diff -u tools/include/linux/build_bug.h include/linux/build_bug.h

 

Auto-detecting system features:

... dwarf: [ OFF ]

... dwarf_getlocations: [ OFF ]

... glibc: [ on ]

... libbfd: [ OFF ]

... libbfd-buildid: [ OFF ]

... libcap: [ on ]

... libelf: [ OFF ]

... libnuma: [ OFF ]

... numa_num_possible_cpus: [ OFF ]

... libperl: [ OFF ]

... libpython: [ OFF ]

... libcrypto: [ OFF ]

... libunwind: [ OFF ]

... libdw-dwarf-unwind: [ OFF ]

... zlib: [ on ]

... lzma: [ OFF ]

... get_cpuid: [ OFF ]

... bpf: [ on ]

... libaio: [ on ]

... libzstd: [ OFF ]

... disassembler-four-args: [ OFF ]

 

Makefile.config:392: No libelf found. Disables 'probe' tool, jvmti and BPF support in 'perf record'. Please install libelf-dev, libelf-devel or elfutils-libelf-devel

Makefile.config:555: No sys/sdt.h found, no SDT events are defined, please install systemtap-sdt-devel or systemtap-sdt-dev

Makefile.config:630: Disabling post unwind, no support found.

Makefile.config:696: No libcrypto.h found, disables jitted code injection, please install openssl-devel or libssl-dev

Makefile.config:712: slang not found, disables TUI support. Please install slang-devel, libslang-dev or libslang2-dev

Makefile.config:759: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev

Makefile.config:795: No 'Python.h' (for Python 2.x support) was found: disables Python support - please install python-devel/python-dev

Makefile.config:833: Old version of libbfd/binutils things like PE executable profiling will not be available

Makefile.config:881: No liblzma found, disables xz kernel module decompression, please install xz-devel/liblzma-dev

Makefile.config:894: No libzstd found, disables trace compression, please install libzstd-dev[el] and/or set LIBZSTD_DIR

Makefile.config:918: No numa.h found, disables 'perf bench numa mem' benchmark, please install numactl-devel/libnuma-devel/libnuma-dev

Makefile.config:973: No libbabeltrace found, disables 'perf data' CTF format support, please install libbabeltrace-dev[el]/libbabeltrace-ctf-dev

In file included from /home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/components/linux/linux/tools/include/linux/refcount.h:42,

from /home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/components/linux/linux/tools/lib/perf/include/internal/cpumap.h:5,

from util/cpumap.h:7,

from builtin-sched.c:6:

builtin-sched.c: In function ‘create_tasks’:

/home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/components/linux/linux/tools/include/linux/kernel.h:43:17: error: comparison of distinct pointer types lacks a cast [-Werror]

43 | (void) (&_max1 == &_max2); \

| ^~

builtin-sched.c:673:13: note: in expansion of macro ‘max’

673 | (size_t) max(16 * 1024, PTHREAD_STACK_MIN));

| ^~~

cc1: all warnings being treated as errors

make[8]: *** [/home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/components/linux/linux/tools/build/Makefile.build:96: /home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/build/linux/linux/arm64/LS/output/LSDK-21.08/tools/perf/builtin-sched.o] Error 1

make[8]: *** Waiting for unfinished jobs....

make[7]: *** [Makefile.perf:643: /home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/build/linux/linux/arm64/LS/output/LSDK-21.08/tools/perf/perf-in.o] Error 2

make[6]: *** [Makefile.perf:229: sub-make] Error 2

make[5]: *** [Makefile:70: all] Error 2

make[4]: *** [Makefile:85: perf] Error 2

make[3]: *** [/home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/components/linux/linux/Makefile:1947: tools/perf] Error 2

make[3]: Leaving directory '/home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/build/linux/linux/arm64/LS/output/LSDK-21.08'

make[2]: *** [Makefile:185: __sub-make] Error 2

make[2]: Leaving directory '/home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/components/linux/linux'

make[1]: *** [perf.mk:7: perf] Error 2

make[1]: Leaving directory '/home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108/packages/linux'

make: *** [Makefile:22: perf] Error 2

make: Leaving directory '/home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108'

root@team-VirtualBox:/home/ls01043ardb/lsdk21.08_nxp/flexbuild_lsdk2108#

 

 

Tags (2)
0 Kudos
Reply
0 Replies