Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5772192rwe; Tue, 18 Apr 2023 11:14:19 -0700 (PDT) X-Google-Smtp-Source: AKy350bF0TEJUI0DCrK1mUAxBk/+ZZ2+n+fFYzhZMiW0rAg3KO0ekcS6gEPQmz4TnTD7XEc5TJUA X-Received: by 2002:a05:6a20:5496:b0:ef:bd:3b with SMTP id i22-20020a056a20549600b000ef00bd003bmr495658pzk.55.1681841659617; Tue, 18 Apr 2023 11:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681841659; cv=none; d=google.com; s=arc-20160816; b=PIgCKD28Sk7dsHHr1dgwEmMMInXIKCWDUNV8B/vx44/BgK2vweMDmTwXKSfjITnuXP xi2gq1MT9rGjkgnJH06OVUERVIRUZ1s2Zlr5cxBk4RSK7QjOExj7VRT14TS5xRDYTE+j ET08FtJFYfJf/zm5BtZlBhnFwKq0/3QivyUiIMPDY0mz4gEEWr1vCgGX2ta3vpEAGfF0 4OAP1vCOEgw90J3dV9lhHD3VTDMMffk4vvY8mGEgHdppfs/fyiFldM/yY4QNRNnBdWlN oS9jFd7x3FADspkPAJ6U4B2uFGYquqMomF2dia7Qr5YbJpZ+tAgfml/MupVARvfAlyMM Zjdg== 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 :dkim-signature; bh=bVo7ErolbBsB3vbOoqmPHuRczZ4pjL/sGStpYzTmAxM=; b=AgRmmTcg07a3caSjCcfe8kAHrjuAQeCRF1MpCSChoqXdNUffwdMtHZVYnpKQsws4mL SFHEtJrzIiec2/ZNFC0yUTn2G2qlGFfrqZcGaBjAxZ8nb4EeJ35GHyUrQQqncPjwpc3y 3fgGmmaUzzH5RLJiy2sWCsDOVMRLUjoyJBesOsS91pAfEnMVRItwEoG6OZeGYe1BlWgF IXtI3dlhvwWuGTMGdixp3LGOdQK1nM2nBwG3sDA0+oriH7AtMMxPNpm9o57TcUb1LSfI 0UchoYSUDxLdpN2wGxtENCAGvxvT1HAPU3uxYtD4XEuHzKr0LgqRET0yzFFN0DR/feMX dxfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=ZU5RGYlh; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w203-20020a627bd4000000b0062dbc05a323si13015783pfc.298.2023.04.18.11.14.05; Tue, 18 Apr 2023 11:14:19 -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=@google.com header.s=20221208 header.b=ZU5RGYlh; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232438AbjDRSE4 (ORCPT + 99 others); Tue, 18 Apr 2023 14:04:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232432AbjDRSEy (ORCPT ); Tue, 18 Apr 2023 14:04:54 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 821CF4699 for ; Tue, 18 Apr 2023 11:04:51 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f048b144eeso67585e9.1 for ; Tue, 18 Apr 2023 11:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681841090; x=1684433090; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bVo7ErolbBsB3vbOoqmPHuRczZ4pjL/sGStpYzTmAxM=; b=ZU5RGYlhPrrm3RUw1BAJD4ultlC7dOla6Lr/381b9LpQqBWglBq0ppKxwlU9+VwW2M msjDDhP3G6FP/MJDlvw9WHNWoycAFQEK1CG2E+AxoRClYltCV0ke/P6Mp/bSZ9tg8sVf s7kFlG7VZVRqpnP1CauObtccey3KhAJUwE/IlnQwXPdVJ8Rfwhx2WcvDSo8I7XBf2c+E 3FDWG6WCqT/xBrYcz57O2Unf215gtdpwlDaCTpY//bSDI82W9wr8KLyVA3XBzdIDYuJC AQX0LuH73IcR+OEC9L+kBCdnN2DFePLw18BAbA+0j5sWsfiJiZvQokxB5ziUnLfkEX+f Bm+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681841090; x=1684433090; 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=bVo7ErolbBsB3vbOoqmPHuRczZ4pjL/sGStpYzTmAxM=; b=B6ny8nXj/JLVb9cf9kCU/1Oy0n4b0VkyIHJQi3nH+NLYUTHWBQhIKJFH4oS22JmtQj pMnGjPtLdrDU4p4+mR3t38u5GL6NETN0Z1r8U28iItVDnTK2r8tyhsEvhtHsCeXaQ4EZ I+qyEdu2gxtrSnI/ccTZ6jT+HLICpPlhcQn9EiLrE7CXjN7uFWIyI1NZOA5eY/Q1lnzK To5xdEP9DP6Uphhn459dYccdbGUGPRAaqmKTH9f4BJA7oVwu1ZOZkQ1dVRc3vT+jGDA0 i+OX4d2n7OOVLnKt3DRU7bDf4kD/g1QhdWATtwPUVV9kceUmlxskNNTYIweTE1deObVy hHMw== X-Gm-Message-State: AAQBX9ckXFevLhHdha4z/pejB+IRwoCc+nElQ2KwCmVYzvA7F1WfhzNP 1CFkbEbuzJgACXlf1hZBEzp57pwDSWxxgfpf3ZzWMg== X-Received: by 2002:a05:600c:3c97:b0:3f1:73b8:b5fe with SMTP id bg23-20020a05600c3c9700b003f173b8b5femr7640wmb.3.1681841089846; Tue, 18 Apr 2023 11:04:49 -0700 (PDT) MIME-Version: 1.0 References: <20230417122943.2155502-1-anders.roxell@linaro.org> <20230417122943.2155502-2-anders.roxell@linaro.org> In-Reply-To: From: Ian Rogers Date: Tue, 18 Apr 2023 11:04:35 -0700 Message-ID: Subject: Re: [backport PATCH 1/2] tools perf: Fix compilation error with new binutils To: Quentin Monnet Cc: Anders Roxell , stable@vger.kernel.org, acme@redhat.com, andres@anarazel.de, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Alexei Starovoitov , Ben Hutchings , Jiri Olsa , Sedat Dilek , bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 On Tue, Apr 18, 2023 at 9:43=E2=80=AFAM Quentin Monnet wrote: > > 2023-04-17 10:14 UTC-0700 ~ Ian Rogers > > On Mon, Apr 17, 2023 at 5:30=E2=80=AFAM Anders Roxell wrote: > >> > >> From: Andres Freund > >> > >> binutils changed the signature of init_disassemble_info(), which now c= auses > >> compilation failures for tools/perf/util/annotate.c, e.g. on debian > >> unstable. > > > > Thanks, I believe the compilation issue may well be resolved by: > > https://lore.kernel.org/lkml/20230311065753.3012826-8-irogers@google.co= m/ > > where binutils is made opt-in rather than opt-out. > > Hi, > These commits are to make it possible to build against recent binutils, > without having to leave it out at compile time, so as I understand they > address a different issue? Kind of. We don't want the Linux perf build to break. Previously if binutils were installed then Linux perf would default to linking with it and break your build were binutils to change its API. That is no longer the case as we don't default to linking against binutils. This was motivated by distributions not being able to link Linux perf with binutils due to the license incompatibilities. I don't see a problem supporting linking against newer and older binutils if people want to on non-distributed binaries. We'll probably need more build tests/containers to cover the possibilities of this. I'm not sure what's motivating binutils support other than personal experimentation though. Thanks, Ian > > > >> Relevant binutils commit: > >> > >> https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3D60a3= da00bd5407f07 > >> > >> Wire up the feature test and switch to init_disassemble_info_compat(), > >> which were introduced in prior commits, fixing the compilation failure= . > > > > I was kind of surprised to see no version check ifdef. Is > > init_disassemble_info_compat is supported in older binutils? > > It is not part of binutils, it was introduced in commit a45b3d692623 > ("tools include: add dis-asm-compat.h to handle version differences"), > which should likely be backported alongside these ones if it hasn't been > already. Possibly the others from the same series [0], as well? > > I think all 5 patches from Andres' series were backported to 5.15 [1]. > > [0] > https://lore.kernel.org/all/20220703212551.1114923-1-andres@anarazel.de/t= /#m999a44663894e235b523ffc41ce87e956019ea72 > [1] > https://lore.kernel.org/all/e6e2df31-6327-f2ad-3049-0cbfa214ae5c@hauke-m.= de/t/#u > > Best regards, > Quentin