Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755184Ab2K0OlU (ORCPT ); Tue, 27 Nov 2012 09:41:20 -0500 Received: from mail-vc0-f174.google.com ([209.85.220.174]:62367 "EHLO mail-vc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753233Ab2K0OlT (ORCPT ); Tue, 27 Nov 2012 09:41:19 -0500 MIME-Version: 1.0 In-Reply-To: <1354018591-26656-1-git-send-email-mark.rutland@arm.com> References: <1354018591-26656-1-git-send-email-mark.rutland@arm.com> Date: Tue, 27 Nov 2012 09:41:18 -0500 Message-ID: Subject: Re: [PATCH] perf tools: fix build for various architectures From: Josh Boyer To: Mark Rutland Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , David Howells , Deng-Cheng Zhu , Ingo Molnar , Kyle McMartin , Martin Schwidefsky , Paul Mackerras , Peter Zijlstra , Tony Luck , Will Deacon Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2155 Lines: 52 On Tue, Nov 27, 2012 at 7:16 AM, Mark Rutland wrote: > The UAPI changes broke the perf tool, and as of 3.7-rc7, it > still won't build for arm: > > In file included from util/../perf.h:81:0, > from util/cache.h:7, > from perf.c:12: > util/../../../arch/arm/include/asm/unistd.h:16:29: fatal error: uapi/asm/unistd.h: No such file or directory > compilation terminated. > make: *** [perf.o] Error 1 > > It seems the perf tool build infrastructure can't map paths, > and several architectures (arm, arm64, ia64, mips, parisc, powerpc, > s390) include from their . > > This patch copies 77626081: "perf tools: Fix build on sparc." in simply > changing the path to use arch/arm/include/uapi/asm/unistd.h directly for > all of these cases. > > I've tested this on arm, but I don't have the necessary toolchains to > check the other cases. > > Signed-off-by: Mark Rutland > Cc: Arnaldo Carvalho de Melo > Cc: David Howells > Cc: Deng-Cheng Zhu > Cc: Ingo Molnar > Cc: Kyle McMartin > Cc: Martin Schwidefsky > Cc: Paul Mackerras > Cc: Peter Zijlstra > Cc: Tony Luck > Cc: Will Deacon > --- > tools/perf/perf.h | 14 +++++++------- > 1 files changed, 7 insertions(+), 7 deletions(-) This is correct, but it shouldn't be needed. Arnaldo has a pull request out to Ingo that should fix the build issues on all architectures in a more generic way. See: http://article.gmane.org/gmane.linux.kernel.cross-arch/15974 I'm really hoping that gets into Linus' tree ASAP or 3.7 will ship with a broken perf on non-x86. josh -- 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/