lkml.org 
[lkml]   [2014]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectBuild perf statically with all libunwind+dwaf for profiling userland process on constrained Linux box
From
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2014-07-25 22:01    [W:0.060 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site