From patchwork Fri Nov 27 15:55:55 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106123 Received: from mail-dl1-f53.google.com (mail-dl1-f53.google.com [74.125.82.53]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.18166.1795794962544777684 for ; Fri, 27 Nov 2026 07:56:02 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=U+66haTR; spf=pass (domain: gmail.com, ip: 74.125.82.53, mailfrom: raj.khem@gmail.com) Received: by mail-dl1-f53.google.com with SMTP id a92af1059eb24-170135e43c7so12789670c88.0 for ; Fri, 27 Nov 2026 07:56:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795794962; x=1796399762; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=5XmqjZoY7v0uKM96H6iMz13TfIxABxnhIk1C11nk/Vo=; b=U+66haTRkWkc442CgtkljbmHC0JC366n9eZbq8wOpcfE+wUAHth+boJ2X2yB5lQILl MCgYSbtAqX4atINpIlH4O+eaCK/8IPY8hlhjO3/d0ZlzekICrFMfg0h1yFihektrupwA eHGoGdLJAzKevWU3opgAbWJuzljyzhNPD+5lIfXFXJDSOGLo8aSHULrlUAAD3UvQKgOW 0hMbCUujzWjSFrNN6y4MQNgD7SYJ5D+kEOhEzc9/jL58wrepU6E736NSQUUQWd4WD1+y 4J6/DCCDRP/qqKRRoSYS58V0ge2X1WlRIbtXSzWO5C33b1b9+fwMqvxV1TCv6+WBfojy tMsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795794962; x=1796399762; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to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t8lh9ub17/qAC oPR9niDSHPwEd4VxIfy/AO67RIJmnKMOCqW75U2yyRJWv4148kvjgmosKnX0G5L1cEKoKgMJ81u Zx+k/lRLpRgIsJU1GRSOhe0JPXtvZvVM08twT3w6hzQcIG1ywSd/11uxutPkR3pUGrFLtYpHnMr jyCG6eDhaYkTTIjFcYu2Y6JBOYOTwU/cFyUB0XEO2VaOtwvySTG0FkQeXMbxeYGulvH0xxoxcnn UWWcgh85yv8zQD9aM0WB9QNvbOsvBt0gc5kLHA7+/1jwxTvX2PTVa06x6O9Xn8RQFZVW7IFir3i ktkuQqjvGR8XI8smLBnq9Us3ndE63/S7k0ZcHIwhNCHBq08dYi25HcPsJA3h03E/7NCKUuMSdVJ /2pw X-Received: by 2002:a05:7022:1701:b0:1a4:c892:b130 with SMTP id a92af1059eb24-1b55feaa6a4mr22958982c88.15.1795794961790; Fri, 27 Nov 2026 07:56:01 -0800 (PST) Return-Path: Received: from apollo.tail3ccdd3.ts.net ([147.160.63.35]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b55681301asm58118218c88.8.2026.11.27.07.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2026 07:56:01 -0800 (PST) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 1/3] nodejs: Fix build with gcc 12 on the build host Date: Fri, 27 Nov 2026 07:55:55 -0800 Message-ID: <20261127155557.2874294-2-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261127155557.2874294-1-khem.raj@oss.qualcomm.com> References: <20261127155557.2874294-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 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 ; Fri, 27 Nov 2026 15:56:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133383 Debian 12 build hosts fail to compile the V8 host tools (CXX(host)) with gcc 12: turboshaft/assembler.h:1838:33: error: static assertion failed static_assert(kTaggedSize == kInt32Size); note: the comparison reduces to '(8 == 4)' GCC before 13 evaluates non-dependent static_asserts in the discarded branch of an if constexpr inside a template. A full gcc 12 build found a second case in builtins-iterator-inl.h. Hoist the first check in front of the if constexpr and make the second depend on a template parameter. Node.js 26 requires GCC 13.2, so the patch is not for upstream. Checked with a complete native build using gcc 12.5. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...carded-constexpr-branches-for-gcc-12.patch | 73 +++++++++++++++++++ .../recipes-devtools/nodejs/nodejs_26.13.1.bb | 1 + 2 files changed, 74 insertions(+) create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs-26/0012-v8-Fix-static_assert-in-discarded-constexpr-branches-for-gcc-12.patch diff --git a/meta-oe/recipes-devtools/nodejs/nodejs-26/0012-v8-Fix-static_assert-in-discarded-constexpr-branches-for-gcc-12.patch b/meta-oe/recipes-devtools/nodejs/nodejs-26/0012-v8-Fix-static_assert-in-discarded-constexpr-branches-for-gcc-12.patch new file mode 100644 index 0000000000..f6fa856d3a --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs-26/0012-v8-Fix-static_assert-in-discarded-constexpr-branches-for-gcc-12.patch @@ -0,0 +1,73 @@ +From f5ce52fd44c5f3f9bc6d9134fc1c14e4eabec2a4 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 26 Nov 2026 17:16:05 -0800 +Subject: [PATCH] v8: Fix static_assert in discarded constexpr branches for gcc + 12 + +GCC before 13 evaluates a static_assert whose condition does not depend +on a template parameter when it parses the template, even inside the +discarded branch of an if constexpr. GCC 13 implemented P2593 and defers +the check. On 64-bit targets this breaks two places in V8: + +- turboshaft::AssemblerOpInterface::SmiLessThan() asserts the 32-bit + tagged layout in the branch that is only taken with 4-byte tagged + values. +- IterableForEach() asserts that typed array element types fit in an + int, including in the branch discarded for the BigInt64, BigUint64 and + Uint32 element types. + +Hoist the first check in front of the if constexpr, where it holds for +both layouts, and make the second depend on the IntVisitor template +parameter so it is only checked on instantiation. + +Node.js 26 requires GCC 13.2, but Debian 12 build hosts ship GCC 12 and +use it for the host tools (CXX(host)). + +Upstream-Status: Inappropriate [Node.js 26 requires GCC >= 13.2; this is for older build host compilers] +AI-Generated: Uses Claude Code +Signed-off-by: Khem Raj +--- + deps/v8/src/builtins/builtins-iterator-inl.h | 10 ++++++---- + deps/v8/src/compiler/turboshaft/assembler.h | 5 +++-- + 2 files changed, 9 insertions(+), 6 deletions(-) + +diff --git a/deps/v8/src/builtins/builtins-iterator-inl.h b/deps/v8/src/builtins/builtins-iterator-inl.h +index a8632ba9..eb9081cf 100644 +--- a/deps/v8/src/builtins/builtins-iterator-inl.h ++++ b/deps/v8/src/builtins/builtins-iterator-inl.h +@@ -272,10 +272,12 @@ MaybeDirectHandle IterableForEach(Isolate* isolate, + return MaybeDirectHandle(); \ + } \ + } else { \ +- static_assert(std::numeric_limits::max() <= \ +- std::numeric_limits::max()); \ +- static_assert(std::numeric_limits::min() >= \ +- std::numeric_limits::min()); \ ++ static_assert(sizeof(IntVisitor) > 0 && \ ++ std::numeric_limits::max() <= \ ++ std::numeric_limits::max()); \ ++ static_assert(sizeof(IntVisitor) > 0 && \ ++ std::numeric_limits::min() >= \ ++ std::numeric_limits::min()); \ + if (!int_visitor(static_cast(val))) { \ + return MaybeDirectHandle(); \ + } \ +diff --git a/deps/v8/src/compiler/turboshaft/assembler.h b/deps/v8/src/compiler/turboshaft/assembler.h +index 85ca7d42..cef87c7b 100644 +--- a/deps/v8/src/compiler/turboshaft/assembler.h ++++ b/deps/v8/src/compiler/turboshaft/assembler.h +@@ -1832,11 +1832,12 @@ class AssemblerOpInterface : public Next { + V SmiOpName(ConstOrV left, ConstOrV right) { \ + V l = BitcastTaggedToWordPtrForTagAndSmiBits(resolve(left)); \ + V r = BitcastTaggedToWordPtrForTagAndSmiBits(resolve(right)); \ ++ static_assert(kTaggedSize == kInt64Size || \ ++ (kTaggedSize == kInt32Size && \ ++ v8::internal::SmiValuesAre31Bits())); \ + if constexpr (kTaggedSize == kInt64Size) { \ + return IntPtrOpName(l, r); \ + } else { \ +- static_assert(kTaggedSize == kInt32Size); \ +- static_assert(v8::internal::SmiValuesAre31Bits()); \ + return Int32OpName(TruncateWordPtrToWord32(l), \ + TruncateWordPtrToWord32(r)); \ + } \ diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_26.13.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_26.13.1.bb index c42b07acf3..5d968b0f36 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_26.13.1.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_26.13.1.bb @@ -30,6 +30,7 @@ SRC_URI = "https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ file://0007-positional-args.patch \ file://0008-custom-env.patch \ file://0011-v8-handle-supplementary-case-equivalents-of-BMP-characters.patch \ + file://0012-v8-Fix-static_assert-in-discarded-constexpr-branches-for-gcc-12.patch \ file://run-ptest \ " SRC_URI:append:class-target = " \ From patchwork Fri Nov 27 15:55:56 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106124 Received: from mail-dl1-f47.google.com (mail-dl1-f47.google.com [74.125.82.47]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.18173.1795794963411064163 for ; Fri, 27 Nov 2026 07:56:03 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=KULjDdy3; spf=pass (domain: gmail.com, ip: 74.125.82.47, mailfrom: raj.khem@gmail.com) Received: by mail-dl1-f47.google.com with SMTP id a92af1059eb24-1a3c08d6928so12311117c88.0 for ; Fri, 27 Nov 2026 07:56:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795794963; x=1796399763; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ncLB5AqWCXSs1X0QDg5I3C517TKbuFHnt3wjq5B+6PI=; b=KULjDdy3OhMPyNJnz4WG+6hhLhTaz6FFbwBtD18Od3yqhje6ikNSuts/GyZGxSAGmz 7AMaU47EedNj7CF0iBJCLaHcWlouv7R/aPTdk0JDNjVUFEdrzv22E0zGWAxLPNL2dm31 2sjHUJYoZkpJL2FWic3CxlQk/SkXB1ySvKs53ITZXMIzGXXdBG8yQITo2blmnSKvH5OU WqLBNClgvrdl1NRl6I6m5xFIwHHdjpvR8ORvYz1mi2f+/sEL8C6My4K4K5YdcF4TeO/r XoicC07P38n1xg32y9J/md2YanOn2ZEeZ21ONk5ViNZs3YDQLI8rrWB52zOBoKl2/jWx zA7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795794963; x=1796399763; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=ncLB5AqWCXSs1X0QDg5I3C517TKbuFHnt3wjq5B+6PI=; b=XkTFE+mHiq6znPL4QzT0qC16RtlZWQNQIQ6YeqAiEkR4IwKV8hkRslM/7P06qzksgT MuygIekihcfuo5RSWwPzgx/dM8cKTyyKBb8g6y0yvKMjvtfanw2uGFI8Yuob364R1yTp Nx+DPT01ecw+CdRF+U1zT1fjNC4bbfaxbQMpgFBWq7FAnyAQfvHNUNpqS28jUSkOON4l 23liizecH8cZsrM4+xapSp5C8k7CVeU9+HI0+7QnnwyS5euDN8YUM85Ok1GtmcoxCBtc lNh6yKKoSCvMKvOt1LMKgiANAHmGLotee8MqP2lSPjGvQ/4IEcmr4bIwsR8JByI5D6bk WcyQ== X-Gm-Message-State: APuU4Z9J5R0KNQY0Y0ttksbpwFF5ntL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727c88.19.1795794962707; Fri, 27 Nov 2026 07:56:02 -0800 (PST) Return-Path: Received: from apollo.tail3ccdd3.ts.net ([147.160.63.35]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b55681301asm58118218c88.8.2026.11.27.07.56.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2026 07:56:02 -0800 (PST) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 2/3] kernel-selftest: Skip the cgroup tests that hit the OOM killer Date: Fri, 27 Nov 2026 07:55:56 -0800 Message-ID: <20261127155557.2874294-3-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261127155557.2874294-1-khem.raj@oss.qualcomm.com> References: <20261127155557.2874294-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 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 ; Fri, 27 Nov 2026 15:56:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133384 cgroup:test_memcontrol runs memcg OOM cases on purpose, and testimage fails the ptest image whenever dmesg has "Killed process": AssertionError: ERROR: Processes were killed by the OOM Killer: Memory cgroup out of memory: Killed process 3424 (test_memcontrol) ... cgroup:test_kmem fails intermittently under memory pressure in the test VM. Skip both. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- .../kernel-selftest/kernel-selftest/run-ptest | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/run-ptest b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/run-ptest index 85fa63b5e4..3c4b4993c1 100755 --- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/run-ptest +++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/run-ptest @@ -16,8 +16,13 @@ # # landlock:fs_bench only reports timings, and walking its 10000 nested # directories takes about 90 seconds in qemu, twice the default timeout. +# +# cgroup:test_memcontrol triggers the OOM killer on purpose, and testimage +# fails the run whenever dmesg has "Killed process". cgroup:test_kmem fails +# intermittently under memory pressure in the test VM. Skip both. SKIP="-S ftrace:ftracetest-ktap -S filesystems:file_stressor \ - -S ptrace:vmaccess -S tty:tty_tiocsti_test -S landlock:fs_bench" + -S ptrace:vmaccess -S tty:tty_tiocsti_test -S landlock:fs_bench \ + -S cgroup:test_memcontrol -S cgroup:test_kmem" # sysmap_is_sealed can't tell at runtime whether the kernel seals the system # mappings, so skip it when the running kernel's config says it doesn't. From patchwork Fri Nov 27 15:55:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106125 Received: from mail-dl1-f44.google.com (mail-dl1-f44.google.com [74.125.82.44]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.18174.1795794964447984411 for ; Fri, 27 Nov 2026 07:56:04 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=GBfcAei3; spf=pass (domain: gmail.com, ip: 74.125.82.44, mailfrom: raj.khem@gmail.com) Received: by mail-dl1-f44.google.com with SMTP id a92af1059eb24-1b24f4b15c4so3915183c88.1 for ; Fri, 27 Nov 2026 07:56:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795794964; x=1796399764; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=5naxuchaYmPf/rnxTXTXKeycEM+fUQZgvVnDXsuTwgc=; b=GBfcAei3MWenWDmuP+eMT2J6S9KHmyVNCGhk+i3O3fjstYzMYRpoJc4f0eHKkagOwW sIeomExMLDDbQVPxIlax984MJOTyM5PVot6UqbFMG2m3MxXORWc2SVaaW0YECAwSbmLC UTOLUinhRlHzpUKFA44XxCegy5JLf0piDZgzV5SN5OphoQ22wbv4VPusX2r4SYuMh6x+ btZu5rKbM2xCOAwDugaejMs+b+RkfOaoGxaT9S92HEUnLLKqHQo0ZpXOORH53c3gst2C vPG9oPd7zpbZ0uH31lL500GNM0n7wnRmCMxcR1kLIPQCck5d2EhhOPFHtOi+9ZXF0HT5 uqHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795794964; x=1796399764; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=5naxuchaYmPf/rnxTXTXKeycEM+fUQZgvVnDXsuTwgc=; b=JC/FeCsRfxLFs+JS6I67N9ypXm4w/rSdr/CmdvN74YklkF7vL6hUu3sB88cozSmEMx v+NtiGy+jL5JzFL1JhEmhNg1AX85cyn4EbBKHuQBnYSBiQF+lD/K06AWt3np8Jtoptty i1kCdZD24he7Iq+Su5pb36v35+IOdpoY5iXpcHudyCCvPt29udC/UStK8rjs1gc+Z+lJ WXxlZUYE7ZgFjyR080PsI+LnH4sGzhPFD3Juq419wvmt5/Q0ruKsxj+PYdTW1Hicc8J8 WqE7D1DeIMg5ttapUU3mF4Ty5Fr5t8toxdD4Pj0qjGXQz2/VgT1NON4qRaC7WrkNTAOg s3/g== X-Gm-Message-State: APuU4Z/5QMqwoSxbcx0pFqIgsHmWhNEwA7MCbBXUMrWeCpxGA4V7FvTb D1WySLNasKcJneubT/xVNXWPRmZIykUKIn9xLNhbgSjAOgfaR8XAaiaUYjeQVBAa X-Gm-Gg: AZFdTZcs05voK51M2CCeAuBO+OIL9LeMl7ENp2gZM6WTv6Z45JkCQREIl9Yht7uLRGW MPKgiQVZpYkZ4bSJTYEh8WKqr9CHTLl6RWtRNCb8Nk7XlbkadiG0dv7JdA47c3NvE3gLXr4D1j6 tfYeTbba+65XWh1FfVlEFh6gEH6gA28vGZ+hycGJG/lxzlIYB7Lxw5QwA0X0OG69Xuyl5cNR73G Lmzc+l+4YDpAHmnIPl7xiZr1Vfalo4xRLDOF1lj0svXw91jhyh2ymw9IJfAL/vG67DixfZEyiQp Q+aU3HwXllGMIpiRXsBj60Xx5GQeb3EfprBQFqwhl/cdol6r5T5FSrsgKpSSfbi3SGqV3J9CMAO hVuF6kn1r9GKo+/YBL3tanfxHM42tolcN/MtZJPSs7Scm6L7Y3C2tCys9f7UC9shnYvrWtjUuP6 IWSLD2USSYlSldxZX09z9LVoezplrVV6YGL0OZWVsCuFG5HPVgF8IRlMSnhwAT272TQh1WJ2BRS iEp5vjGYj3akKGw+1juTm9p39HML/TBQxfcPePju62GdGyJjsWSy0UT0jLClwP1XXVAzi7pKFPv nSQoj0HY1xR/jwSfKSEGFvR4dImSsG66NEmxBJKxuA9SzaQa0s++o9hTlpTm2bFsiq7b76Gjwhj 38p7+iV2DSi74TsoXobsepwnPpFP4s43OxcdFbLaCaS12hHDZTPuYrBCRJXDY/J8G7Ci9XeZPil JnsVlGrMvdLzcNJaqEAv9nJsHSOVufj/oiAm5+xf3FQOi467Ee72th8wR4uimwvk3vXRryl0bc/ ncWhvHrZ5E/gzUHZhgs7F10Xr/JrDxUK/ki4BkcWWPLooRBprmbxTn75HKvzUAIgqlbtrtLwpaA 7LDc X-Received: by 2002:a05:7022:4181:b0:14a:a6dc:9cbf with SMTP id a92af1059eb24-1b5568abf0bmr34058828c88.4.1795794963730; Fri, 27 Nov 2026 07:56:03 -0800 (PST) Return-Path: Received: from apollo.tail3ccdd3.ts.net ([147.160.63.35]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b55681301asm58118218c88.8.2026.11.27.07.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2026 07:56:03 -0800 (PST) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 3/3] uftrace: Fix parallel build races Date: Fri, 27 Nov 2026 07:55:57 -0800 Message-ID: <20261127155557.2874294-4-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261127155557.2874294-1-khem.raj@oss.qualcomm.com> References: <20261127155557.2874294-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 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 ; Fri, 27 Nov 2026 15:56:09 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133385 misc/symbols and misc/dbginfo link arch//common.o, which only the arch Makefile knows how to build. When the top-level make reaches it first, it uses the builtin %.o rule without the -iquote include paths: arch/x86_64/common.c:10:10: fatal error: 'uftrace.h' file not found make: *** [: .../arch/x86_64/common.o] Error 1 Make the object depend on uftrace-arch.a so the arch Makefile builds it. Before the change, "make -j16 --shuffle=2" failed this way, and so did building $(objdir)/misc/symbols alone in a clean tree. Also backport the upstream fix for the libmcount dependency on version.h, a second race that "make --shuffle" exposes in 0.20. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...d-error-with-make-shuffle-for-arch-c.patch | 44 +++++++++++++++++++ ...-Fix-a-build-error-with-make-shuffle.patch | 43 ++++++++++++++++++ .../recipes-devtools/uftrace/uftrace_0.20.bb | 2 + 3 files changed, 89 insertions(+) create mode 100644 meta-oe/recipes-devtools/uftrace/uftrace/0002-build-Fix-a-build-error-with-make-shuffle-for-arch-c.patch create mode 100644 meta-oe/recipes-devtools/uftrace/uftrace/0003-build-Fix-a-build-error-with-make-shuffle.patch diff --git a/meta-oe/recipes-devtools/uftrace/uftrace/0002-build-Fix-a-build-error-with-make-shuffle-for-arch-c.patch b/meta-oe/recipes-devtools/uftrace/uftrace/0002-build-Fix-a-build-error-with-make-shuffle-for-arch-c.patch new file mode 100644 index 0000000000..cd18eddb00 --- /dev/null +++ b/meta-oe/recipes-devtools/uftrace/uftrace/0002-build-Fix-a-build-error-with-make-shuffle-for-arch-c.patch @@ -0,0 +1,44 @@ +From 2347c298f7ac45f2a55dea065deadd0eabc410f1 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 26 Nov 2026 23:25:06 -0800 +Subject: [PATCH] build: Fix a build error with make --shuffle for arch + common.o + +The misc/symbols and misc/dbginfo link $(objdir)/arch/$(ARCH)/common.o +but the top-level Makefile has no rule for it; it's built by the arch +Makefile as a part of uftrace-arch.a. When make reaches the object +before uftrace-arch.a, it falls back to the builtin %.o rule which lacks +the -iquote include paths (or fails with "No rule to make target" when +objdir is different from srcdir): + + $ make -j16 --shuffle=2 + ... + arch/x86_64/common.c:10:10: fatal error: uftrace.h: No such file or directory + make: *** [: .../arch/x86_64/common.o] Error 1 + +Building the tool alone, like `make $PWD/misc/symbols` in a clean tree, +fails the same way every time. + +Add a rule with an empty recipe that makes the object depend on +uftrace-arch.a so that it's always built by the arch Makefile. + +Upstream-Status: Submitted [https://github.com/namhyung/uftrace/pull/2079] +AI-Generated: Uses Claude Code +Signed-off-by: Khem Raj +--- + Makefile | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/Makefile b/Makefile +index a4e43a12..a220cc86 100644 +--- a/Makefile ++++ b/Makefile +@@ -316,6 +316,8 @@ $(LIBMCOUNT_ARCH_OBJS): $(wildcard $(srcdir)/arch/$(ARCH)/*.[cS]) $(LIBMCOUNT_DE + $(UFTRACE_ARCH_OBJS): $(wildcard $(srcdir)/arch/$(ARCH)/*.[cS]) $(COMMON_DEPS) + @$(MAKE) -B -C $(srcdir)/arch/$(ARCH) $@ + ++$(objdir)/arch/$(ARCH)/common.o: $(UFTRACE_ARCH_OBJS) ; ++ + $(objdir)/uftrace.o: $(srcdir)/uftrace.c $(objdir)/version.h $(COMMON_DEPS) + $(QUIET_CC)$(CC) $(UFTRACE_CFLAGS) -c -o $@ $< + diff --git a/meta-oe/recipes-devtools/uftrace/uftrace/0003-build-Fix-a-build-error-with-make-shuffle.patch b/meta-oe/recipes-devtools/uftrace/uftrace/0003-build-Fix-a-build-error-with-make-shuffle.patch new file mode 100644 index 0000000000..43bc24df07 --- /dev/null +++ b/meta-oe/recipes-devtools/uftrace/uftrace/0003-build-Fix-a-build-error-with-make-shuffle.patch @@ -0,0 +1,43 @@ +From a18631b7d579746bb91ae55f1d7701d57190012a Mon Sep 17 00:00:00 2001 +From: Namhyung Kim +Date: Mon, 7 Sep 2026 08:39:29 -0400 +Subject: [PATCH] build: Fix a build error with make --shuffle + +The libmcount also has a dependency on version.h but it's not handled by +make as it's built after the uftrace binary. In fact, each variant of +libmcount build should add the dependency for the mcount.c file. + +The Gentoo tinderbox CI found the issue when it randomized the make +target ordering with `make --shuffle`. + +Fixed: #2070 +Upstream-Status: Backport [https://github.com/namhyung/uftrace/commit/cb0eec80fd149ce6ad0be2926094095b32ee704c] +Signed-off-by: Namhyung Kim +Signed-off-by: Khem Raj +--- + Makefile | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index a220cc86..7ce81f30 100644 +--- a/Makefile ++++ b/Makefile +@@ -233,6 +233,9 @@ LIBMCOUNT_FAST_OBJS := $(patsubst $(objdir)/%.op,$(objdir)/%-fast.op,$(LIBMCOUNT + LIBMCOUNT_SINGLE_OBJS := $(patsubst $(objdir)/%.op,$(objdir)/%-single.op,$(LIBMCOUNT_OBJS)) + LIBMCOUNT_FAST_SINGLE_OBJS := $(patsubst $(objdir)/%.op,$(objdir)/%-fast-single.op,$(LIBMCOUNT_OBJS)) + ++LIBMCOUNT_OBJS_VERSION := $(objdir)/libmcount/mcount.op $(objdir)/libmcount/mcount-single.op ++LIBMCOUNT_OBJS_VERSION += $(objdir)/libmcount/mcount-fast.op $(objdir)/libmcount/mcount-fast-single.op ++ + LIBMCOUNT_UTILS_SRCS += $(srcdir)/utils/debug.c $(srcdir)/utils/regs.c + LIBMCOUNT_UTILS_SRCS += $(srcdir)/utils/rbtree.c $(srcdir)/utils/filter.c + LIBMCOUNT_UTILS_SRCS += $(srcdir)/utils/shmem.c $(srcdir)/utils/utils.c +@@ -335,7 +338,7 @@ $(objdir)/misc/bench.o: $(srcdir)/misc/bench.c + + $(objdir)/cmds/dump.o: $(C_STR_OBJS) + +-$(UFTRACE_OBJS_VERSION): $(objdir)/version.h ++$(UFTRACE_OBJS_VERSION) $(LIBMCOUNT_OBJS_VERSION): $(objdir)/version.h + + $(filter-out $(objdir)/uftrace.o, $(UFTRACE_OBJS)): $(objdir)/%.o: $(srcdir)/%.c $(COMMON_DEPS) + $(QUIET_CC)$(CC) $(UFTRACE_CFLAGS) -c -o $@ $< diff --git a/meta-oe/recipes-devtools/uftrace/uftrace_0.20.bb b/meta-oe/recipes-devtools/uftrace/uftrace_0.20.bb index 28c2186418..80878ee296 100644 --- a/meta-oe/recipes-devtools/uftrace/uftrace_0.20.bb +++ b/meta-oe/recipes-devtools/uftrace/uftrace_0.20.bb @@ -11,6 +11,8 @@ DEPENDS:append:libc-musl = " argp-standalone" SRCREV = "842ed731248a9daded38774d8fb26c7b09474461" SRC_URI = "git://github.com/namhyung/${BPN};branch=master;protocol=https;tag=v${PV} \ file://0001-include-libgen.h-for-basename.patch \ + file://0002-build-Fix-a-build-error-with-make-shuffle-for-arch-c.patch \ + file://0003-build-Fix-a-build-error-with-make-shuffle.patch \ " LDFLAGS:append:libc-musl = " -largp"