Perf: user land tools compiled failed on 3.5.0-rc7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[Other Archives]     [Linux Kernel Newbies]     [Linux Driver Development]     [Linux Kbuild]     [Fedora Kernel]     [Linux Kernel Testers]     [Linux SH]     [Linux Omap]     [Linux Tape]     [Linux Input]     [Linux Kernel Janitors]     [Linux Kernel Packagers]     [Linux Doc]     [Linux Man Pages]     [Linux API]     [Linux Memory Management]     [Linux Modules]     [Linux Standards]     [Kernel Announce]     [Netdev]     [Git]     [Linux PCI]     Linux CAN Development     [Linux I2C]     [Linux RDMA]     [Linux NUMA]     [Netfilter]     [Netfilter Devel]     [SELinux]     [Bugtraq]     [FIO]     [Linux Perf Users]     [Linux Serial]     [Linux PPP]     [Linux ISDN]     [Linux Next]     [Kernel Stable Commits]     [Linux Tip Commits]     [Kernel MM Commits]     [Linux Security Module]     [AutoFS]     [Filesystem Development]     [Ext3 Filesystem]     [Linux bcache]     [Ext4 Filesystem]     [Linux BTRFS]     [Linux CEPH Filesystem]     [Linux XFS]     [XFS]     [Linux NFS]     [Linux CIFS]     [Ecryptfs]     [Linux NILFS]     [Linux Cachefs]     [Reiser FS]     [Initramfs]     [Linux FB Devel]     [Linux OpenGL]     [DRI Devel]     [Fastboot]     [Linux RT Users]     [Linux RT Stable]     [eCos]     [Corosync]     [Linux Clusters]     [LVS Devel]     [Hot Plug]     [Linux Virtualization]     [KVM]     [KVM PPC]     [KVM ia64]     [Linux Containers]     [Linux Hexagon]     [Linux Cgroups]     [Util Linux]     [Wireless]     [Linux Bluetooth]     [Bluez Devel]     [Ethernet Bridging]     [Embedded Linux]     [Barebox]     [Linux MMC]     [Linux IIO]     [Sparse]     [Smatch]     [Linux Arch]     [x86 Platform Driver]     [Linux ACPI]     [Linux IBM ACPI]     [LM Sensors]     [CPU Freq]     [Linux Power Management]     [Linmodems]     [Linux DCCP]     [Linux SCTP]     [ALSA Devel]     [Linux USB]     [Linux PA RISC]     [Linux Samsung SOC]     [MIPS Linux]     [IBM S/390 Linux]     [ARM Linux]     [ARM Kernel]     [ARM MSM]     [Tegra Devel]     [Sparc Linux]     [Linux Security]     [Linux Sound]     [Linux Media]     [Video 4 Linux]     [Linux IRDA Users]     [Linux for the blind]     [Linux RAID]     [Linux ATA RAID]     [Device Mapper]     [Linux SCSI]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Linux IDE]     [Linux SMP]     [Linux AXP]     [Linux Alpha]     [Linux M68K]     [Linux ia64]     [Linux 8086]     [Linux x86_64]     [Linux Config]     [Linux Apps]     [Linux MSDOS]     [Linux X.25]     [Linux Crypto]     [DM Crypt]     [Linux Trace Users]     [Linux Btrace]     [Linux Watchdog]     [Utrace Devel]     [Linux C Programming]     [Linux Assembly]     [Dash]     [DWARVES]     [Hail Devel]     [Linux Kernel Debugger]     [Linux gcc]     [Gcc Help]     [X.Org]     [Wine]

Add to Google Powered by Linux

[Older Kernel Discussion]     [Yosemite National Park Forum]     [Large Format Photos]     [Gimp]     [Yosemite Photos]     [Stuff]