Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
animeshbchowdhury opened this issue Aug 8, 2020 · 0 comments
Open

Comments

@animeshbchowdhury
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant