From nobody Sat Feb 7 11:38:15 2026 Received: from mail.itouring.de (mail.itouring.de [85.10.202.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 084BF22B8A6; Fri, 2 May 2025 08:57:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.10.202.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746176255; cv=none; b=EZmWd1RP3NiHRQjI2mbbT+khV3ImZdrUQATHGagy/bwGFl3AAOG+WyncR++IZurnt/siW3Cd9iJWdNww0UVRfi3W1GEIIRmxax0A1enu3EnTrTi0NhH6Vv/WvqVygsUi7T0+b5hPQr8Src3CWSyn+3UKAn1SRC55JXvK4rIWcyQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746176255; c=relaxed/simple; bh=qFHFB+DwmqM2jMBUN6w9mF5dQfpASkF5/ZedKcfaUMM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=sNruosvvE3rR092/E4nYHFyZgLQ2s1RjUrCGPZoQMSr01V/Wl72l/ffRubtuz9wi+bGTmwZSRtP7rShAl/EeqBYX2hY4L51BEk5k/KNb3UNHQGTW8TFHZn6V2PbjFvvwtK9gWyQQl2bEg2IeBxwa84sQERsiQh0WsJs+y5/Oz4w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=applied-asynchrony.com; spf=pass smtp.mailfrom=applied-asynchrony.com; arc=none smtp.client-ip=85.10.202.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=applied-asynchrony.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=applied-asynchrony.com Received: from tux.applied-asynchrony.com (p5b07e9b7.dip0.t-ipconnect.de [91.7.233.183]) by mail.itouring.de (Postfix) with UTF8SMTPSA id AB149103765; Fri, 02 May 2025 10:57:22 +0200 (CEST) Received: from localhost (hho.applied-asynchrony.com [192.168.100.221]) by tux.applied-asynchrony.com (Postfix) with UTF8SMTP id 1DAB8601893B6; Fri, 02 May 2025 10:57:22 +0200 (CEST) From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= To: Quentin Monnet , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , bpf@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= Subject: [PATCH] bpftool: build bpf bits with -std=gnu11 Date: Fri, 2 May 2025 10:57:10 +0200 Message-ID: <20250502085710.3980-1-holger@applied-asynchrony.com> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable A gcc-15-based bpf toolchain defaults to C23 and fails to compile various kernel headers due to their use of a custom 'bool' type. Explicitly using -std=3Dgnu11 works with both clang and bpf-toolchain. Signed-off-by: Holger Hoffst=C3=A4tte Acked-by: Quentin Monnet --- tools/bpf/bpftool/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile index 9e9a5f006..ca6c1e04b 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -227,7 +227,7 @@ $(OUTPUT)%.bpf.o: skeleton/%.bpf.c $(OUTPUT)vmlinux.h $= (LIBBPF_BOOTSTRAP) -I$(or $(OUTPUT),.) \ -I$(srctree)/tools/include/uapi/ \ -I$(LIBBPF_BOOTSTRAP_INCLUDE) \ - -g -O2 -Wall -fno-stack-protector \ + -g -O2 -Wall -fno-stack-protector -std=3Dgnu11 \ --target=3Dbpf -c $< -o $@ $(Q)$(LLVM_STRIP) -g $@ =20 --=20 2.49.0