From patchwork Tue Dec 1 06:43:20 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anuj Mittal X-Patchwork-Id: 106715 X-Patchwork-Delegate: anuj.mittal@oss.qualcomm.com Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.5857.1796107458645855551 for ; Mon, 30 Nov 2026 22:44:18 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=JvpHiJk+; dkim=pass header.i=@oss.qualcomm.com header.s=google header.b=I1aBQHSL; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.180.131, mailfrom: anuj.mittal@oss.qualcomm.com) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B12L9we024662 for ; Tue, 1 Dec 2026 06:44:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=ChhPr0lPrXa aOfLA4z9/ndl7K1vxtl9PGINI1I5sSQg=; b=JvpHiJk+jE31JZDFHnlEAGZnV8S GZ9Q9PQ436AGRMrxXsD3bWysIyUF6505FobQV3+eZ+ynSwHbO6CWjE6eXS+mxyfu +NkhBJ38MtRm7EXCmcZ+zZJFWyA/ZYEYMunEb350ax6RnBrMD/TFH/EsxPg/5WTt vNTFSx8qQ/z5kOUQ86z2kDPKYRSHq1ZtGWOq+dVXGQn8xlQ9IO90qw2cC1elYQgC hC/apO24kxcTvWQyiTHRTcQ97rlTnj5/tmSZLf2PsbyfxJqttOWInlUZFN/rstvZ SJ41UWHSTk3CW3r4Hee/6iqhMSPQlFq/G+pQxwrOwdizKLi2zk/7JzhuSqA== Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9ffgt3rv-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 06:44:17 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-3854627c1c8so14638743eec.1 for ; Mon, 30 Nov 2026 22:44:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796107456; x=1796712256; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=ChhPr0lPrXaaOfLA4z9/ndl7K1vxtl9PGINI1I5sSQg=; b=I1aBQHSLKkvtbdpJQ3rGHqLJyaIs1lV2eXhZ6jhvb7vJ3FWTXxVj/wvaCGJBOdxh0k 0r8ltPRG2zjKoZv0xxXJpgjnE3NXZlCwmdx89AGOHORWp1q4HGLazz6tv1L9HuAg1feS kIOKprJGVqQ8VoQvSgYlwk76kNWJvyraAUq4dlRvZZ7jY4X4jMk5WV7bO++DH0zuG5e5 mfqfCYgk0W0bjt7gIVZSft37i+QDlBs122x0pLiEeA3oz0eE0F+O6pQRBtWytA+jd8Wm 94qZPuhQ3m03/6ALPtqNdLsXQMkiiE2foFGLeJQ+z+Bea9dt80lzRsX9fTVGUp+GS0AX Cxig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796107456; x=1796712256; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=ChhPr0lPrXaaOfLA4z9/ndl7K1vxtl9PGINI1I5sSQg=; b=hBybtPIVne0PjPJZRw8uc05pli3RDMEkwnbMlY6tQ1MSP3NLcElZphRmNUPzihSlXw HMjoQMIutcsYQQLMzxEHRLKVQSpodUIQ0oJIvufgw+ENdYA+CVR6rjXO69q93bp9r6Xj g31BUayjXk+MwkF1Fzakj63/CWJPhJGTt5Sg2LC+nG2r+CQ+zctitTUaXvOVmD1dza/S ay+s3WcHvvu7qhbN5CDyQkIrSedwzbu5Isx9uWewkhsjevAGuzfJyWOXqU/oKVWIZz1T oqpUlEcuXPmMtiBY2jDQ5Vm/0t4804zPKk6voicIRAoPq4hNK5DU1BFIDvk5kymohOfX xdhw== X-Gm-Message-State: APuU4Z8vUrSEzeRmyg/8z2vJugqRXcK15XCWEyV2xz0RPJV1I7Sy6jeY fYd5W0JxGBIeX4IK1sKzP1+CNMxfXGHItIUcTDtoz/wB8JDbt/zEKSuX8lhy00QaM9hGgf/1R4B NQ69bKYYWO61RyZVvb2ZtFPdn4uO8du7o7OaqtwvxErDifmUV9rO0PcfBlE9OHdTqzNpYEh6tz8 eMdw8c2EmzNj5K3kp0wdI4XA== X-Gm-Gg: AZFdTZeCrq8KSaM9gXUJM1clR3OdcItr2f3rIWEg4BU0T8XhkAYYrTyIXLE1rE8hrZv OCJvAqaI23OxpPaldAxwdL1RoWfNsrOMji4Qwtw+WCVMlJgSeF81pGfHaxQycALdPyGdpDv3ZWZ OerjancnWnYMpZYC68XuBRSHMn5e34c5do1500sOsVOOACOCzMuSm80XsTdzyEQEkLxTAiTHh5z HaQKr8J5tZ68qWaD0R3pYPxk0t4mHqOHCKzCj/miofqE75k4RsokrvuKdwUKr5rt8zKp0wuf4rM lVdEcpnWKKPcsxSyzLjmL9oDB30yqua71709BgxcjTumyHjo7706jRmm5o0NWteJls+ZDzDIle+ zrwYCq0ZtKphYPtYlOMAH24u9mR/Vk77MNUN7f3GDiIt4UvN1yy6F/dmuvIdxC+L8ts9Bdhp1fO sOAG3F X-Received: by 2002:a05:693c:87d1:20b0:386:a816:ca16 with SMTP id 5a478bee46e88-386a816ce29mr24568303eec.15.1796107456100; Mon, 30 Nov 2026 22:44:16 -0800 (PST) X-Received: by 2002:a05:693c:87d1:20b0:386:a816:ca16 with SMTP id 5a478bee46e88-386a816ce29mr24568288eec.15.1796107455542; Mon, 30 Nov 2026 22:44:15 -0800 (PST) Received: from hu-anujmitt-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566cd46c5sm132830468eec.11.2026.11.30.22.44.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 22:44:15 -0800 (PST) From: Anuj Mittal To: openembedded-devel@lists.openembedded.org Subject: [wrynose][meta-oe][PATCH 04/45] bpftool-native: Fix build on arm64 hosts with linux-libc-dev 7.3 Date: Tue, 1 Dec 2026 12:13:20 +0530 Message-ID: <20261201064402.3934788-4-anuj.mittal@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261201064402.3934788-1-anuj.mittal@oss.qualcomm.com> References: <20261201064402.3934788-1-anuj.mittal@oss.qualcomm.com> MIME-Version: 1.0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAyNiBTYWx0ZWRfX7D7yFtfDlwVL 8RmSM5rFittWLLXODN2rW+X4427pnQM6Z62vl7w0ZrhlMZiHOVtpX+r6ZhkTMT0sAMDz9q31GzH P6PB43BgYAK8r24dz5OTMYOMxRK54FZai9B/33KShQmOoQSYN9ig5Fm18bXaqi6NmOxMHXyZzT2 saB6z2KlRdkFEo4cmrO+hMPklUbz4KM4Obz5PaJppdBahjKgFCxsmOE79zDC/zIK/25oftFiQEh /gGSl73EYAKtpzWuNfQpDhYAXG51bG2oAeWY/YKyA4a3kpkBjrRqz426bLDEshXWqonZnFmBPnX Ea40qA0g8f3Ib5WDZigouRs8lAcWjgKZlluT1t7WQaBYtmwhCXoIbH7nmaDrFu3qFNcFM2QPTEW xRqAHhUtnHDZV/dO/B8BczlAfg3Qtg42X58jZYBS4BpRWlmaBCNFTKEjazmA41HoBCs8zmHfjpF GhT4VDeIuXtTnrZ9pRg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAyNiBTYWx0ZWRfX4Lshqv079hIg yMUDwJN5WgU0PckEJ1SnX7KdZ/QJjVxUt/Q5x8Ri06IuczquepbhgLB+pfvAfGHQytztnWkQIKe i7UJbTz6q6nfQzZ256KXnAJNX19f4QQ= X-Proofpoint-GUID: phSbnLp8NYLx_dGZH_TV2Z17QYkCqYBt X-Authority-Analysis: v=2.4 cv=dvpOmFg4 c=1 sm=1 tr=0 ts=6b0e6cc1 cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=1XWaLZrsAAAA:8 a=utrO6l7y35OKB-ZhUBMA:9 a=PxkB5W3o20Ba91AHUih5:22 X-Proofpoint-ORIG-GUID: phSbnLp8NYLx_dGZH_TV2Z17QYkCqYBt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_01,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 bulkscore=0 clxscore=1015 suspectscore=0 adultscore=0 phishscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010026 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 06:44:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133698 From: Khem Raj Debian 13 now ships linux-libc-dev 7.3, where the arm64 UAPI headers (asm/ptrace.h, asm/sigcontext.h) use __u128 instead of __uint128_t. bpftool-native builds against the host headers but puts tools/include ahead of them, and the 6.16 tools linux/types.h does not define __u128: /usr/lib/linux/uapi/arm64/asm/sigcontext.h:81:9: error: unknown type name '__u128'; did you mean '__u32'? Backport the upstream tools/include/linux/types.h fix that adds the 128-bit types. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj (cherry picked from commit a8efe5fd3d075ae976567d967f870c3deefad2a3) Signed-off-by: Anuj Mittal --- .../bpftool/bpftool-native_6.16.bb | 1 + ...s.h-Add-128-bit-integer-types-for-ar.patch | 47 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 meta-oe/recipes-kernel/bpftool/bpftool/0002-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch diff --git a/meta-oe/recipes-kernel/bpftool/bpftool-native_6.16.bb b/meta-oe/recipes-kernel/bpftool/bpftool-native_6.16.bb index edc635517a..f174414200 100644 --- a/meta-oe/recipes-kernel/bpftool/bpftool-native_6.16.bb +++ b/meta-oe/recipes-kernel/bpftool/bpftool-native_6.16.bb @@ -12,6 +12,7 @@ inherit native bash-completion SRC_URI = "\ ${KERNELORG_MIRROR}/linux/kernel/v6.x/linux-${PV}.tar.xz \ file://0001-libbpf-Fix-Wdiscarded-qualifiers-under-C23.patch \ + file://0002-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch \ " SRC_URI[sha256sum] = "1a4be2fe6b5246aa4ac8987a8a4af34c42a8dd7d08b46ab48516bcc1befbcd83" diff --git a/meta-oe/recipes-kernel/bpftool/bpftool/0002-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch b/meta-oe/recipes-kernel/bpftool/bpftool/0002-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch new file mode 100644 index 0000000000..2181274430 --- /dev/null +++ b/meta-oe/recipes-kernel/bpftool/bpftool/0002-tools-linux-types.h-Add-128-bit-integer-types-for-ar.patch @@ -0,0 +1,47 @@ +From 10a47fb67340bca274276faf855d7d460afd9a7a Mon Sep 17 00:00:00 2001 +From: Will Deacon +Date: Fri, 26 Jun 2026 15:17:28 +0100 +Subject: [PATCH] tools: linux/types.h: Add 128-bit integer types for arm64 UAPI + structures + +The arm64 UAPI exposes some 128-bit integer types to represent things +such as fpsimd registers in the sigcontext. In preparation for defining +these using the '__u128' typedef implemented by uapi/linux/types.h, copy +that typedef over to the private linux/types.h header used by the tools +directory. + +Cc: Arnd Bergmann +Cc: Arnaldo Carvalho de Melo +Cc: David Matlack +Signed-off-by: Will Deacon + +Debian 13 now ships linux-libc-dev 7.3, whose arm64 asm/ptrace.h and +asm/sigcontext.h use __u128. bpftool-native picks up +tools/include/linux/types.h ahead of the host linux/types.h, so the +build fails on arm64 hosts with "unknown type name '__u128'". + +Upstream-Status: Backport [https://git.kernel.org/torvalds/c/10a47fb67340bca274276faf855d7d460afd9a7a] +Signed-off-by: Khem Raj +--- + tools/include/linux/types.h | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h +index d41f8a261bce8..b6c473b7920db 100644 +--- a/tools/include/linux/types.h ++++ b/tools/include/linux/types.h +@@ -23,6 +23,11 @@ typedef enum { + __GFP_HIGH + } gfp_t; + ++#ifdef __SIZEOF_INT128__ ++typedef __signed__ __int128 __s128 __attribute__((aligned(16))); ++typedef unsigned __int128 __u128 __attribute__((aligned(16))); ++#endif ++ + /* + * We define u64 as uint64_t for every architecture + * so that we can print it with "%"PRIx64 without getting warnings. +-- +2.53.0 +