Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp249721imm; Tue, 14 Aug 2018 18:23:59 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwoDaQOMe5V9coMdmPK91fGDJWyAMQl95cUuRoehvXKDgtVRB5Vh3j6VnCocosE9l/QeOOC X-Received: by 2002:a63:8dca:: with SMTP id z193-v6mr23406046pgd.228.1534296239042; Tue, 14 Aug 2018 18:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534296239; cv=none; d=google.com; s=arc-20160816; b=nTCM+5Sxw/75/C6zsoDxN+sV/oZ+lC4onAK5JQCbv2xHZhzIodoGJetK+hQfBHuwod EsTlcnbP3AyOvwSTe8gACgIehNiA0cgZpdvKEToD3ngJLZ9HdMRULCt7v7Bj7tpChDmr +bXYWq2Paz020hfbnb0hPjNalCOyWG7gYnlZPXgLXnQdjq9lsQ9FWU8rlMRy06l+wGwv Rcuh3/A5MfXhNVgYNJ+Kzz4ehwvgkJ5VYAegf/sOnFH1J4nZ9sqsqMUCzQ0kV6WItL7y sQe7rEhfr1egXMhSP4pZj/lu8aDS/HeUtCDhzJVIHCf0tNVO/CkYZDlJtCSf6fxNMCHp /F/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=hvdKw9HtQf0As5kROyJJKcmQjUHkZ0oa/8pNGXV8O34=; b=vpSS96JkVuUR+1xjBEk6HKFMM9JfW6P12UEd07P92j8WbMfC/uclqU+Hc6b9WSd9Mi SwGdY+ViHWxqv1/2271HkYdn2tlnye7avcbU2biI6lRp0vyRNEcazp2AHn5/Hw79P37j UFFKnY0hH5uIuxzuqfq4xiE/Q8lEqqe3oCJVnfx/P4M9pAs3sZZJBRWnJqaB86lCy4VO 5Gh/hX0BYletYfKOX691+WFt6GHzc3s5OjpRvjRO2CTPKGr6UQFA+OhX9sSLC03Vq97a L6OjTdASGLRtznfhQsHew5rA9BLiMLcXhM39th9GZegsdymyi6COfOASXcW/KQv8ewHm qf2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gBSD2aqC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6-v6si21763497pgj.211.2018.08.14.18.23.44; Tue, 14 Aug 2018 18:23:59 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gBSD2aqC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726213AbeHOEMP (ORCPT + 99 others); Wed, 15 Aug 2018 00:12:15 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:45241 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbeHOEMN (ORCPT ); Wed, 15 Aug 2018 00:12:13 -0400 Received: by mail-yw1-f68.google.com with SMTP id 139-v6so17706736ywg.12 for ; Tue, 14 Aug 2018 18:22:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=hvdKw9HtQf0As5kROyJJKcmQjUHkZ0oa/8pNGXV8O34=; b=gBSD2aqCltE8ckH00uhrIJkYnQb/J82ME0LGRRLPSEzQxUCX74CPpyw4+A8Iq0JKcb r0lA6sIWrsjYtZpCg/qX0Oo82PzpXx6oe5T2LD7rzb8enS7B72RhVxGYRSslm1dFh5LB A4eWyxJoB4qfIZoyekpgddoh4Kjuo682c8rV0SQO42DvxY8XqQd8QgzPzYjNhb5xwPcJ u3mmgDI8ggjVonbZhR700ny7JdKt0Cb9TlahYM73nnHAch0MyVO27DrToydGoJ3SmY1B R/bpuiydwe/OQpodX3/LmiDRgi6BH6Q3OTmEtq/9jpvo62BlUF042lsz43Sj7Z7JTG3a TxoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=hvdKw9HtQf0As5kROyJJKcmQjUHkZ0oa/8pNGXV8O34=; b=UQ/COuM/BZhxldUTaSqBO2Ox+iCA/ahYEUlwDrWRNiFdmee7YoTc5Nhv4kZ5p1gInH 08L+gi5iEduKVHT1k94D7YXztvb2NcgC8n+618uQ9Ncgwq9DqRmxfaybiULfxFwhRpCK owK8J25Ps0RB6IJE8f2MNh41WUVI2/ncVq818HzyPXhAFgr9XMZA+4qtmEDq4bl8/mVf 4VSW3ECrYAOhmP9iXRX9jyU8ODlo9481FOG2hhJ4Q0xv9X3RvDrBNXbVQPHWY6rTNrMK ukYgC7JlwxL/mKpV29pobrwFjwNIbUh+N0W+JsYKR6xqAAHPj46WsaJ0b9Yuw8kGOPbo aULg== X-Gm-Message-State: AOUpUlEbUtHKgMajcWy0dtm/yR6C6X2tg9ahm8HwP3yBxfqTffOWXm17 X9JbOM0usW2Ub3ztTh7odzDcFgFHXt7FL8ekrRQoU1B1 X-Received: by 2002:a5b:607:: with SMTP id d7-v6mr14039070ybq.281.1534296142443; Tue, 14 Aug 2018 18:22:22 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:3995:0:0:0:0:0 with HTTP; Tue, 14 Aug 2018 18:22:21 -0700 (PDT) In-Reply-To: <20180815012054.GA70201@joelaf.mtv.corp.google.com> References: <20180815012054.GA70201@joelaf.mtv.corp.google.com> From: Joel Fernandes Date: Tue, 14 Aug 2018 18:22:21 -0700 Message-ID: Subject: Re: samples don't build on v4.18 To: LKML , wangnan0@huawei.com, "open list:BPF (Safe dynamic programs and tools)" , Alexei Starovoitov , acme@kernel.org, Chenbo Feng , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Forgot to add the patch author, doing so now. thanks On Tue, Aug 14, 2018 at 6:20 PM, Joel Fernandes wrote: > > Hi, > When building BPF samples on v4.18, I get the following errors: > > $ cd samples/bpf/ > $ make > > Auto-detecting system features: > ... libelf: [ OFF ] > ... bpf: [ OFF ] > > No libelf found > Makefile:213: recipe for target 'elfdep' failed > ----------- > > I bissected it down to commit 5f9380572b4bb24f60cd492b1 > > Author: Jakub Kicinski > Date: Thu May 10 10:24:39 2018 -0700 > > samples: bpf: compile and link against full libbpf > --------- > > Checking out a kernel before this commit makes the samples build. Also I do > have libelf on my system. > > Any thoughts on this issue? > > thank you, > > - Joel