Skip to content

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

Open

Description

@animeshbchowdhury

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions