Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6288033rwr; Tue, 9 May 2023 13:00:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6euCmUgHhPqcfb9zw4X4rbLhSwly0MnkDBF29OR4ZzAqzeeNHMA4Wv3RKLa1SYVgNdN1hH X-Received: by 2002:a17:902:dac7:b0:1ac:874d:f55e with SMTP id q7-20020a170902dac700b001ac874df55emr7313980plx.22.1683662404661; Tue, 09 May 2023 13:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683662404; cv=none; d=google.com; s=arc-20160816; b=hpM3brNjkZA3wBOId2tqXyW8lUEFwF3c/Nb4jcMjwIN9B/WWTrz+UiGsZYpq2YA/ia 7WlgjxslMzijgySoqC0qouNTeadckFMWtneohHIjOdIIbtFjZjCzJgdfezwf3rYkwQJS H3K25cvzJoOtC6HcR5ZY9nMk/PCQfgR5Gdz9x+WkP2nMSAJXLxS+5PINTxRaM893Gwcb 4CZKlhHRCLkO1Bdost1psK0rvO1+Rgiw78++w1tLz9BHBLMhi1S+c+QcgNQaszSad7r6 kOQkgLxg/06yhysR+efzfFADn+s1rg9+9xOH4Ik4pCCwu4ckXxsLwshV50AdVGSu1wXJ 1czQ== 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=Wo05zCp3Cas/Mb1XN/Aou8phsmoyuCDlOwnToS41Pus=; b=TscvDApyIeZCrpJoek0nUIuryff8hJGhdlxV71LFzFeHo1OV0n0DHWc6N8HQUH7F/m xWLc7LEu6Yq1il7GeD6tCAjxt9u3RwR4qZyrAsxd7gGjONTvKfp99Mxp264o/VcZ6Svi pMiSKH+MWgt7Wgz4mdL+6RqZLvnXNHJuGu41dmpWHuIoRmQQdyJ1vHAv11Oyb7mqQMKT thom14NSBdOBhiSK0eSgyTWezB2mDTJ+StT3e54hRuQH0KUJJoEktqsOmFqgNX8yS7CC cs0njZKfLGv+sgDnpB5yEWq6jCG2z7zps+AnjricR+hr11vsWEwdm3CSaC3IQLA1DVi1 HCyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w20-20020a170902a71400b001ab2a0e3163si2096447plq.598.2023.05.09.12.59.52; Tue, 09 May 2023 13:00:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230175AbjEITwy convert rfc822-to-8bit (ORCPT + 99 others); Tue, 9 May 2023 15:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230166AbjEITwx (ORCPT ); Tue, 9 May 2023 15:52:53 -0400 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DAE63AB2; Tue, 9 May 2023 12:52:46 -0700 (PDT) Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-305f0491e62so5991930f8f.3; Tue, 09 May 2023 12:52:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683661964; x=1686253964; 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=kY+ka+8lTaOeqjwogYEm47PhcDcHltNDkETFarkaxcE=; b=DVmjJS4WUf1AQOJZp1ygX+7mxiELcqyVABxVhI4GkACgTw33FBu+stn8xiTrFqDocZ JJ+OBxDY6d/QrEIaI6H90K/MTC1G8iVGy5HT6w1mQFylmPxOTTR7rNobUlWCVEKFSpOf J3Hhp9fIbRD7a5/iVDLfb+3XS1OjsEJc06ePWqy5dmVB2NYVHo3rUIGKYnLimSeiOF3U x/cLG0BZScgaw8QAv903uOYRlOMViqf9XvhwZhxEVqB+RDQRQ6xAfHW9QHAxg9pFQu1f nvT44ZD10zgl7hTKejH3Pm+3Z9zour6YX331blRkMumRcfJ/qah/bQoPxfsZqz1MdfWw Igjg== X-Gm-Message-State: AC+VfDxK+YHNR0ulO1B1k1/T+bp2IT/JERyrOUxuO9E8kw1VFbHOGazf BuzZcKbvXnRh3HlOppw4tnVu1VMb11nsWzCAn5w= X-Received: by 2002:a5d:4309:0:b0:306:492c:cdd8 with SMTP id h9-20020a5d4309000000b00306492ccdd8mr9196606wrq.15.1683661964276; Tue, 09 May 2023 12:52:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Namhyung Kim Date: Tue, 9 May 2023 12:52:32 -0700 Message-ID: Subject: Re: [PATCH 1/1] perf build: Gracefully fail the build if BUILD_BPF_SKEL=1 is specified and clang isn't available To: arnaldo.melo@gmail.com Cc: Adrian Hunter , Andrii Nakryiko , Ian Rogers , Ingo Molnar , Jiri Olsa , Song Liu , Yang Jihong , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaldo, On Tue, May 9, 2023 at 11:54 AM wrote: > > Namhyung, > > The one you acked disabled the build and emitted a warning, but > then that was when we were trying to have BUILD_BPF_SKEL=1 as default, > this one is for the current situation, where we need to explicitely ask > for those features by explicitely adding BUILD_BPF_SKEL=1 to the make > command line, I think I can keep your Acked-by, right? Sure thing! Thanks, Namhyung > --- > > Build BPF skels require having a compiler able to generate BPF bytecode, > and so far this is only possible with clang, so check for its > availability and fail the build when the user explicitely ask for BPF > skels to be built. > > Acked-by: Namhyung Kim > Cc: Adrian Hunter > Cc: Andrii Nakryiko , > Cc: Ian Rogers > Cc: Ingo Molnar > Cc: Jiri Olsa > Cc: Song Liu > Cc: Yang Jihong , > Signed-off-by: Arnaldo Carvalho de Melo > --- > tools/perf/Makefile.config | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index 4884520f954f4b2a..70268442f7eeca50 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefile.config > @@ -216,6 +216,12 @@ ifeq ($(call get-executable,$(BISON)),) > dummy := $(error Error: $(BISON) is missing on this system, please install it) > endif > > +ifeq ($(BUILD_BPF_SKEL),1) > + ifeq ($(call get-executable,$(CLANG)),) > + dummy := $(error $(CLANG) is missing on this system, please install it to be able to build with BUILD_BPF_SKEL=1) > + endif > +endif > + > ifneq ($(OUTPUT),) > ifeq ($(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\).\([0-9]\+\)/\1\2\3/g') \>\= 371), 1) > BISON_FILE_PREFIX_MAP := --file-prefix-map=$(OUTPUT)= > -- > 2.39.2 >