lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 16 Jul 2012 14:16:25 +0900
From:	Namhyung Kim <namhyung@...nel.org>
To:	jeff.liu@...cle.com
Cc:	"linux-kernel\@vger.kernel.org" <linux-kernel@...r.kernel.org>,
	Jiri Olsa <jolsa@...hat.com>
Subject: Re: Perf:  user land tools compiled failed on 3.5.0-rc7

Hi,

(CC-ing Jiri)

On Sun, 15 Jul 2012 22:32:14 +0800, Jeff Liu wrote:
> 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'
>

Hmm.. I can't reproduce it. Those symbols should be in pmu-flex.c:

 $ grep 'perf_pmu_in$' -Inr .
 ./util/pmu-flex.c:15:#define yyin perf_pmu_in

 $ grep 'perf_pmu_lex ' -Inr .
 ./util/pmu-flex.h:292:extern int perf_pmu_lex (void);
 ./util/pmu-flex.h:294:#define YY_DECL int perf_pmu_lex (void)
 ./util/pmu-flex.c:650:extern int perf_pmu_lex (void);
 ./util/pmu-flex.c:652:#define YY_DECL int perf_pmu_lex (void)
 ./util/pmu-flex.c:946:} /* end of perf_pmu_lex */
 ./util/pmu-bison.c:86:extern int perf_pmu_lex (void);
 ./util/pmu.y:14:extern int perf_pmu_lex (void);

Thanks,
Namhyung


> 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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ