Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp172168rdb; Wed, 1 Nov 2023 23:05:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGH7kyx3NQMDxUPeewQDdJ568u6BHUSji2oCjow6mFhwJrmdEcbQlX/SPDYj5VMOzpck2mh X-Received: by 2002:a05:6358:7246:b0:168:eccb:cd60 with SMTP id i6-20020a056358724600b00168eccbcd60mr23388930rwa.27.1698905115841; Wed, 01 Nov 2023 23:05:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698905115; cv=none; d=google.com; s=arc-20160816; b=vAWg+SzyTTKdCN/SgVv7AkfwP2MUz2G+uC0eJK6ISaLSgAZPeRduQ5EZ5uezHl5SDu loJGcd52ygub5jN7vy10gaYDW9NA6yIoLMUHi8+aH6onK8xqABtKLDtOJfBN8BDr6m1C jHaxwWPTvdaGHXPt3ujyFEzn52K583fAzNeYYygf2Cmvq88rWzou+/b20jhKDFpDsEVt RcKz0Oy1nqn04cC+j/k8crIZURweoA90j26gsu9r2+z8fSGG/TfQ8dFKvAfhfDNg6viV kzfMUXheUVeDIatIShQksnhZ/1eaj9ChNcwPpYBK/PTLcDnBK1bsxMYdstGbj1MPgPJz AOUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=tJ7FqIubtptm6oa68uBoy7NCCTcShDn5G7hA3E0Nmnw=; fh=YS7LVJliQv6+bpyyI6Q2bM3VksGYSAHC8XiDmg0FE/0=; b=WGRghlKcUb6Q5APXCa6PmPRq6fEPwxjYvFALecAGwp7B0gHejaZM1aK8lFLhZUoi/9 buEWwWBodB5Nqbx/ZyqciUkNEKVzN8tbJ2lz4mdwittXBHza3aUF4e07/7HsP/RBeax6 cEvf6SwseD52DpJ/H18muQlGKF4kJS1d/ulc66thECMqrMLUAfjQlDd+YInpqRosPXd9 cRZTIyQt3AIOZOce6cZCsX7Un9RP8OTrRPDKzFAR1FFqT6ztAKnIxcrdLk+uudhN0iXi PL8D2syTQjNv7x5SnS9EJsHHpSFpeMquRXEz5gdk9RgPal2g6W/+HlGyLe8PMr1jzWzg vZ0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id az1-20020a056a02004100b005bd27920755si237204pgb.534.2023.11.01.23.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 23:05:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 485218116E71; Wed, 1 Nov 2023 23:05:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232535AbjKBGFB convert rfc822-to-8bit (ORCPT + 99 others); Thu, 2 Nov 2023 02:05:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231529AbjKBGFA (ORCPT ); Thu, 2 Nov 2023 02:05:00 -0400 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6037EA6 for ; Wed, 1 Nov 2023 23:04:58 -0700 (PDT) Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-280260db156so590281a91.2 for ; Wed, 01 Nov 2023 23:04:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698905098; x=1699509898; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jQqLDfCUNhZOdjIXAMjs/nSqV0LAthk72rfDvChjyOs=; b=f6YdYdRRoiIp/wbVa2XKqzAfyDsMWFn1xiQJPQzrMV3DEQk+f6kWH8ffieWxt2U2aQ UMcy2JS6xWH2HxRfBAzXj3fGBtrE4gSNBUbUeV80QlQaChPTNLORy0+iuXveX68GxLPm mBdw+Hb63unjSnlkLoGzzk5Dr5oiAQFtZ2mVLB8UqXh2soywHmyupRmJdCQY7zfS2ixy 8DIm64ZV8Kx29hlD2fmMKm0MeYBdVJuhgxWp0MPRdvB2N9MgTlfBKiUakf3RJcea7pfe FrIKpoALVNXt5F6R+G4xl+ndl+nqnk5bQGBkoyOSr1d+d+6hax4MxzlvTELUog/A7zxj H2Cw== X-Gm-Message-State: AOJu0Yz39yAeO3RpPIm4bDvljmf+wC1BxM2aS3blAl7guu1ilL66wNZf MiGmBxrHdcapv/tZvfm+6SDP4wL5yvLBrymqGYxSR3X+hHU= X-Received: by 2002:a17:90b:3654:b0:280:125:e52e with SMTP id nh20-20020a17090b365400b002800125e52emr15176002pjb.35.1698905097710; Wed, 01 Nov 2023 23:04:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Namhyung Kim Date: Wed, 1 Nov 2023 23:04:46 -0700 Message-ID: Subject: Re: [PATCH next 1/1] perf build: Warn about missing libelf before warning about missing libbpf To: Arnaldo Carvalho de Melo Cc: Linux Kernel Mailing List , Adrian Hunter , Ian Rogers , Jiri Olsa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 01 Nov 2023 23:05:11 -0700 (PDT) On Tue, Oct 31, 2023 at 8:34 AM Arnaldo Carvalho de Melo wrote: > > As libelf is a requirement for libbpf if it is not available, as in some > container build tests where NO_LIBELF=1 is used, then better warn about > the most basic library first. > > Ditto for libz, check its availability before libbpf too. > > Cc: Adrian Hunter > Cc: Ian Rogers > Cc: Jiri Olsa > Cc: Namhyung Kim > Signed-off-by: Arnaldo Carvalho de Melo Acked-by: Namhyung Kim Thanks, Namhyung > --- > tools/perf/Makefile.config | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index b3e6ed10f40c6f6c..8b6cffbc485834c8 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefile.config > @@ -680,15 +680,15 @@ ifndef BUILD_BPF_SKEL > endif > > ifeq ($(BUILD_BPF_SKEL),1) > - ifeq ($(filter -DHAVE_LIBBPF_SUPPORT, $(CFLAGS)),) > - dummy := $(warning Warning: Disabled BPF skeletons as libbpf is required) > - BUILD_BPF_SKEL := 0 > - else ifeq ($(filter -DHAVE_LIBELF_SUPPORT, $(CFLAGS)),) > + ifeq ($(filter -DHAVE_LIBELF_SUPPORT, $(CFLAGS)),) > dummy := $(warning Warning: Disabled BPF skeletons as libelf is required by bpftool) > BUILD_BPF_SKEL := 0 > else ifeq ($(filter -DHAVE_ZLIB_SUPPORT, $(CFLAGS)),) > dummy := $(warning Warning: Disabled BPF skeletons as zlib is required by bpftool) > BUILD_BPF_SKEL := 0 > + else ifeq ($(filter -DHAVE_LIBBPF_SUPPORT, $(CFLAGS)),) > + dummy := $(warning Warning: Disabled BPF skeletons as libbpf is required) > + BUILD_BPF_SKEL := 0 > else ifeq ($(call get-executable,$(CLANG)),) > dummy := $(warning Warning: Disabled BPF skeletons as clang ($(CLANG)) is missing) > BUILD_BPF_SKEL := 0 > -- > 2.41.0 >