Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758085AbbKSIsS (ORCPT ); Thu, 19 Nov 2015 03:48:18 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:25741 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756816AbbKSIsQ (ORCPT ); Thu, 19 Nov 2015 03:48:16 -0500 Message-ID: <564D8C71.7050605@huawei.com> Date: Thu, 19 Nov 2015 16:46:41 +0800 From: "Wangnan (F)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Arnaldo Carvalho de Melo , Jiri Olsa CC: Linux Kernel Mailing List Subject: Re: perf BPF/elfdep intermitent build problems References: <20151118224458.GD22729@kernel.org> <564D24E9.8040208@huawei.com> <564D323A.1050200@huawei.com> <564D33F3.9050004@huawei.com> In-Reply-To: <564D33F3.9050004@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.111.66.109] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.564D8C93.0095,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: d22fa7bb63af4ccf2c7fc3c1c539a960 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1497 Lines: 69 On 2015/11/19 10:29, Wangnan (F) wrote: > > > On 2015/11/19 10:21, Wangnan (F) wrote: >> [SNIP] >> Right. It should be >> >> $ cd tools/lib/bpf >> $ make clean >> CLEAN libbpf >> CLEAN core-gen >> $ >> >> >> After cleaning can you trigger this problem again? >> > > Tiggered part of your problem: > > $ make > > Auto-detecting system features: > ... libelf: [ on ] > ... bpf: [ on ] > > CC libbpf.o > CC bpf.o > LD libbpf-in.o > LINK libbpf.a > LINK libbpf.so > $ make clean > CLEAN libbpf > CLEAN core-gen > $ make clean > > Auto-detecting system features: > ... libelf: [ on ] > ... bpf: [ on ] > > CLEAN libbpf > CLEAN core-gen > > Feature check would be triggered the second time we make clean. > > Will look into it. > I understand this part of the problem. There's no way for tools/build/Makefile.feature knowing whether we are doing 'make clean' or 'make'. Therefore, even for 'make clean' those feature tests are mandatory to take action. I posted a patch for it. Please see: http://lkml.kernel.org/g/1447922706-99905-1-git-send-email-wangnan0@huawei.com Thank you. -- 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/