From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932663AbbLROPV (ORCPT ); Fri, 18 Dec 2015 09:15:21 -0500 Received: from m12-11.163.com ([220.181.12.11]:45422 "EHLO m12-11.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932331AbbLROPU convert rfc822-to-8bit (ORCPT ); Fri, 18 Dec 2015 09:15:20 -0500 Content-Type: text/plain; charset=gb2312 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH 00/10] bpf samples: Uses libbpf in tools/lib to do BPF operations From: pi3orama X-Mailer: iPhone Mail (13C75) In-Reply-To: <5674025F.9030203@bmw-carit.de> Date: Fri, 18 Dec 2015 22:13:54 +0800 Cc: "Wangnan (F)" , ast@kernel.org, agartrell@fb.com, acme@redhat.com, bblanco@plumgrid.com, daniel@iogearbox.net, davem@davemloft.net, mingo@kernel.org, jolsa@kernel.org, xiakaixu@huawei.com, holzheu@linux.vnet.ibm.com, yang.shi@linaro.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: References: <1450329794-161948-1-git-send-email-wangnan0@huawei.com> <56725868.6080902@bmw-carit.de> <56725B67.2010309@huawei.com> <56725E59.6090507@bmw-carit.de> <56727259.80002@bmw-carit.de> <567289D6.9050209@huawei.com> <5672BC99.4070605@bmw-carit.de> <567377D0.6080302@huawei.com> <5673C8A6.1080806@bmw-carit.de> <5673E813.2080400@huawei.com> <5674025F.9030203@bmw-carit.de> To: Daniel Wagner X-CM-TRANSID: C8CowECp3UWhFHRWHp5DAA--.36S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Cr1DXFW5Jr4fJry7Kw1rJFb_yoW8Zw4kp3 98Z3y09r4j9a4Fv3WfZr1DWrWrJ397GFZ8tw1rCw4UAF95CFyIyr4IyF4Iv39aq3sxuw43 C3yYgF98CF18ArDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j5yCJUUUUU= X-Originating-IP: [210.73.4.168] X-CM-SenderInfo: lslt02xdpdqiywtou0bp/xtbBaQTUQFXlceon5QAAsQ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 发自我的 iPhone > 在 2015年12月18日,下午8:55,Daniel Wagner 写道: > >> On 12/18/2015 12:03 PM, Wangnan (F) wrote: >> That's good. This is not a magic. > > That is what you say! :) > >> I guess something in your top makefile >> causes this feature check failure. I sent a patch on feature checker to >> you. >> It will appear as [1] soon. Could you please apply it and try again? > > Sure. > >> This time you will see test-*.make.output and test-*.make.makeoutput. >> test-*.make.output lists your PATH, PWD and the gcc command you use for >> feature check. test-*.make.makeoutput is the output of 'make' itself. I >> think >> from these information we can find the root cause easier. > > $ ls samples/bpf/libbpf/feature.libbpf/* > samples/bpf/libbpf/feature.libbpf/test-all.make.makeoutput > samples/bpf/libbpf/feature.libbpf/test-bpf.make.makeoutput > samples/bpf/libbpf/feature.libbpf/test-libelf-getphdrnum.make.makeoutput > samples/bpf/libbpf/feature.libbpf/test-libelf.make.makeoutput > samples/bpf/libbpf/feature.libbpf/test-libelf-mmap.make.makeoutput > > $ cat samples/bpf/libbpf/feature.libbpf/* > make[2]: *** tools/build/feature: No such file or directory. Stop. > make[2]: *** tools/build/feature: No such file or directory. Stop. > make[2]: *** tools/build/feature: No such file or directory. Stop. > make[2]: *** tools/build/feature: No such file or directory. Stop. > make[2]: *** tools/build/feature: No such file or directory. Stop. > Thank you for your information. I think the reason of the failure is the missing of srctree. I skipped a patch [1] because I think it is independent with this patchset, but I was wrong. Could you please add the srctree setting code block from [1] to your tools/lib/bpf/Makefile and try again? You don't need other part of it, or you have to apply the whole patchset because it moves a file. [1] http://lkml.kernel.org/g/1450316632-152513-1-git-send-email-wangnan0@huawei.com Thank you.