Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6786532rwr; Tue, 25 Apr 2023 03:56:19 -0700 (PDT) X-Google-Smtp-Source: AKy350b4HsOmq8gAx1n1gZYPpTWFVuZK7Wnz5KJYGEeqIrAobdA1r4isfIbq9v0wYTRCOvkYNUME X-Received: by 2002:a17:903:1d1:b0:1a6:f765:de5a with SMTP id e17-20020a17090301d100b001a6f765de5amr21835076plh.13.1682420178776; Tue, 25 Apr 2023 03:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682420178; cv=none; d=google.com; s=arc-20160816; b=FCb41d+LYVi1GpwT2RaN6/bmR9Z0UfSxbsr4U3Kp402vIKQmYSeGOKHWgKSeDEfguJ 3508nQ7zkHFFKP0/sGekGx7PnCxtKfuJ2VwRoTcyQBEjpOSRuULFgziHqCWDqW2bQ41o BqBQJOHHINJWvRYV9S3g3HSP6VwfOD23f2xZAu0zfnni+8wAUgM0XP9K+L3B0lbuj/1X B+0TKhkbs9elo21Zbmazr36cXh9XUsMV+e4ZKjamNTbeFAcXZGkcBcSrLIKhPJWHFq2W I/l6u3LANn4BrGV+bALYB0qv0tvAIFK0A8fIHCD0C62GhODGjqsT5UWwP3Rs2KYZO3Ts Z7Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=EOBVRsrSZDfGXno9b+PbhsOjFrm2m8BV6J9Z/4MI1hA=; b=tZIm2aAhfEeCQjByZr+yXJBDSYGTR7BM8YAVZS4fKmq6eFCqpHS9w4aZ2cFS70GWPr a2/oPBK2FwOym45/8Kep+M0MLxthlGFyBwiUMmnSvq95NHVk43uEAo3tZZs+Ag9Lou88 O8+i8IhHZD0uiCrZiq24A1ILXblFDVhpJRyHv5GJiRHpZ97JSo/nD+/uHOloj6LBMSiR it7UuC8wA+heXVupBABH9Dfc/HRzowaqmFbYyFCt79mI83q80ivBRycqdE4HTy7t8+QU QmtEgOMg1vxut/FEhGtfoRUIBfhe6TWETURAZDQFAC/b/6q3K45qtKDsk3YkOtverP0W jINQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n12-20020a170902d2cc00b001a987371830si2428674plc.120.2023.04.25.03.56.04; Tue, 25 Apr 2023 03:56:18 -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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232615AbjDYKpZ (ORCPT + 99 others); Tue, 25 Apr 2023 06:45:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233822AbjDYKpB (ORCPT ); Tue, 25 Apr 2023 06:45:01 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C380213E; Tue, 25 Apr 2023 03:44:59 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 600852F4; Tue, 25 Apr 2023 03:45:43 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 960D03F5A1; Tue, 25 Apr 2023 03:44:57 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org Cc: James Clark , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH] perf build: Fix unescaped # in perf build-test Date: Tue, 25 Apr 2023 11:44:13 +0100 Message-Id: <20230425104414.1723571-1-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 With the following bash and make versions: $ make --version GNU Make 4.2.1 Built for aarch64-unknown-linux-gnu $ bash --version GNU bash, version 5.0.17(1)-release (aarch64-unknown-linux-gnu) This error is encountered when running the build-test target: $ make -C tools/perf build-test tests/make:181: *** unterminated call to function 'shell': missing ')'. Stop. make: *** [Makefile:103: build-test] Error 2 Fix it by escaping the # which was causing make to interpret the rest of the line as a comment leaving the unclosed opening bracket. Fixes: 56d5229471ee ("tools build: Pass libbpf feature only if libbpf 1.0+") Signed-off-by: James Clark --- tools/perf/tests/make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/make b/tools/perf/tests/make index d75876126631..8dd3f8090352 100644 --- a/tools/perf/tests/make +++ b/tools/perf/tests/make @@ -178,7 +178,7 @@ run += make_install_prefix_slash # run += make_install_pdf run += make_minimal -old_libbpf := $(shell echo "#include " | $(CC) -E -dM -x c -| egrep -q "define[[:space:]]+LIBBPF_MAJOR_VERSION[[:space:]]+0{1}") +old_libbpf := $(shell echo '\#include ' | $(CC) -E -dM -x c -| egrep -q "define[[:space:]]+LIBBPF_MAJOR_VERSION[[:space:]]+0{1}") ifneq ($(old_libbpf),) run += make_libbpf_dynamic -- 2.34.1