diff options
authorWang Nan <>2015-06-12 03:17:11 +0000
committerArnaldo Carvalho de Melo <>2015-06-16 10:34:38 -0300
commita35489a6a217f0396c979009b0c875d871434737 (patch)
parent5c24b67aae72f54c5d2a6898be4bae9726df63bb (diff)
tools lib traceevent: Fix python/ compiling error
'make build-test' finds an error that make_python_perf_so fails due to missing of libtraceevent-dynamic-list: '.../python2' util/ \ --quiet build_ext; \ mkdir -p python && \ cp python_ext_build/lib/ python/ /path/to/ld: cannot open linker script file /path/to/kernel/tools/lib/traceevent/libtraceevent-dynamic-list: No such file or directory collect2: error: ld returned 1 exit status error: command 'x86_64-linux-gcc' failed with exit status 1 cp: cannot stat 'python_ext_build/lib/': No such file or directory make[3]: *** [python/] Error 1 make[2]: *** [python/] Error 2 test: test -f ./python/ make[1]: *** [make_python_perf_so] Error 1 make: *** [build-test] Error 2 make: Leaving directory `/path/to/kernel/tools/perf' This is caused by commit e3d09ec8126fe2c9a3ade661e2126e215ca27a80 ("tools lib traceevent: Export dynamic symbols used by traceevent plugins") that, it adds the list file to LDFLAGS but forgot to add it to dependency list of python/ This patch fixes this problem. Signed-off-by: Wang Nan <> Acked-by: Jiri Olsa <> Cc: He Kuang <> Cc: Peter Zijlstra <> Cc: Zefan Li <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index b1dfcd8e93e3..374378322db9 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -190,7 +190,7 @@ python-clean := $(call QUIET_CLEAN, python) $(RM) -r $(PYTHON_EXTBUILD) $(OUTPUT
PYTHON_EXT_SRCS := $(shell grep -v ^\# util/python-ext-sources)
PYTHON_EXT_DEPS := util/python-ext-sources util/ $(LIBTRACEEVENT) $(LIBAPI)
--quiet build_ext; \
mkdir -p $(OUTPUT)python && \