* make perf-targz-src-pkg or better approach to install perf? @ 2017-02-21 20:42 Mark Davis 2017-02-21 23:15 ` Arnaldo Carvalho de Melo 0 siblings, 1 reply; 6+ messages in thread From: Mark Davis @ 2017-02-21 20:42 UTC (permalink / raw) To: linux-perf-users Hi all. I used to use make perf-targz-src-pkg to install perf from the linux/tools/perf source. I'm now trying to upgrade my perf installation from source again and I'm not seeing this make target. I'm having a bit of trouble with dependencies. Here's what I get when I try to build. (Note: my source is from github (https://github.com/torvalds/linux) at 772c8f6 (from a couple hours ago). Is there a new / recommended approach to installing perf that is similar to the above approach? I don't have root on this machine and need to install either from source or a relatively recent package that I can install to an arbitrary directory. I'm using clang 3.8.0 as my compiler (note: I can change this or upgrade this if necessary). In particular I'm trying to get BPF in perf-record, which seems to be disabled based on the warnings that print out. I'm also getting this other compiler error: warning: optimization level '-O6' is not supported; using '-O3' instead CC pmu-events/pmu-events.o error: unknown warning option '-Wstrict-aliasing=3'; did you mean '-Wstring-plus-int'? [-Werror,-Wunknown-warning-option] Auto-detecting system features: ... dwarf: [ OFF ] ... dwarf_getlocations: [ OFF ] ... glibc: [ on ] ... gtk2: [ on ] ... libaudit: [ OFF ] ... libbfd: [ OFF ] ... libelf: [ OFF ] ... libnuma: [ on ] ... numa_num_possible_cpus: [ on ] ... libperl: [ on ] ... libpython: [ on ] ... libslang: [ on ] ... libcrypto: [ OFF ] ... libunwind: [ OFF ] ... libdw-dwarf-unwind: [ OFF ] ... zlib: [ on ] ... lzma: [ on ] ... get_cpuid: [ on ] ... bpf: [ on ] Makefile.config:275: No libelf found, disables 'probe' tool and BPF support in 'perf record', please installlibelf-dev, libelf-devel or elfutils-libelf-devel Makefile.config:377: No sys/sdt.h found, no SDT events are defined, please install systemtap-sdt-devel or systemtap-sdt-dev Makefile.config:450: Disabling post unwind, no support found. Makefile.config:496: No libaudit.h found, disables 'trace' tool, please install audit-libs-devel or libaudit-dev Makefile.config:507: No libcrypto.h found, disables jitted code injection, please install libssl-devel or libssl-dev Makefile.config:798: No openjdk development package found, please install JDK package Thank you, Mark ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: make perf-targz-src-pkg or better approach to install perf? 2017-02-21 20:42 make perf-targz-src-pkg or better approach to install perf? Mark Davis @ 2017-02-21 23:15 ` Arnaldo Carvalho de Melo 2017-02-22 22:04 ` Mark Davis 0 siblings, 1 reply; 6+ messages in thread From: Arnaldo Carvalho de Melo @ 2017-02-21 23:15 UTC (permalink / raw) To: Mark Davis; +Cc: linux-perf-users Em Tue, Feb 21, 2017 at 03:42:39PM -0500, Mark Davis escreveu: > Hi all. I used to use > > make perf-targz-src-pkg > > to install perf from the linux/tools/perf source. I'm now trying to > upgrade my perf installation from source again and I'm not seeing this > make target. I'm having a bit of trouble with dependencies. Here's > what I get when I try to build. (Note: my source is from github > (https://github.com/torvalds/linux) at 772c8f6 (from a couple hours So, please pull again from that repo, I made changes to make tools/ build with clang 4.0, should be working and have the warnings addressed below fixed. > ago). Is there a new / recommended approach to installing perf that is > similar to the above approach? I don't have root on this machine and > need to install either from source or a relatively recent package that > I can install to an arbitrary directory. I'm using clang 3.8.0 as my > compiler (note: I can change this or upgrade this if necessary). In > particular I'm trying to get BPF in perf-record, which seems to be > disabled based on the warnings that print out. > > I'm also getting this other compiler error: > > warning: optimization level '-O6' is not supported; using '-O3' instead > > CC pmu-events/pmu-events.o > > error: unknown warning option '-Wstrict-aliasing=3'; did you mean > '-Wstring-plus-int'? > > [-Werror,-Wunknown-warning-option] > > - Arnaldo ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: make perf-targz-src-pkg or better approach to install perf? 2017-02-21 23:15 ` Arnaldo Carvalho de Melo @ 2017-02-22 22:04 ` Mark Davis 2017-02-22 22:08 ` Arnaldo Carvalho de Melo 0 siblings, 1 reply; 6+ messages in thread From: Mark Davis @ 2017-02-22 22:04 UTC (permalink / raw) To: Arnaldo Carvalho de Melo; +Cc: linux-perf-users Arnaldo, thanks for pushing that. I will try this with clang 4.0. Just so I'm clear, I'm assuming your fix does not address my other issue of "make perf-targz-src-pkg" no longer existing in this version of tools/perf, right? If that's true, any suggestions on how I get the dependencies for my system, other than via manual installation? On Tue, Feb 21, 2017 at 6:15 PM, Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com> wrote: > Em Tue, Feb 21, 2017 at 03:42:39PM -0500, Mark Davis escreveu: >> Hi all. I used to use >> >> make perf-targz-src-pkg >> >> to install perf from the linux/tools/perf source. I'm now trying to >> upgrade my perf installation from source again and I'm not seeing this >> make target. I'm having a bit of trouble with dependencies. Here's >> what I get when I try to build. (Note: my source is from github >> (https://github.com/torvalds/linux) at 772c8f6 (from a couple hours > > So, please pull again from that repo, I made changes to make tools/ > build with clang 4.0, should be working and have the warnings addressed > below fixed. > >> ago). Is there a new / recommended approach to installing perf that is >> similar to the above approach? I don't have root on this machine and >> need to install either from source or a relatively recent package that >> I can install to an arbitrary directory. I'm using clang 3.8.0 as my >> compiler (note: I can change this or upgrade this if necessary). In >> particular I'm trying to get BPF in perf-record, which seems to be >> disabled based on the warnings that print out. >> >> I'm also getting this other compiler error: >> >> warning: optimization level '-O6' is not supported; using '-O3' instead >> >> CC pmu-events/pmu-events.o >> >> error: unknown warning option '-Wstrict-aliasing=3'; did you mean >> '-Wstring-plus-int'? >> >> [-Werror,-Wunknown-warning-option] >> >> > > - Arnaldo ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: make perf-targz-src-pkg or better approach to install perf? 2017-02-22 22:04 ` Mark Davis @ 2017-02-22 22:08 ` Arnaldo Carvalho de Melo 2017-02-22 22:32 ` Mark Davis 0 siblings, 1 reply; 6+ messages in thread From: Arnaldo Carvalho de Melo @ 2017-02-22 22:08 UTC (permalink / raw) To: Mark Davis; +Cc: Arnaldo Carvalho de Melo, linux-perf-users Em Wed, Feb 22, 2017 at 05:04:19PM -0500, Mark Davis escreveu: > Arnaldo, thanks for pushing that. I will try this with clang 4.0. Just > so I'm clear, I'm assuming your fix does not address my other issue of > "make perf-targz-src-pkg" no longer existing in this version of > tools/perf, right? If that's true, any suggestions on how I get the > dependencies for my system, other than via manual installation? uh? [acme@jouet linux]$ make help | grep perf perf-tar-src-pkg - Build perf-4.10.0.tar source tarball perf-targz-src-pkg - Build perf-4.10.0.tar.gz source tarball perf-tarbz2-src-pkg - Build perf-4.10.0.tar.bz2 source tarball perf-tarxz-src-pkg - Build perf-4.10.0.tar.xz source tarball [acme@jouet linux]$ [acme@jouet linux]$ ls -la *.tar.* ls: cannot access '*.tar.*': No such file or directory [acme@jouet linux]$ [acme@jouet linux]$ make perf-targz-src-pkg TAR PERF_VERSION = 4.10.g4c7c9c [acme@jouet linux]$ ls -la *.tar.* -rw-rw-r--. 1 acme acme 1620468 Feb 22 19:08 perf-4.10.0.tar.gz [acme@jouet linux]$ > On Tue, Feb 21, 2017 at 6:15 PM, Arnaldo Carvalho de Melo > <arnaldo.melo@gmail.com> wrote: > > Em Tue, Feb 21, 2017 at 03:42:39PM -0500, Mark Davis escreveu: > >> Hi all. I used to use > >> > >> make perf-targz-src-pkg > >> > >> to install perf from the linux/tools/perf source. I'm now trying to > >> upgrade my perf installation from source again and I'm not seeing this > >> make target. I'm having a bit of trouble with dependencies. Here's > >> what I get when I try to build. (Note: my source is from github > >> (https://github.com/torvalds/linux) at 772c8f6 (from a couple hours > > > > So, please pull again from that repo, I made changes to make tools/ > > build with clang 4.0, should be working and have the warnings addressed > > below fixed. > > > >> ago). Is there a new / recommended approach to installing perf that is > >> similar to the above approach? I don't have root on this machine and > >> need to install either from source or a relatively recent package that > >> I can install to an arbitrary directory. I'm using clang 3.8.0 as my > >> compiler (note: I can change this or upgrade this if necessary). In > >> particular I'm trying to get BPF in perf-record, which seems to be > >> disabled based on the warnings that print out. > >> > >> I'm also getting this other compiler error: > >> > >> warning: optimization level '-O6' is not supported; using '-O3' instead > >> > >> CC pmu-events/pmu-events.o > >> > >> error: unknown warning option '-Wstrict-aliasing=3'; did you mean > >> '-Wstring-plus-int'? > >> > >> [-Werror,-Wunknown-warning-option] > >> > >> > > > > - Arnaldo ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: make perf-targz-src-pkg or better approach to install perf? 2017-02-22 22:08 ` Arnaldo Carvalho de Melo @ 2017-02-22 22:32 ` Mark Davis 2017-02-22 22:33 ` Arnaldo Carvalho de Melo 0 siblings, 1 reply; 6+ messages in thread From: Mark Davis @ 2017-02-22 22:32 UTC (permalink / raw) To: Arnaldo Carvalho de Melo; +Cc: linux-perf-users Ah, my mistake. I was looking for that target from the tools/perf dir, not the top-level dir. It works as I expected. Thank you! On Wed, Feb 22, 2017 at 5:08 PM, Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com> wrote: > Em Wed, Feb 22, 2017 at 05:04:19PM -0500, Mark Davis escreveu: >> Arnaldo, thanks for pushing that. I will try this with clang 4.0. Just >> so I'm clear, I'm assuming your fix does not address my other issue of >> "make perf-targz-src-pkg" no longer existing in this version of >> tools/perf, right? If that's true, any suggestions on how I get the >> dependencies for my system, other than via manual installation? > > uh? > > [acme@jouet linux]$ make help | grep perf > perf-tar-src-pkg - Build perf-4.10.0.tar source tarball > perf-targz-src-pkg - Build perf-4.10.0.tar.gz source tarball > perf-tarbz2-src-pkg - Build perf-4.10.0.tar.bz2 source tarball > perf-tarxz-src-pkg - Build perf-4.10.0.tar.xz source tarball > [acme@jouet linux]$ > [acme@jouet linux]$ ls -la *.tar.* > ls: cannot access '*.tar.*': No such file or directory > [acme@jouet linux]$ > [acme@jouet linux]$ make perf-targz-src-pkg > TAR > PERF_VERSION = 4.10.g4c7c9c > [acme@jouet linux]$ ls -la *.tar.* > -rw-rw-r--. 1 acme acme 1620468 Feb 22 19:08 perf-4.10.0.tar.gz > [acme@jouet linux]$ > >> On Tue, Feb 21, 2017 at 6:15 PM, Arnaldo Carvalho de Melo >> <arnaldo.melo@gmail.com> wrote: >> > Em Tue, Feb 21, 2017 at 03:42:39PM -0500, Mark Davis escreveu: >> >> Hi all. I used to use >> >> >> >> make perf-targz-src-pkg >> >> >> >> to install perf from the linux/tools/perf source. I'm now trying to >> >> upgrade my perf installation from source again and I'm not seeing this >> >> make target. I'm having a bit of trouble with dependencies. Here's >> >> what I get when I try to build. (Note: my source is from github >> >> (https://github.com/torvalds/linux) at 772c8f6 (from a couple hours >> > >> > So, please pull again from that repo, I made changes to make tools/ >> > build with clang 4.0, should be working and have the warnings addressed >> > below fixed. >> > >> >> ago). Is there a new / recommended approach to installing perf that is >> >> similar to the above approach? I don't have root on this machine and >> >> need to install either from source or a relatively recent package that >> >> I can install to an arbitrary directory. I'm using clang 3.8.0 as my >> >> compiler (note: I can change this or upgrade this if necessary). In >> >> particular I'm trying to get BPF in perf-record, which seems to be >> >> disabled based on the warnings that print out. >> >> >> >> I'm also getting this other compiler error: >> >> >> >> warning: optimization level '-O6' is not supported; using '-O3' instead >> >> >> >> CC pmu-events/pmu-events.o >> >> >> >> error: unknown warning option '-Wstrict-aliasing=3'; did you mean >> >> '-Wstring-plus-int'? >> >> >> >> [-Werror,-Wunknown-warning-option] >> >> >> >> >> > >> > - Arnaldo ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: make perf-targz-src-pkg or better approach to install perf? 2017-02-22 22:32 ` Mark Davis @ 2017-02-22 22:33 ` Arnaldo Carvalho de Melo 0 siblings, 0 replies; 6+ messages in thread From: Arnaldo Carvalho de Melo @ 2017-02-22 22:33 UTC (permalink / raw) To: Mark Davis; +Cc: Arnaldo Carvalho de Melo, linux-perf-users Em Wed, Feb 22, 2017 at 05:32:31PM -0500, Mark Davis escreveu: > Ah, my mistake. I was looking for that target from the tools/perf dir, > not the top-level dir. It works as I expected. No problem whatsoever, I think we should have some redirector to the top level target, or at least a warning :-) - Arnaldo > Thank you! > > On Wed, Feb 22, 2017 at 5:08 PM, Arnaldo Carvalho de Melo > <arnaldo.melo@gmail.com> wrote: > > Em Wed, Feb 22, 2017 at 05:04:19PM -0500, Mark Davis escreveu: > >> Arnaldo, thanks for pushing that. I will try this with clang 4.0. Just > >> so I'm clear, I'm assuming your fix does not address my other issue of > >> "make perf-targz-src-pkg" no longer existing in this version of > >> tools/perf, right? If that's true, any suggestions on how I get the > >> dependencies for my system, other than via manual installation? > > > > uh? > > > > [acme@jouet linux]$ make help | grep perf > > perf-tar-src-pkg - Build perf-4.10.0.tar source tarball > > perf-targz-src-pkg - Build perf-4.10.0.tar.gz source tarball > > perf-tarbz2-src-pkg - Build perf-4.10.0.tar.bz2 source tarball > > perf-tarxz-src-pkg - Build perf-4.10.0.tar.xz source tarball > > [acme@jouet linux]$ > > [acme@jouet linux]$ ls -la *.tar.* > > ls: cannot access '*.tar.*': No such file or directory > > [acme@jouet linux]$ > > [acme@jouet linux]$ make perf-targz-src-pkg > > TAR > > PERF_VERSION = 4.10.g4c7c9c > > [acme@jouet linux]$ ls -la *.tar.* > > -rw-rw-r--. 1 acme acme 1620468 Feb 22 19:08 perf-4.10.0.tar.gz > > [acme@jouet linux]$ > > > >> On Tue, Feb 21, 2017 at 6:15 PM, Arnaldo Carvalho de Melo > >> <arnaldo.melo@gmail.com> wrote: > >> > Em Tue, Feb 21, 2017 at 03:42:39PM -0500, Mark Davis escreveu: > >> >> Hi all. I used to use > >> >> > >> >> make perf-targz-src-pkg > >> >> > >> >> to install perf from the linux/tools/perf source. I'm now trying to > >> >> upgrade my perf installation from source again and I'm not seeing this > >> >> make target. I'm having a bit of trouble with dependencies. Here's > >> >> what I get when I try to build. (Note: my source is from github > >> >> (https://github.com/torvalds/linux) at 772c8f6 (from a couple hours > >> > > >> > So, please pull again from that repo, I made changes to make tools/ > >> > build with clang 4.0, should be working and have the warnings addressed > >> > below fixed. > >> > > >> >> ago). Is there a new / recommended approach to installing perf that is > >> >> similar to the above approach? I don't have root on this machine and > >> >> need to install either from source or a relatively recent package that > >> >> I can install to an arbitrary directory. I'm using clang 3.8.0 as my > >> >> compiler (note: I can change this or upgrade this if necessary). In > >> >> particular I'm trying to get BPF in perf-record, which seems to be > >> >> disabled based on the warnings that print out. > >> >> > >> >> I'm also getting this other compiler error: > >> >> > >> >> warning: optimization level '-O6' is not supported; using '-O3' instead > >> >> > >> >> CC pmu-events/pmu-events.o > >> >> > >> >> error: unknown warning option '-Wstrict-aliasing=3'; did you mean > >> >> '-Wstring-plus-int'? > >> >> > >> >> [-Werror,-Wunknown-warning-option] > >> >> > >> >> > >> > > >> > - Arnaldo ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-02-22 22:34 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-02-21 20:42 make perf-targz-src-pkg or better approach to install perf? Mark Davis 2017-02-21 23:15 ` Arnaldo Carvalho de Melo 2017-02-22 22:04 ` Mark Davis 2017-02-22 22:08 ` Arnaldo Carvalho de Melo 2017-02-22 22:32 ` Mark Davis 2017-02-22 22:33 ` Arnaldo Carvalho de Melo
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).