From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756431Ab3H3PYt (ORCPT ); Fri, 30 Aug 2013 11:24:49 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:47455 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755812Ab3H3PYr (ORCPT ); Fri, 30 Aug 2013 11:24:47 -0400 MIME-Version: 1.0 Reply-To: sedat.dilek@gmail.com In-Reply-To: References: Date: Fri, 30 Aug 2013 17:24:46 +0200 Message-ID: Subject: Re: [3.11-rc7] Building perf-only the "official" way seems to be BROKEN? From: Sedat Dilek To: Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo Cc: LKML , Linus Torvalds Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 30, 2013 at 4:54 PM, Sedat Dilek wrote: > On Fri, Aug 30, 2013 at 4:28 PM, Sedat Dilek wrote: >> [...] >> >>> [ BUILD PERF-ONLY ] >>> >>> So, I have finished a Linux-kernel build and wanted to build perf >>> (from tools-dir) ONLY! >>> >>> I followed the advices (I am a "good" guy) seen for example in the >>> "tools/Makefile" file. >>> >>> [ tools/Makefile ] >>> ... >>> @echo 'You can do:' >>> @echo ' $$ make -C tools/ _install' <--- NOTE THIS ONE! >>> @echo '' >>> @echo ' from the kernel command line to build and install one of' >>> @echo ' the tools above' >>> @echo '' >>> @echo ' $$ make tools/install' >>> @echo '' >>> @echo ' installs all tools.' >>> ... >>> >>> OK, so I did this for a perf-only build... >>> >>> >>> $ LANG=C LC_ALL=C make -C tools/ perf_install 2>&1 | tee ../build-perf.txt >>> >>> ...this breaks like this... >>> >>> ... >>> make[2]: Entering directory >>> `/home/wearefam/src/linux-kernel/linux/tools/lib/traceevent' >>> make[2]: Leaving directory >>> `/home/wearefam/src/linux-kernel/linux/tools/lib/traceevent' >>> LINK perf >>> gcc: error: /home/wearefam/src/linux-kernel/linux/tools/lib/lk/liblk.a: >>> No such file or directory >>> make[1]: *** [perf] Error 1 >>> make[1]: Leaving directory `/home/wearefam/src/linux-kernel/linux/tools/perf' >>> make: *** [perf_install] Error 2 >>> >> >> [ From #linux-rt (OFTC) ] >> >> [16:17] dileks_webchat, there are many, many ways to build the tools >> [16:17] the one I use is: >> [16:17] make O=/tmp/build/perf -C tools/perf install >> [16:19] acme: make -C tools/perf install works as >> expected. interesting :-) >> > > Attached patch seems to fix the issue when building perf this way... > > $ make -C tools/ perf_install > I have sent a patch ("[PATCH] tools: perf: Fix liblk not built when using perf_install target") in [1]. - Sedat - [1] http://marc.info/?l=linux-kernel&m=137787594331047&w=2