Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5155395rwb; Mon, 31 Jul 2023 19:55:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlG8T2j/jelT8IHmh8plwCApZSXuvsEI32k/EQVoJyH88G69BF92RmWc2iyqtcGNiyBsvB6X X-Received: by 2002:a17:907:7f21:b0:99c:2e3:cad7 with SMTP id qf33-20020a1709077f2100b0099c02e3cad7mr1922142ejc.5.1690858553383; Mon, 31 Jul 2023 19:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690858553; cv=none; d=google.com; s=arc-20160816; b=aW0TFhs/RZpQwrp38kjaaphvzOXDINrn9Zp0ZWxHbMlDMoFZ0GEzuuAsK0Ibzi+Nh2 Z6yXIXPHFQ2b8fpwfVGsweIF9+5aqE2bZeTheKxOI7+NfrxcBPqKESKPaW6HoXzuecmp PUACvKSJZIVTniCJGsPa3zVsnrUPq/q0i/eJcT4z7OWhkPz1sXyiLW9ytBxivqeAYD7u 9qbNXepHebSeBxbxro7eULCTetu+gbYFFqLGfFLIxRH5ab/rSpG3vKnIt4mxMUnn9uK5 MRuntieWKkhwFFEapTB+k2OeIS49INAI14c9mv2T1NMrgmA9tbSqS1xUKJNvpcl+S2g6 ek0w== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tnLlW8AkgbMTcFLYvfDqGRscNYZXnmg7kAzY7a8A+F8=; fh=TKT6BwOlGJrEdTj5J9iYvVJ5gOaltQayamM1huSPlCo=; b=ma/sf4W9iwAzcJ8cyNYDFVGTVTOGIybuWtA6nx0rHnS0tVPeS4Nn4XxlVZBLrdXiFp 5O49hagmTi6kyxXDiDuW5JcSaBQNtIglLoFENZtup1m9ZZ91e/f72DDtA5SC67LPW4H8 qMHFErJanEVbsuGGc/r11woes8GH9eJX+Gw4t0vMoai2HxAg4qnf0qzkja47t1J4iIDg O0xzgxY7WkEumMQYOK1PTsby0mQ/P+0Czsqpl+8tf2k/li1v62kOk7gYCqCGfCxQ6Pz0 RkRoSgbOPbcnT4E8t3juLKDD9+M+1J/nUXVjSGc36vaYMUZo3koBIv1mGXP/UjkuElo5 ls8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M59G1iH5; 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 u16-20020a1709064ad000b00992d0de8766si7651961ejt.913.2023.07.31.19.55.29; Mon, 31 Jul 2023 19:55:53 -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=M59G1iH5; 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 S232105AbjHACaH (ORCPT + 99 others); Mon, 31 Jul 2023 22:30:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232094AbjHACaG (ORCPT ); Mon, 31 Jul 2023 22:30:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 166691BFD; Mon, 31 Jul 2023 19:30:01 -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 9F3A9613EF; Tue, 1 Aug 2023 02:30:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92EBCC433C7; Tue, 1 Aug 2023 02:29:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690857000; bh=JqTpuojuSmByA27/5WGpMBYobl6c+pIwWwOPzzkyoSk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M59G1iH5RSuy/jK4mIM5hLWCgtxG6QNZHLZsxbkscK3O2uHaIhfgKrCYkun1biidL h5BVJLdxwGiZox9SC4yuEbTvH+z0EzZiSzeNeGDkcpQtmDOGuz18ed6j+CDmBfYULM FSWt+bWY62WmfOHlPVtv3pDus3nXq+Hv2dKdKaoX9WZClxjocAw8mWvKBuben0+vgo CfssLd1IF/jInUY88692Dm3tGAJ3uXgHOW2UPvnhH5/PXNJIXRegBmf7wvWvoy10m2 gbzQd+7l7Xyzs++sY+u2JtDEluqmu65wPHHY8br4vZKr240aEYaxhq0CKW86BBwYOu KKjk1TWfinwPQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id C752240096; Mon, 31 Jul 2023 23:29:56 -0300 (-03) Date: Mon, 31 Jul 2023 23:29:56 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: James Clark , 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 , LKML , bpf , 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=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NUMERIC_HTTP_ADDR, 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 Mon, Jul 31, 2023 at 06:16:38PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Jul 28, 2023 at 12:05:56PM -0700, Ian Rogers escreveu: > > On Fri, Jul 28, 2023, 11:43 AM Arnaldo Carvalho de Melo > > > > I haven't checked, lemme do it now. > > > > It comes directly from flex's m4 files: > > > > https://github.com/westes/flex/blob/master/src/c99-flex.skl#L2044 > > > > So I'll keep the -Wno-misleading-indentation, ok? > > > Makes sense, yes. > > continuing, changed the version check to: > Committer notes: > > Added this to the list of ignored warnings to get it building on > a Fedora 36 machine with flex 2.6.4: > > -Wno-misleading-indentation > > Noticed when building with: > > $ make LLVM=1 -C tools/perf NO_BPF_SKEL=1 DEBUG=1 > > Take two: > > We can't just try to canonicalize flex versions by just removing the > dots, as we end up with: > > 2.6.4 >= 2.5.37 > > becoming: > > 264 >= 2537 > > Failing the build on flex 2.5.37, so instead use the back to the past > added $(call version_ge3,2.6.4,$(FLEX_VERSION)) variant to check for > that. > > Making sure $(FLEX_VERSION) keeps the dots as we may want to use 'sort > -V' or something nicer when available everywhere. Please take a look at the tmp.perf-tools-next on the perf-tools-next git tree, so far it passed on: [perfbuilder@five ~]$ export BUILD_TARBALL=http://192.168.86.10/perf/perf-6.5.0-rc2.tar.xz [perfbuilder@five ~]$ time dm 1 131.37 almalinux:8 : Ok gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18) , clang version 15.0.7 (Red Hat 15.0.7-1.module_el8.8.0+3466+dfcbc058) flex 2.6.1 2 133.63 almalinux:9 : Ok gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4) , clang version 15.0.7 (Red Hat 15.0.7-2.el9) flex 2.6.4 3 151.31 alpine:3.15 : Ok gcc (Alpine 10.3.1_git20211027) 10.3.1 20211027 , Alpine clang version 12.0.1 flex 2.6.4 4 148.73 alpine:3.16 : Ok gcc (Alpine 11.2.1_git20220219) 11.2.1 20220219 , Alpine clang version 13.0.1 flex 2.6.4 5 126.35 alpine:3.17 : Ok gcc (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924 , Alpine clang version 15.0.7 flex 2.6.4 6 125.43 alpine:3.18 : Ok gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924 , Alpine clang version 16.0.6 flex 2.6.4 7 143.12 alpine:edge : Ok gcc (Alpine 13.1.1_git20230520) 13.1.1 20230520 , Alpine clang version 16.0.4 flex 2.6.4 8 102.10 amazonlinux:2 : Ok gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-15) , clang version 11.1.0 (Amazon Linux 2 11.1.0-1.amzn2.0.2) flex 2.5.37 9 95.36 amazonlinux:2023 : Ok gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4) , clang version 15.0.6 (Amazon Linux 15.0.6-3.amzn2023.0.2) flex 2.6.4 10 96.15 amazonlinux:devel : Ok gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4) , clang version 15.0.6 (Amazon Linux 15.0.6-3.amzn2023.0.2) flex 2.6.4 11 118.48 archlinux:base : Ok gcc (GCC) 12.2.0 , clang version 14.0.6 flex 2.6.4 12 106.42 centos:stream : Ok gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18) , clang version 15.0.7 (Red Hat 15.0.7-1.module_el8.8.0+1258+af79b238) flex 2.6.1 13 127.88 clearlinux:latest : Ok gcc (Clear Linux OS for Intel Architecture) 13.1.1 20230720 releases/gcc-13.1.0-353-g9aac37ab8a , clang version 16.0.6 flex 2.6.4 14 88.12 debian:10 : Ok gcc (Debian 8.3.0-6) 8.3.0 , Debian clang version 11.0.1-2~deb10u1 flex 2.6.4 15 113.56 debian:11 : Ok gcc (Debian 10.2.1-6) 10.2.1 20210110 , Debian clang version 13.0.1-6~deb11u1 flex 2.6.4 16 122.58 debian:12 : Ok gcc (Debian 12.2.0-14) 12.2.0 , Debian clang version 14.0.6 flex 2.6.4 17 130.89 debian:experimental : Ok gcc (Debian 12.3.0-5) 12.3.0 , Debian clang version 14.0.6 flex 2.6.4 18 23.75 fedora:26 : Ok gcc (GCC) 7.3.1 20180130 (Red Hat 7.3.1-2) flex 2.6.1 19 23.52 fedora:27 : Ok gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-6) flex 2.6.1 20 24.66 fedora:28 : Ok gcc (GCC) 8.3.1 20190223 (Red Hat 8.3.1-2) flex 2.6.1 21 26.12 fedora:29 : Ok gcc (GCC) 8.3.1 20190223 (Red Hat 8.3.1-2) flex 2.6.1 22 26.06 fedora:30 : Ok gcc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2) flex 2.6.4 Tomorrow I'll go back to perf-tools, to get what sat on linux-next pending-fixes and a few other fixes (the one reported by Thomas, etc) to send to Linus for v6.5. - Arnaldo