From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EAC8562609 for ; Wed, 9 Sep 2026 20:41:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788986511; cv=none; b=gQl7Q9YT497zcjhrS6TZF3LxeQfp6+HpEA3cKFXT4e9sTp1dQUMw2w8XjjqYXx5WOrn4WbB6YhTg3OSzZ8bZbZhQDp2IOrZE4UuoVj20NnLTb5TeUJZceZxZtW+z3fOltDHJkRXr6v/pV5k2lQMWQbG0eu50WWUsyqFXsYAIl0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788986511; c=relaxed/simple; bh=lzGikIwP3jt+gebSI9ASbBMxYIDTjcvzLhu0dadRD3g=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=NQFuB1cOndHHLFQW/WAYzaJAftT2AkU6GEsufVldOhg8FgLDLvHnlSzxpXCSu+kqpmAfmkqCh5lBWkPy2h5f8ss3aJLd3RagZVcUOHsgcbiTb5Ma4PXXQMiivnircH81j53jd5FxzCS32mQ2fD67I3aX6NqRUUIIPXPajhwA7IY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=VDFHeMev; arc=none smtp.client-ip=209.85.214.199 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) header.d=google.com header.i=@google.com header.b="VDFHeMev" Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2dc92350888so24364975ad.3 for ; Wed, 09 Sep 2026 13:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1788986492; x=1789591292; 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=eQnCep2rVFC6ERkLpw82m7uGzTr5iSCdTDgfzxN2350=; b=VDFHeMev5pnXQuqWlK5DscSbU6oztU5Foif6XfZIkbz/x5Wn/+OKKITJdtIzbf+mVz 2yWVMR17CirnHLdUAAtq48kIkX+T2TnwDiqWzSHMVcwhqY5aKSY/EoLcCmBPgtgfzp8u 5OHM9Wyb2te5MxAb8KmTVSU1LFRFej36kqENFMYPxgpibEo/LQqlOozSrUwFU9LA3s2w M5XXfZ2fP65weowTLfN7y8Pdq59y08dlQFeZ493GThXTiM8eZUAZZy9w4Q4VA89TMqhq b2CKvuIwp73xXsJsYLk7SqoWNl/k2DSVu2CswSm4nAPE5L2Xs5GC+qwjEAFfcJQcnLNH ud2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788986492; x=1789591292; 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=eQnCep2rVFC6ERkLpw82m7uGzTr5iSCdTDgfzxN2350=; b=K889RjIiZRv00dbh8jU3Qy0EGlL3LDI4/Qxc9VyXOjF4+BiGmdD69TBl3V8WuaHzJi gKKJneKnlC0gBOBqxZAyZuDxsUrsjeUxLCRmKCg3rBdrJlZIatQPHHhqyfOWHW94WGAR ht2No8pNMOekA2Oj4STs0FolCggOJSPckADAz+wprYHoG0vMAMYmzbMNSe2SiHZjjpvP 9LA0Xs9l9ICBRNFZmslee+9OezHhYGUiyX8jIAnyrzi7b48TV4k9cHS24ogTBPKf2cUV t2Gvh0ikoYLyyBE+c5Infj01+Ypdx+c7+iia94Puu6/zw4YPL1iF0RYM1byGa+KbmmPm +RrA== X-Forwarded-Encrypted: i=1; AKwUvBxSjtFIcW3BltIqTIK5IJephu8jvN/KN/KhTdExk13/+ZOhQC8EB6/+I/gbAOFIAu9/6h/ELZcnuK5jDhM=@vger.kernel.org X-Gm-Message-State: AFuF++lJOHoR+DyeMeVkbe6pLxhsmif1xNiT0mKwHYkD2vWP24t/hzp/ q69D2MCsMmYTZ7/9dPm/ASPCbv20KZujiYCJNOo2QM3ypk/Kt1/Ic2TlXcRxT8rjAUDQLbpS/jv qPzAclqzJZg== X-Received: from dlzz35.prod.google.com ([2002:a05:7022:4a3:b0:143:56d8:251]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:380a:b0:398:d2a0:87ff with SMTP id 98e67ed59e1d1-39d7098094bmr3884030a91.1.1788986491408; Wed, 09 Sep 2026 13:41:31 -0700 (PDT) Date: Wed, 9 Sep 2026 13:41:18 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.55.0.1003.g10538fe699-goog Message-ID: <20260909204122.1993010-1-irogers@google.com> Subject: [PATCH v2 0/4] tools build: Fixes for libbfd -lzstd dependency From: Ian Rogers To: Quentin Monnet , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Ihor Solodrai , Josh Poimboeuf , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Ian Rogers , Adrian Hunter , James Clark , Nick Terrell , David Sterba , Tomas Glozar , Costa Shulyupin , Michael Jeanson , Dmitrii Dolgov <9erthalion6@gmail.com>, Leo Yan , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Cc: bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" This is a fuller set of patches from v1 addressing build problems linking with libbfd when zstd is a dependency. The original issue was exposed on Fedora with perf's build-test. This series separates the build from the perf changes and adds in bpftool and objtool fixes caught by Sashiko. The changes follow the pattern used by the zlib -lz dependency and so appear correct but are untested. v1: https://lore.kernel.org/linux-perf-users/20260909181030.1870496-1-irogers@google.com/ 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 | 12 +++++++++--- tools/objtool/Makefile | 3 ++- tools/perf/Makefile.config | 3 +++ 5 files changed, 20 insertions(+), 5 deletions(-) -- 2.55.0.1003.g10538fe699-goog