Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5667749rwe; Tue, 18 Apr 2023 09:44:33 -0700 (PDT) X-Google-Smtp-Source: AKy350bah0O/OUoWb2T6lwuqsppQOoelWww7cDGas9UuZ1oEhdoKIGExH79gtE1QQ86w/kIFWnNK X-Received: by 2002:a17:90a:f60d:b0:23f:7c82:2468 with SMTP id bw13-20020a17090af60d00b0023f7c822468mr265519pjb.31.1681836273545; Tue, 18 Apr 2023 09:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681836273; cv=none; d=google.com; s=arc-20160816; b=M8ovfXKROGvuW5ZFsgCc/f6lpH1GCQdmY2IWuEmfHxc8BuhDm4/xmVgh+Jwq8+oNNZ D2NuIgiZdHQVpu8W1d/8C43WJecgRCIoSCrsqXC5TtfVCyQrCDS2QEB9IyajaJGiNn/x TQNuYUyKomy1wf1M2gygwHhQDQZrbJPW2vQ2WP6SQShUVfl5TbJ3+5K66YyEPSJEq5In 76MmXqnfLbeV2ZlJjvgD4itl2Ij2cfFRyoJt6adyjL1IA6DNT82NOhmy8gedhA/6wsHE BntgxTi3D4hdfxmH4jVVLWQPLT7Sz0fBuz/WNjq6wMe8qkYxlY8WGD/n+xO7H6mX6FMR d0Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=yChDZ6lPEiZFSMHS9eZZu5Rm2GjLj4bAjIDP+NDqrok=; b=jZrWUW0RTJNDVFDWBiy2Y+tbRW75k33Y36wYACjwY1CSRJnhIylDNC352MB/FVEPum FtlbesupCAlOeORq1cnXKMZdnU8ILOifp0ptnINWJOQKPL64h7DFU6fvpkxdDeC97uh2 GuOnXqyQAVF/75FeGvrFQcyde58zfpfNh8SwsJXdvchRtMx9mpDPsdyzy1ocecNVkIrm /XxMrx+HzwumZLcYr1XTkErZgPBAyNy2f2DnjHuvqH7L1J3up5EFj0/4fzlkGvU+bzv5 kEA6+gdvCP2F4jtTmNIfTfkIkHAZm9wgIcoxTOcYszyWqHzhW0+cVY++sxYgF/V80+xu 01rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@isovalent.com header.s=google header.b=CbOa4jSc; 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=isovalent.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a17090aa88200b00247b56ce17asi3016703pjq.112.2023.04.18.09.44.18; Tue, 18 Apr 2023 09:44:33 -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=@isovalent.com header.s=google header.b=CbOa4jSc; 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=isovalent.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232463AbjDRQnM (ORCPT + 99 others); Tue, 18 Apr 2023 12:43:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232185AbjDRQnK (ORCPT ); Tue, 18 Apr 2023 12:43:10 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61849903E for ; Tue, 18 Apr 2023 09:43:04 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3f16b99b990so23795185e9.0 for ; Tue, 18 Apr 2023 09:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent.com; s=google; t=1681836183; x=1684428183; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yChDZ6lPEiZFSMHS9eZZu5Rm2GjLj4bAjIDP+NDqrok=; b=CbOa4jScJ2Dpm2/H1CXGGsXencDu9B2kIVkipDfkTLd/XLlNTDhzUSbbW/pkAS+Dif /YDMTMR7geQAeVIW/x/EYx+5573zfEXGRRQ1STYee7aLwktt4YbZhXf4td/Jp3maCShw sn8XzoANU9HGjhXUAQbjNzQrkcQcUfAMyEbhKRwkmY8RSZXpGTMuTWF1U8HkL1E25bfU Ivg1qh8b2MZ3no1bzxrdpxoIVFkcTlD19Ao8fdOqMZPWbgcYw4T9edSig+ZUYuuvuqEy liL2PEC10A95o4aVgw/s6mqAEyPPF7p7lWBPn/tY7dUeDiz/KzeFMFyBwIlVLRQS3+GY bEmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681836183; x=1684428183; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yChDZ6lPEiZFSMHS9eZZu5Rm2GjLj4bAjIDP+NDqrok=; b=RL3sTAwuFw3HCUYXaZ7+lLWah/C09hJOMSYA4nVrP7jLgSByuznsatmJhjo2tYqZhB 1blWp0DIZDjsSUKpzVYjkRAguHEW2pQNOSVmckkpfIBFq4a/mj3dcjX5iugtohYpYPm0 ctA7fIP5EPry8+oxmL9Fo/PE0opkj2tdN5smCoZl9FMxmu/ml6VKOWTZdOIfy3qmgnda niIouMMlXiU/MhV10fU+eSqnKBlPtmYTWA9wiEQBXnO09YqTdXbRVP67Ak+NLq2UhmiR QE9PrTQ6T4mZUJRcx5z0ndSiVBN4Kqlw+TbCc5hAJwUA3DwgbuOA8lHpzGWJMeylMkpa BD8w== X-Gm-Message-State: AAQBX9d1b4aYEkQYP/+8jkaMX52kP+bQjzT2rPz7hho0AHmCc4yjk0SX h740brcyGsIMT7Z7JjJRfbSVTQ== X-Received: by 2002:a5d:42d2:0:b0:2f4:e580:a72f with SMTP id t18-20020a5d42d2000000b002f4e580a72fmr2350432wrr.45.1681836182812; Tue, 18 Apr 2023 09:43:02 -0700 (PDT) Received: from ?IPV6:2a02:8011:e80c:0:192d:7ca1:96c2:5c9b? ([2a02:8011:e80c:0:192d:7ca1:96c2:5c9b]) by smtp.gmail.com with ESMTPSA id z8-20020a7bc7c8000000b003f1745c7df3sm5789492wmk.23.2023.04.18.09.43.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Apr 2023 09:43:02 -0700 (PDT) Message-ID: Date: Tue, 18 Apr 2023 17:43:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [backport PATCH 1/2] tools perf: Fix compilation error with new binutils Content-Language: en-GB To: Ian Rogers , Anders Roxell Cc: 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 References: <20230417122943.2155502-1-anders.roxell@linaro.org> <20230417122943.2155502-2-anders.roxell@linaro.org> From: Quentin Monnet In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 2023-04-17 10:14 UTC-0700 ~ Ian Rogers > On Mon, Apr 17, 2023 at 5:30 AM Anders Roxell wrote: >> >> From: Andres Freund >> >> binutils changed the signature of init_disassemble_info(), which now causes >> 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.com/ > 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? > >> Relevant binutils commit: >> >> https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=60a3da00bd5407f07 >> >> 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