From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnaldo Carvalho de Melo Subject: Re: make perf-targz-src-pkg or better approach to install perf? Date: Tue, 21 Feb 2017 20:15:07 -0300 Message-ID: <20170221231507.GI5052@kernel.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail.kernel.org ([198.145.29.136]:36770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754AbdBUXPP (ORCPT ); Tue, 21 Feb 2017 18:15:15 -0500 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 509E320256 for ; Tue, 21 Feb 2017 23:15:13 +0000 (UTC) Received: from jouet.infradead.org (unknown [179.97.44.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9A96720103 for ; Tue, 21 Feb 2017 23:15:11 +0000 (UTC) Content-Disposition: inline In-Reply-To: Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Mark Davis Cc: linux-perf-users@vger.kernel.org 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