[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAK3+h2wRJj8xs10JwQ6=7-oQDVC9WM_qGuW52Otd9s2rxDf5QA@mail.gmail.com>
Date: Fri, 25 Jul 2014 12:13:38 -0700
From: Vincent Li <vincent.mc.li@...il.com>
To: linux-kernel@...r.kernel.org
Cc: "Michael S. Tsirkin" <mst@...hat.com>,
Ingo Molnar <mingo@...hat.com>
Subject: Build perf statically with all libunwind+dwaf for profiling userland
process on constrained Linux box
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@...alhost 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@...alhost 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
--
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