From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752904AbdDJIRV (ORCPT ); Mon, 10 Apr 2017 04:17:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60966 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751801AbdDJIRT (ORCPT ); Mon, 10 Apr 2017 04:17:19 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 34E2261B93 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jolsa@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 34E2261B93 Date: Mon, 10 Apr 2017 10:17:15 +0200 From: Jiri Olsa To: jiada_wang@mentor.com Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, ak@linux.intel.com, sukadev@linux.vnet.ibm.com, wangnan0@huawei.com, ravi.bangoria@linux.vnet.ibm.com, mhiramat@kernel.org, jstancek@redhat.com, rui.teng@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, erosca@de.adit-jv.com Subject: Re: [PATCH v4 1/1] perf tools: fix perf build with ARCH=x86_64 Message-ID: <20170410081715.GC25354@krava> References: <1491793357-14977-1-git-send-email-jiada_wang@mentor.com> <1491793357-14977-2-git-send-email-jiada_wang@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1491793357-14977-2-git-send-email-jiada_wang@mentor.com> User-Agent: Mutt/1.8.0 (2017-02-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 10 Apr 2017 08:17:19 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 09, 2017 at 08:02:37PM -0700, jiada_wang@mentor.com wrote: > From: Jiada Wang > > with commit: 0a943cb10ce78 (tools build: Add HOSTARCH Makefile variable) > when build for ARCH=x86_64, ARCH=x86_64 is passed to perf instead of > ARCH=x86, so perf package searchs header files from > tools/arch/x86_64/include, which doesn't exist. > > the following build failure is seen when build with ARCH=x86_64 > > In file included from util/event.c:2:0: > tools/include/uapi/linux/mman.h:4:27: fatal error: uapi/asm/mman.h: No such file or directory > compilation terminated. > > fix this issue by use SRCARCH instead of ARCH in perf. > > Signed-off-by: Jiada Wang Acked-by: Jiri Olsa thanks jirka