From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Kicinski Subject: Re: [PATCH bpf-next v2 0/5] samples: bpf: fix build after move to full libbpf Date: Tue, 15 May 2018 10:46:48 -0700 Message-ID: <20180515104648.046773eb@cakuba> References: <20180515053506.4345-1-jakub.kicinski@netronome.com> <20180515055751.yhr7wklhh2lshnzd@ast-mbp> <20180515081009.4cd33c8e@redhat.com> <20180515111643.1507fead@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Alexei Starovoitov , daniel@iogearbox.net, oss-drivers@netronome.com, netdev@vger.kernel.org, =?UTF-8?B?QmrDtnJuIFQ=?= =?UTF-8?B?w7ZwZWw=?= , Y Song To: Jesper Dangaard Brouer Return-path: Received: from mail-pl0-f65.google.com ([209.85.160.65]:37084 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752042AbeEORqw (ORCPT ); Tue, 15 May 2018 13:46:52 -0400 Received: by mail-pl0-f65.google.com with SMTP id w19-v6so471561plq.4 for ; Tue, 15 May 2018 10:46:52 -0700 (PDT) In-Reply-To: <20180515111643.1507fead@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 15 May 2018 11:16:43 +0200, Jesper Dangaard Brouer wrote: > > $ cd tools/lib/bpf/ > > $ make > > > > Auto-detecting system features: > > ... libelf: [ on ] > > ... bpf: [ on ] > > > > Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h' > > Warning: Kernel ABI header at 'tools/include/uapi/linux/if_link.h' differs from latest version at 'include/uapi/linux/if_link.h' > > CC libbpf.o > > CC bpf.o > > CC nlattr.o > > CC btf.o > > LD libbpf-in.o > > LINK libbpf.a > > LINK libbpf.so > > SOLVED > > It seems that the "Auto-detecting system" needed a 'make clean'. > My problem goes away when I did the following: > > $ cd tools/ > $ make clean > > $ cd lib/bpf/ > $ make > > Auto-detecting system features: > ... libelf: [ on ] > ... bpf: [ on ] Interesting! I've seen the same thing (on Fedora, not sure distro is relevant). I tracked it down to dependency files (*.d) in tools/build/features/ containing a reference to a sigset.h header which didn't exist :S I did git clean -xdf to fix my tree. Thanks for testing and sorry about the breakage!