All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincent Li <vincent.mc.li@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: "Michael S. Tsirkin" <mst@redhat.com>, Ingo Molnar <mingo@redhat.com>
Subject: Build perf statically with all libunwind+dwaf for profiling userland process on constrained Linux box
Date: Fri, 25 Jul 2014 12:13:38 -0700	[thread overview]
Message-ID: <CAK3+h2wRJj8xs10JwQ6=7-oQDVC9WM_qGuW52Otd9s2rxDf5QA@mail.gmail.com> (raw)

Hi,

I am on Fedora 20 and trying to build a static perf with  needed
library support, but it failed to detect the needed library, here is
the output

1, build dynamically detected the library ok

 [vincent@localhost perf]$ make
  BUILD:   Doing 'make -j4' parallel build
config/Makefile:422: GTK2 not found, disables GTK2 support. Please
install gtk2-devel or libgtk2.0-dev
config/Makefile:586: No numa.h found, disables 'perf bench numa mem'
benchmark, please install numactl-devel/libnuma-devel/libnuma-dev

Auto-detecting system features:
...                         dwarf: [ on  ]
...                         glibc: [ on  ]
...                          gtk2: [ OFF ]
...                      libaudit: [ on  ]
...                        libbfd: [ on  ]
...                        libelf: [ on  ]
...                       libnuma: [ OFF ]
...                       libperl: [ on  ]
...                     libpython: [ on  ]
...                      libslang: [ on  ]
...                     libunwind: [ on  ]
...            libdw-dwarf-unwind: [ on  ]
...     DWARF post unwind library: libunwind

2, build statically failed to detect the library

[vincent@localhost perf]$ make LDFLAGS=-static
  BUILD:   Doing 'make -j4' parallel build
config/Makefile:294: No libelf found, disables 'probe' tool, please
install elfutils-libelf-devel/libelf-dev
config/Makefile:357: Disabling post unwind, no support found.
config/Makefile:395: No libaudit.h found, disables 'trace' tool,
please install audit-libs-devel or libaudit-dev
config/Makefile:409: slang not found, disables TUI support. Please
install slang-devel or libslang-dev
config/Makefile:422: GTK2 not found, disables GTK2 support. Please
install gtk2-devel or libgtk2.0-dev
config/Makefile:499: No Python.h (for Python 2.x) was found
config/Makefile:499: Python support will not be built
config/Makefile:586: No numa.h found, disables 'perf bench numa mem'
benchmark, please install numactl-devel/libnuma-devel/libnuma-dev

Auto-detecting system features:
...                         dwarf: [ OFF ]
...                         glibc: [ on  ]
...                          gtk2: [ OFF ]
...                      libaudit: [ OFF ]
...                        libbfd: [ OFF ]
...                        libelf: [ OFF ]
...                       libnuma: [ OFF ]
...                       libperl: [ OFF ]
...                     libpython: [ OFF ]
...                      libslang: [ OFF ]
...                     libunwind: [ OFF ]
...            libdw-dwarf-unwind: [ OFF ]

I have a constrained centos-like Linux system (not centos)  that I
need to profile the userland process that is not compiled with GCC
option “-fno-omit-frame-pointer –ggdb”
https://bugzilla.redhat.com/show_bug.cgi?id=1025603.

it would be nice to be able to compile perf statically with needed
library support, could anyone share an idea how to resolve this?

sorry if this is not the right place to ask

Regards,

Vincent

                 reply	other threads:[~2014-07-25 19:19 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='CAK3+h2wRJj8xs10JwQ6=7-oQDVC9WM_qGuW52Otd9s2rxDf5QA@mail.gmail.com' \
    --to=vincent.mc.li@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=mst@redhat.com \
    /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.