From patchwork Tue Sep 1 05:56:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Nan X-Patchwork-Id: 52914 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 7DFAD22EB3 for ; Tue, 1 Sep 2015 05:57:45 +0000 (UTC) Received: by labth1 with SMTP id th1sf48317060lab.2 for ; Mon, 31 Aug 2015 22:57:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:content-type:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=pj5qDpB3xNa/34Ibd2+OlDG7zIH4vhbthgC2/rK/sLY=; b=D3rmwg4veKkxsVRKh1zSajHnuDXUr/ddkNuEousJJFrHJmEShAx29g24EK8obSNsAJ d3nUeUu/xtd6+lhF9JA6H1cB7jkFTJZvaWF1noOx3NzawpYYG41CKXb/e8IYXaVoj+xa 1u7saaCt/x2dLpB+c8kpFioTzeWCz5LMZ95EeCyaHaQOqn5bsswzosn7LEO14b7QxAY1 gBwyLEJFrcnTkozRzEtTVXfHBqkURi8PH+9t2k09n/eaNzICywK049QbPMMeO0V10+LW 0eakBv71Zpb69QvuW8RMGe7G3GTpuuzgjfghGZsqmhBCeTV2L/w9WlCrJDJEUT59wC/9 uIug== X-Gm-Message-State: ALoCoQlUpwHJuPAQmVtl8BRZ+RrNrIc1UT7//zr9/c8DLL4klNxztcbTX7bH7agV2+ZxU9Tm7YR0 X-Received: by 10.112.149.39 with SMTP id tx7mr7137403lbb.11.1441087064362; Mon, 31 Aug 2015 22:57:44 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.73 with SMTP id b9ls538739laf.43.gmail; Mon, 31 Aug 2015 22:57:44 -0700 (PDT) X-Received: by 10.152.36.103 with SMTP id p7mr4332034laj.90.1441087064071; Mon, 31 Aug 2015 22:57:44 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id mr8si15451958lbb.104.2015.08.31.22.57.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Aug 2015 22:57:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbbsx3 with SMTP id sx3so72621894lbb.0 for ; Mon, 31 Aug 2015 22:57:44 -0700 (PDT) X-Received: by 10.152.9.200 with SMTP id c8mr5888231lab.76.1441087063953; Mon, 31 Aug 2015 22:57:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.164.42 with SMTP id yn10csp296729lbb; Mon, 31 Aug 2015 22:57:42 -0700 (PDT) X-Received: by 10.66.97.102 with SMTP id dz6mr44927886pab.29.1441087062545; Mon, 31 Aug 2015 22:57:42 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si27970427pas.176.2015.08.31.22.57.14; Mon, 31 Aug 2015 22:57:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753670AbbIAF5M (ORCPT + 28 others); Tue, 1 Sep 2015 01:57:12 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:44575 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752216AbbIAF5L (ORCPT ); Tue, 1 Sep 2015 01:57:11 -0400 Received: from 172.24.1.51 (EHLO szxeml431-hub.china.huawei.com) ([172.24.1.51]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CUD31240; Tue, 01 Sep 2015 13:57:03 +0800 (CST) Received: from linux-4hy3.site (10.107.193.248) by szxeml431-hub.china.huawei.com (10.82.67.208) with Microsoft SMTP Server id 14.3.235.1; Tue, 1 Sep 2015 13:56:52 +0800 From: Wang Nan To: CC: , , , Wang Nan , Arnaldo Carvalho de Melo , Adrian Hunter Subject: [PATCH] perf tools: Fix random building error Date: Tue, 1 Sep 2015 05:56:45 +0000 Message-ID: <1441087005-107540-1-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.3.4 MIME-Version: 1.0 X-Originating-IP: [10.107.193.248] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: wangnan0@huawei.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , I hit following building error randomly: ... /bin/sh: /path/to/kernel/buildperf/util/intel-pt-decoder/inat-tables.c: No such file or directory ... LINK /path/to/kernel/buildperf/plugin_mac80211.so LINK /path/to/kernel/buildperf/plugin_kmem.so LINK /path/to/kernel/buildperf/plugin_xen.so LINK /path/to/kernel/buildperf/plugin_hrtimer.so In file included from util/intel-pt-decoder/intel-pt-insn-decoder.c:25:0: util/intel-pt-decoder/inat.c:24:25: fatal error: inat-tables.c: No such file or directory #include "inat-tables.c" ^ compilation terminated. make[4]: *** [/path/to/kernel/buildperf/util/intel-pt-decoder/intel-pt-insn-decoder.o] Error 1 make[4]: *** Waiting for unfinished jobs.... LINK /path/to/kernel/buildperf/plugin_function.so This is caused by tools/perf/util/intel-pt-decoder/Build that, it tries to generate $(OUTPUT)util/intel-pt-decoder/inat-tables.c atomatically but forget to ensure the existance of $(OUTPUT)util/intel-pt-decoder directory. This patch fixes it by adding $(call rule_mkdir) like other similar rules. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Adrian Hunter Acked-by: Jiri Olsa --- tools/perf/util/intel-pt-decoder/Build | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/intel-pt-decoder/Build b/tools/perf/util/intel-pt-decoder/Build index 240730d..2386322 100644 --- a/tools/perf/util/intel-pt-decoder/Build +++ b/tools/perf/util/intel-pt-decoder/Build @@ -4,6 +4,7 @@ inat_tables_script = util/intel-pt-decoder/gen-insn-attr-x86.awk inat_tables_maps = util/intel-pt-decoder/x86-opcode-map.txt $(OUTPUT)util/intel-pt-decoder/inat-tables.c: $(inat_tables_script) $(inat_tables_maps) + $(call rule_mkdir) @$(call echo-cmd,gen)$(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ || rm -f $@ $(OUTPUT)util/intel-pt-decoder/intel-pt-insn-decoder.o: util/intel-pt-decoder/inat.c $(OUTPUT)util/intel-pt-decoder/inat-tables.c