TinkerBoard / debian_kernel

Debian Kernel source for Tinker Board
Other
143 stars 64 forks source link

'make' commands fails while building 'perf' in linux-tools #52

Open animeshbchowdhury opened 4 years ago

animeshbchowdhury commented 4 years ago

Hi Team,

I am trying to build perf for ASUS Tinkerboard S. I downloaded the package and am using the release branch for the same. I installed the necessary dependencies required. While doing make inside debian_kernel/tools/perf, I am getting an error for unused const variable from file util/cs-etm.c. Below is the snapshot :

BUILD: Doing 'make -j4' parallel build config/Makefile:612: No numa.h found, disables 'perf bench numa mem' benchmark, please install numactl-devel/libnuma-devel/libnuma-dev FLEX util/parse-events-flex.c CC util/parse-events-flex.o FLEX util/pmu-flex.c CC util/pmu-bison.o CC util/cs-etm.o CC util/probe-file.o CC util/probe-event.o util/cs-etm.c:1281:27: error: ‘cs_etm_global_header_fmts’ defined but not used [-Werror=unused-const-variable=] static const char * const cs_etm_global_header_fmts[] = { ^~~~~~~~~~~~~~~~~~~~~~~~~ CC util/probe-finder.o cc1: all warnings being treated as errors mv: cannot stat 'util/.cs-etm.o.tmp': No such file or directory /home/linaro/debian_kernel/tools/build/Makefile.build:87: recipe for target 'util/cs-etm.o' failed make[3]: *** [util/cs-etm.o] Error 1 make[3]: *** Waiting for unfinished jobs.... /home/linaro/debian_kernel/tools/build/Makefile.build:126: recipe for target 'util' failed make[2]: *** [util] Error 2 Makefile.perf:406: recipe for target 'libperf-in.o' failed make[1]: *** [libperf-in.o] Error 2 Makefile:68: recipe for target 'all' failed make: *** [all] Error 2

Can you please help in removing such errors and guide me to install perf for the customized kernel?