From: Jeff Liu <jeff.liu@oracle.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Perf: user land tools compiled failed on 3.5.0-rc7
Date: Sun, 15 Jul 2012 22:32:14 +0800 [thread overview]
Message-ID: <5002D46E.4080103@oracle.com> (raw)
Hello,
I failed to compile perf tools on 3.5.0-rc7 with bison && flex
pre-installed.
The error seems something like this,
libperf.a(pmu.o): In function `pmu_format_parse':
/usr/src/linux/tools/perf/util/pmu.c:47: undefined reference to
`perf_pmu_in'
libperf.a(pmu-bison.o): In function `perf_pmu_parse':
/usr/src/linux/tools/perf/util/pmu-bison.c:1287: undefined reference to
`perf_pmu_lex'
For detail, please check the following,
/usr/src/linux/tools/perf$ make -j12
Makefile:450: No libdw.h found or old libdw.h found or elfutils is older
than 0.138, disables dwarf support. Please install new
elfutils-devel/libdw-dev
PERF_VERSION = 3.5.rc7
Makefile:450: No libdw.h found or old libdw.h found or elfutils is older
than 0.138, disables dwarf support. Please install new
elfutils-devel/libdw-dev
GEN common-cmds.h
* new build flags or prefix
CC bench/mem-memcpy-x86-64-asm.o
CC bench/mem-memset-x86-64-asm.o
CC bench/mem-memcpy.o
CC bench/mem-memset.o
CC builtin-diff.o
CC builtin-evlist.o
CC builtin-sched.o
CC builtin-buildid-list.o
CC builtin-buildid-cache.o
CC builtin-list.o
CC builtin-record.o
CC builtin-report.o
CC builtin-stat.o
CC builtin-timechart.o
CC builtin-top.o
CC builtin-script.o
CC builtin-probe.o
CC builtin-kmem.o
CC builtin-lock.o
CC builtin-kvm.o
CC builtin-test.o
CC builtin-inject.o
CC util/abspath.o
CC util/alias.o
CC util/annotate.o
CC util/build-id.o
CC util/config.o
CC util/ctype.o
CC util/debugfs.o
CC util/sysfs.o
CC util/pmu.o
CC util/environment.o
CC util/event.o
CC util/evlist.o
CC util/evsel.o
CC util/exec_cmd.o
CC util/help.o
CC util/levenshtein.o
CC util/parse-options.o
CC util/parse-events.o
CC util/parse-events-test.o
CC util/path.o
CC util/rbtree.o
CC util/bitmap.o
CC util/hweight.o
CC util/run-command.o
CC util/quote.o
CC util/strbuf.o
CC util/string.o
CC util/strlist.o
CC util/strfilter.o
CC util/top.o
CC util/usage.o
CC util/wrapper.o
CC util/sigchain.o
CC util/symbol.o
CC util/color.o
CC util/pager.o
CC util/header.o
CC util/callchain.o
CC util/values.o
CC util/debug.o
CC util/map.o
CC util/pstack.o
CC util/session.o
CC util/thread.o
CC util/thread_map.o
CC util/trace-event-parse.o
CC util/parse-events-flex.o
CC util/parse-events-bison.o
CC util/pmu-flex.o
CC util/pmu-bison.o
CC util/trace-event-read.o
CC util/trace-event-info.o
CC util/trace-event-scripting.o
CC util/svghelper.o
CC util/sort.o
CC util/hist.o
CC util/probe-event.o
CC util/util.o
CC util/xyarray.o
CC util/cpumap.o
CC util/cgroup.o
CC util/target.o
CC arch/x86/util/header.o
CC ui/setup.o
CC ui/browser.o
CC ui/browsers/annotate.o
CC ui/browsers/hists.o
CC ui/browsers/map.o
CC ui/helpline.o
CC ui/progress.o
CC ui/util.o
CC ui/tui/setup.o
CC ui/gtk/browser.o
CC ui/gtk/setup.o
CC util/scripting-engines/trace-event-python.o
CC scripts/python/Perf-Trace-Util/Context.o
SUBDIR ../lib/traceevent/
GEN perf-archive
make[1]: `libtraceevent.a' is up to date.
GEN python/perf.so
CC perf.o
CC builtin-annotate.o
CC builtin-bench.o
CC bench/sched-messaging.o
CC bench/sched-pipe.o
CC builtin-help.o
AR libperf.a
LINK perf
libperf.a(pmu.o): In function `pmu_format_parse':
/usr/src/linux/tools/perf/util/pmu.c:47: undefined reference to
`perf_pmu_in'
libperf.a(pmu-bison.o): In function `perf_pmu_parse':
/usr/src/linux/tools/perf/util/pmu-bison.c:1287: undefined reference to
`perf_pmu_lex'
collect2: ld returned 1 exit status
make: *** [perf] Error 1
make: *** Waiting for unfinished jobs....
Thanks,
-Jeff
next reply other threads:[~2012-07-15 14:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-15 14:32 Jeff Liu [this message]
2012-07-16 5:16 ` Perf: user land tools compiled failed on 3.5.0-rc7 Namhyung Kim
2012-07-16 9:28 ` Jeff Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5002D46E.4080103@oracle.com \
--to=jeff.liu@oracle.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.