Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1293532rwb; Fri, 28 Jul 2023 07:30:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHTcODOURL7xGwenaI4/pNM+7Qs4lbjxArjGVax0l/GsSYP11ARF88bh80d/JcE3K3wsb// X-Received: by 2002:a05:6402:1208:b0:51e:1af0:3a90 with SMTP id c8-20020a056402120800b0051e1af03a90mr1960106edw.37.1690554613038; Fri, 28 Jul 2023 07:30:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690554613; cv=none; d=google.com; s=arc-20160816; b=B6dWiwGAaNfpB/X56WMTlXonXS70oTESJzxKqQawl1b0C9eCfpFxSmpKHztWBxiE6f iXXqHmbs16En+OsHc/2vZSLPtD0sieesMx2cWrDrS9gTwlsGECiBTQXRxdXopBUSOirp UhBoA9DMUD4JPaUX6EFaVkdk/R4mQiIxsqpbB7TOvg8EFZdUuPPMyGFL0hQF5YcAZNr4 Y5iRci6VmEeyF591wmK0P/QXtmNm4KYlnJ5BM49rpfBbc4pX9mwStcsjrvNAwIphL1av v9h/o8+MeCtVtFA2piYbcZOuWM8ymIW9izDaWiTn4rtTWOUkoeGtOp2jbO/iNwY17pVM 7Akg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lABnCnSspVMYEl8ZVcVLlMG6QgAtD0IkNaOLElzv1XA=; fh=Dxpa8XNwv+1jJvFqIFUOT08bKre1cySxDY3m4SBWKtI=; b=IND0bGi09BStREIv0vGykltTbb4RDbd7bMFl8Z3kIjMLUv3Q8G9xas572hNWjHdVP5 c6hbmvdmOxGsPY/vYbOS30aOOsZN/vZ7gaoKdWUYvjcWxuUZatM5q7JYgpwiq58I18qd YtQxFNnXsDxqdBNnTWnJvT31UIO2hqZ2CqRBibUrTYmh5X6Ti8h9XLSmjkZtSq6uh3Sq WO95O4TjnGcc7FhdTdLzsxIpR79MXPFZIpWysZ8eimMcfTZwlRRK5knXzYKLvEwwykoz WF5WQrRkMVea+o/KDq2/iiX82oaxLaZOcwNRUhGmORds6R1jR029wChbnZdkYj7QlPDF jiLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TDhAXHeN; 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 bc4-20020a056402204400b005223c3425a5si2564632edb.147.2023.07.28.07.29.47; Fri, 28 Jul 2023 07:30:13 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TDhAXHeN; 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 S234501AbjG1N7o (ORCPT + 99 others); Fri, 28 Jul 2023 09:59:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjG1N7n (ORCPT ); Fri, 28 Jul 2023 09:59:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42890E78; Fri, 28 Jul 2023 06:59:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D306262155; Fri, 28 Jul 2023 13:59:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E58DC433C7; Fri, 28 Jul 2023 13:59:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690552781; bh=F3dxrjgbvuK9UxFq0YQioOFyWmM5w9lhpsGUFhh3HYI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TDhAXHeNYDqPzWDzPF1GiG62aQfnHSgcNXvP2CDN7AzMswajRDbm6xRFrxzZ2ypOp x+Do7ECw8mF4tVlDeZR5OqLgLOwxhZc4SD7GDvOhPfDnQYZ+aK0isbgAbx6VIWupx+ xtYgOEV6br6tMzhLdYKtwLM9UFvNGSYs7d/CvHSGE6Ovrp7V07LVd922j5k0wrjemp /TNzXdnh9IkQ6DjYB+jSMJV2CLhQs2vjeacVpPBfK8Bzg+sIT+tA/eYQkbv1ZIPPh0 ILykb1OWtw64yZ6WMxK1wW9torVkaPbwBlry4m1Vpj+p2aRFQwmARgz1oKMaq5t2Xl q0xARtSekqIfQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 48D0C40096; Fri, 28 Jul 2023 10:59:38 -0300 (-03) Date: Fri, 28 Jul 2023 10:59:38 -0300 From: Arnaldo Carvalho de Melo To: James Clark Cc: Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Tom Rix , Kan Liang , Eduard Zingerman , Andrii Nakryiko , Gaosheng Cui , Rob Herring , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH v1 4/6] perf build: Disable fewer flex warnings Message-ID: References: <20230728064917.767761-1-irogers@google.com> <20230728064917.767761-5-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Em Fri, Jul 28, 2023 at 09:50:59AM +0100, James Clark escreveu: > > > On 28/07/2023 07:49, Ian Rogers wrote: > > If flex is version 2.6.4, reduce the number of flex C warnings > > disabled. Earlier flex versions have all C warnings disabled. > > Hi Ian, > > I get a build error with either this one or the bison warning change: > > $ make LLVM=1 -C tools/perf NO_BPF_SKEL=1 DEBUG=1 > > util/pmu-bison.c:855:9: error: variable 'perf_pmu_nerrs' set but not > used [-Werror,-Wunused-but-set-variable] > int yynerrs = 0; > > I tried a clean build which normally fixes these kind of bison errors. > Let me know if you need any version info. Trying to build it with the command line above I get: CC util/expr.o CC util/parse-events.o CC util/parse-events-flex.o util/parse-events-flex.c:7503:13: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] if ( ! yyg->yy_state_buf ) ^ util/parse-events-flex.c:7501:9: note: previous statement is here if ( ! yyg->yy_state_buf ) ^ 1 error generated. make[4]: *** [/var/home/acme/git/perf-tools-next/tools/build/Makefile.build:97: util/parse-events-flex.o] Error 1 make[4]: *** Waiting for unfinished jobs.... LD util/scripting-engines/perf-in.o make[3]: *** [/var/home/acme/git/perf-tools-next/tools/build/Makefile.build:140: util] Error 2 make[2]: *** [Makefile.perf:682: perf-in.o] Error 2 make[2]: *** Waiting for unfinished jobs.... CC pmu-events/pmu-events.o LD pmu-events/pmu-events-in.o make[1]: *** [Makefile.perf:242: sub-make] Error 2 make: *** [Makefile:70: all] Error 2 ⬢[acme@toolbox perf-tools-next]$ clang --version clang version 14.0.5 (Fedora 14.0.5-2.fc36) Target: x86_64-redhat-linux-gnu Thread model: posix InstalledDir: /usr/bin ⬢[acme@toolbox perf-tools-next]$