linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vinson Lee <vlee@twopensource.com>
To: linux-perf-users@vger.kernel.org
Subject: perf linking error with NO_DWARF=1 and NO_LIBUNWIND=1
Date: Sat, 18 Apr 2015 00:05:39 -0700	[thread overview]
Message-ID: <CAHTgTXVqzwcP39PqwaLNUFSdc-q_fk6cWEdfGQoNzqsGu9Qb8g@mail.gmail.com> (raw)

I build perf with NO_DWARF=1 and my spec file does not require libunwind-devel.

With this combination I see perf linking errors such as the following.

  LINK     perf
libperf.a(unwind-libdw.o): In function `libdw__arch_set_initial_registers':
tools/perf/arch/x86/util/unwind-libdw.c:50: undefined reference to
`dwfl_thread_state_registers'

This linking error was introduced with commit
0a4f2b6a3ba5066947a8cbd7cfa26fb8a9280625 "perf tools: Setup default
dwarf post unwinder" in Linux 3.15-rc1.

The above error can also be reproduced with this command line.
make -C tools/perf NO_DWARF=1 NO_LIBUNWIND=1

Cheers,
Vinson

                 reply	other threads:[~2015-04-18  7:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAHTgTXVqzwcP39PqwaLNUFSdc-q_fk6cWEdfGQoNzqsGu9Qb8g@mail.gmail.com \
    --to=vlee@twopensource.com \
    --cc=linux-perf-users@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).