From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.200 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793766619; b=bbAewB+AeN+B9VRPSHjv/ntkv/QLWsE2P9j8hriQQ+f0rQe+7vOzlf/ajmYAQAB1vIhi d+wrenqvSt3x5PIZ0IbaF5pmEi2CwXhd2In7nqQFlXyZo/3Uldie8SSZOsbM85Rxjl4on e70CgNC40lhlVDOhxgp2wKNTIxeM+i16FE/hd55c8UxmUGXrhdRCbOnmvSqe6MTXcZTMY 9UTJfXaEV8qlcQ2ONmKAvSETCOiltGnZUq5DiBnWNYrNHKRvZUV0Ed44PkJI1bbpsN2Ir XsumjjGXh6xvTJqT3DuE02xawBTqcS6SyDuMhpFZVEj8ExEgy7CEDMawAWF3l7X7Qcg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793766619; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:Mime-Version: X-Mailer:Message-ID:Subject:From:To:Cc:Content-Type; bh=8waw0InSHbtK6ZY3bCOmuZQhAY4jX7XSlK/9kloqXLc=; b=dCLHFxC1TeJulMdTt5m1iBi6b4RyDVKtxOtnU7QonIG5EmIdCNr6ohnr6+PquGjC601/ GEtwaN2WKTYb/Kj5h9eorQUv5WLNiGBznTjK1ykhkgkkvfPOu+4sZcBGjVoium0a0DPJu nQosLO4IptOMMZ47pT/BCCjAPR5z2IM4JRVWHoTv4eELcTArNR+qfH3dHo1HrozJwVChl oFrE2YmNw/5TXX98NeCmCQv6htr7vyy4kNUSDuC6y3Pr81TqnmKo00z05zZHYwshxakwU wRc2xHy5h8eh1xjLbU67I9bS0aJ/WThsd7IeCk+1DJxzSEVDsvjobAhEm7b/diW3JLA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=cA05iQ+L; arc=none smtp.remote-ip=74.125.82.200 Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0493C606A328 for ; Wed, 4 Nov 2026 04:30:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0493C606A328 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=cA05iQ+L Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-341eff9e381so548401eec.1 for ; Tue, 03 Nov 2026 20:30:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1793766618; x=1794371418; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=8waw0InSHbtK6ZY3bCOmuZQhAY4jX7XSlK/9kloqXLc=; b=cA05iQ+L87KeC0XJCB1HKfGJI3KaZo1LmjL2Gxvh14+v5B/W70zKGkNbJurgtAdwLr b9Yb7vLuXGqWqaM/lxCIqLtUfRnQcpCegjVN4dZnPvxA2taBEi0lx23PIRtTGNtGKlii tMyD0Ga5SfnLTe0hKtFdZJyqYtwD2pdHC2W3HkTrkGYOWyG6Z5BYFwkqli4Y32lPFAds Ko8HvAsJRUFJj3+wPler6pryCcqFAHGUEOssYiMRGStWPsJr5SwryNmrLcbbos4SjFEV OiP6fHkU4TKo2tJY7o/eODqrG1AcWG/42vuaPmwjB5kRreJyTpYV+IWp2ne5FN96qipL ylKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793766618; x=1794371418; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=8waw0InSHbtK6ZY3bCOmuZQhAY4jX7XSlK/9kloqXLc=; b=ux/eJKUfCtwPttzZbpedU581H6ZrPTQtOwk9HyXJAtDs3y2hsoyM7s4mIUgusSjYEN Ks8lT4LwTpCtX8VplLY5TOYCLYGRz6mT/tBle6SRVH7ZEzbsByIjwzFk3CEs9pxzDVxB 6IA//Uj1YAhp1Nmd3RQ8LwfyPIUvt5MOFHXSzLRSneswJUPStg+AiRb+lxuUREi7Oii1 hU48iFVLgnBfjEGBK0PscthYABnC9R9qoEjGg3q63OdTJ1sg7v3vfg/00UIbtPMotx4j bTL0J+0EvR+Qy6P/0be0KIRA/Vw9WubeqSqnH2t7kgRfoQBw6kTa0P2vsXHf4NH+3MDH D6zw== X-Forwarded-Encrypted: i=1; AKwUvBwAzfnRbXmPsLWgSGFR9A7Rjyz39fj4H8IWa/wA3Gb/Izg3RuvnfuUHGdf+DIiyU71TcVtu5HLkV2pgzIs=@vger.kernel.org X-Gm-Message-State: APuU4Z8OpwcDNHeHkAIhYQ+mZ4cBeKEwbe/mSfgd5lPmwdHM6gTAcrk1 WrNwsisHmXZbM9BKZ1dqgcFhPjlb7PBOYDKPbke70P44J868zENGilYMQR1S3mTaDZPK/5sw03V azeYDJua7Yw== X-Received: from dybhh13.prod.google.com ([2002:a05:7301:290d:b0:369:7ef0:57a8]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7300:c019:20b0:36b:f09f:924a with SMTP id 5a478bee46e88-36bf09fa41emr5753785eec.14.1793766617812; Tue, 03 Nov 2026 20:30:17 -0800 (PST) Date: Tue, 3 Nov 2026 20:30:02 -0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 X-Mailer: git-send-email 2.56.0.385.gac671c819a-goog Message-ID: <20261104043006.1199857-1-irogers@google.com> Subject: [PATCH v3 0/4] tools build: Fixes for libbfd -lzstd dependency From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Jiri Olsa , Ian Rogers , Adrian Hunter , Quentin Monnet , Josh Poimboeuf Cc: Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , James Clark , Leo Yan , linux-perf-users@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" This series addresses build problems when linking against static libbfd/libopcodes on distributions like Fedora where binutils is built with zstd section decompression support (requiring '-liberty -lz -lzstd' together). In v2, commit 89d001d48ec7 ("tools build: Add zstd to the binutils library feature tests") landed in tools/build/feature/Makefile at the same time, creating a merge conflict and only adding '|| $(BUILD_BFD) -lzstd' without '-liberty -lz' or the corresponding libbfd-liberty-z-zstd feature check in perf and bpftool (so even if test-libbfd.bin passed with -lzstd, perf and bpftool would link only '-lbfd -lopcodes' without '-lzstd'). v3 rebases onto perf-tools-next (v7.4-rc1), fixes commit 89d001d48ec7 in patch 1/4, collects the Acked-by tags from Quentin Monnet and Peter Zijlstra, updates the LIBOPCODES_LIBS comment in tools/objtool/Makefile, and moves the AI assistance disclosure from commit trailers to the cover letter. v2: https://lore.kernel.org/all/20260909204122.1993010-1-irogers@google.com/ v1: https://lore.kernel.org/linux-perf-users/20260909181030.1870496-1-irogers@google.com/ AI Assistance Disclosure (per Documentation/process/coding-assistants.rst): - Tools used: Antigravity coding assistant and Sashiko automated patch review. - Summary of prompts and assistance: Rebased the 4-patch series onto perf-tools-next, resolved the conflict with commit 89d001d48ec7 in tools/build/feature/Makefile, incorporated review feedback and Acked-by tags, and verified with scripts/checkpatch.pl. Ian Rogers (4): tools build: Add explicitly sequenced -lzstd to libbfd feature fallback perf build: Add explicitly sequenced -lzstd to libbfd feature fallback bpftool: Add explicitly sequenced -lzstd to libbfd feature fallback objtool: Add explicitly sequenced -lzstd to libopcodes fallback tools/bpf/bpftool/Makefile | 4 ++++ tools/build/Makefile.feature | 3 ++- tools/build/feature/Makefile | 19 +++++++++++++------ tools/objtool/Makefile | 7 ++++--- tools/perf/Makefile.config | 3 +++ 5 files changed, 26 insertions(+), 10 deletions(-) -- 2.56.0.385.gac671c819a-goog