From patchwork Thu Aug 21 06:45:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 68895 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55DB7CA0EDC for ; Thu, 21 Aug 2025 06:45:39 +0000 (UTC) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mx.groups.io with SMTP id smtpd.web10.3227.1755758732704771716 for ; Wed, 20 Aug 2025 23:45:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SxF7WLkm; spf=pass (domain: gmail.com, ip: 209.85.214.174, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-24457fe9704so5848915ad.0 for ; Wed, 20 Aug 2025 23:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755758732; x=1756363532; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=k7fpfqRpHE2OWvwpOoM/ieBRPndYsRBlmSmH6ZvEQ78=; b=SxF7WLkmetgRLYkl+C06MjVvx4fBG81liJoBOeTHGVEW+jo4vaWX6aPzBQLQAvAXy6 4w0/BHyV3xZSlVpJpv76sFZ4k1pbThUjnccpYki9TC+1b3ysF6qo6JdE228uNRzHTlqD drA0+6xd6zhvtSwH04cVlvus+L3Kn9ixtmOIvkNIVQDItmyarauDI6kCnz5yw/HrDHnr 3KpvtZbDESqQZUMRgxaoCkhkKs8rliKkXybPEBzGkH+uwLZjXyWyeUjnqMHhcSpXTIUc 8JmS71AVvuuRsJwQjyE6a5z6ewqXnL4nNA4Y3iXA9OZNdBO9OIQRucFTypoxAEbDMZ5R zkTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755758732; x=1756363532; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=k7fpfqRpHE2OWvwpOoM/ieBRPndYsRBlmSmH6ZvEQ78=; b=eVw6sLmioJvCW0xblC1LQQ/XKvva6bonWD4Jg5oEBwDBb4Oto2qIC0KhaRa4bPJ52/ A0MWPvopKEeEf9TG87rk3bIQB9Qx7xD7cMVtrkBOSRzXuQEj0KGgz9A8dRjDoK2ld2jQ Utz7aX9hekI/IfnhsXlGJxp+w3HEve9rnHNLHmPE0wO6448SHUvoXpk8wPg26Hz4HC2W UVDQZ5iWvbdgjv/PA8l/T1UDIDzdYbhV6baXVl1CnhwzPiftd32p3YVemlM7z3jkO8GJ c0p2SHY0EBwKwGt4wXPfJOTPpayxGbfsikMVFxlM7YDGLMCsd1jDEgNE3otC/kzb9Lfv ylEQ== X-Gm-Message-State: AOJu0YzGt5lE5zMrQn23VtEdLnIurai4uDyI9BJwXmG8+vfb8YgDCVsF R2FsPWXuAIL8+iq5OxGl6hEB39NpwY5BXzkRk14DdGhxcySXQrjMICXfKQUR6R/F X-Gm-Gg: ASbGncupDOIKkeRnwPk5QHKWbCFQJAiU8EEhQVpGYyBqq1HOYgSupOVaVVhD6/dlhMw 2avRp3RqEW6VLy0q+6Wfmx0zVvIsIgPujUFhWfV9JFl4rvQxsNv+3E8Hdcfne2r+ytwAdLmQhpg LWi8F3e/N1qsvbi7wOtJ2p0Ps+Dd00q7qysGOzvwjytqWhSpkZttZt/+/4EsBq8TT/atvmVMDVk ZSq8SMLjAY1gKPOgyv7LnD3wAw1XVNo3LexqJNaUY0CQZhf3UlGGMbQ/HcgIIKYf01Dkd0zaBCx xMW7pymImP6OSTS58yLHR3pEGXgDpntglZYV/ov4j0bofAmG6udHc9/m2xexqOIDePO0q1IMGa/ YCOz6WvORP68OfvEkGjMOR0Pus3AJZ5zn X-Google-Smtp-Source: AGHT+IG0PS8qIj+NVbSeUFRlF9U9kuY2r+1xc7ZxcmaxzB6ZCWcKbnROIjJ2H0p/NJVrnNTA0Csdlg== X-Received: by 2002:a17:903:4b03:b0:244:7bce:9530 with SMTP id d9443c01a7336-245fec081d6mr16170935ad.18.1755758731415; Wed, 20 Aug 2025 23:45:31 -0700 (PDT) Received: from apollo.tail3ccdd3.ts.net ([2601:646:8201:fd20::adc2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-245ed35d778sm45876685ad.49.2025.08.20.23.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 23:45:30 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH v2 1/9] m4: Fix ptest on musl Date: Wed, 20 Aug 2025 23:45:18 -0700 Message-ID: <20250821064528.754633-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 21 Aug 2025 06:45:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/222209 Fixes ../../sources/m4-1.4.20/tests/test-c32ispunct.c:261: assertion 'is == 0' failed ./test-c32ispunct.sh: line 36: 402 Aborted (core dumped) LC_ALL="$testlocale" ${CHECKER} ./test-c32ispunct${EXEEXT} 3 FAIL: test-c32ispunct.sh Signed-off-by: Khem Raj --- v2: apply the patch only for the target case meta/recipes-devtools/m4/m4-1.4.20.inc | 1 + ...unct-Check-for-musl-along-with-glibc.patch | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 meta/recipes-devtools/m4/m4/0001-test-c32ispunct-Check-for-musl-along-with-glibc.patch diff --git a/meta/recipes-devtools/m4/m4-1.4.20.inc b/meta/recipes-devtools/m4/m4-1.4.20.inc index aad57b8b649..5c4ba09288c 100644 --- a/meta/recipes-devtools/m4/m4-1.4.20.inc +++ b/meta/recipes-devtools/m4/m4-1.4.20.inc @@ -10,6 +10,7 @@ SRC_URI = "${GNU_MIRROR}/m4/m4-${PV}.tar.gz \ file://0001-gettext-h-Avoid-gcc-Wformat-security-warnings-with-d.patch \ " SRC_URI:append:class-target = " file://run-ptest \ + file://0001-test-c32ispunct-Check-for-musl-along-with-glibc.patch \ file://serial-tests-config.patch \ " diff --git a/meta/recipes-devtools/m4/m4/0001-test-c32ispunct-Check-for-musl-along-with-glibc.patch b/meta/recipes-devtools/m4/m4/0001-test-c32ispunct-Check-for-musl-along-with-glibc.patch new file mode 100644 index 00000000000..fb03e94c52d --- /dev/null +++ b/meta/recipes-devtools/m4/m4/0001-test-c32ispunct-Check-for-musl-along-with-glibc.patch @@ -0,0 +1,26 @@ +From 761aa7fab4a82dc01daa28799f4f1d6ae17a4c26 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 18 Aug 2025 11:31:32 -0700 +Subject: [PATCH] test-c32ispunct: Check for musl along with glibc + +This check crashes on musl based locales, other libcs +e.g. glibc ignore it too. + +Upstream-Status: Submitted [https://lists.gnu.org/archive/html/m4-patches/2025-08/msg00000.html] + +Signed-off-by: Khem Raj +--- + tests/test-c32ispunct.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/tests/test-c32ispunct.c ++++ b/tests/test-c32ispunct.c +@@ -255,7 +255,7 @@ main (int argc, char *argv[]) + is = for_character ("\360\235\204\200", 4); + ASSERT (is != 0); + #endif +- #if !(defined __GLIBC__ || (defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ || defined _AIX || defined __sun || defined __CYGWIN__ || (defined _WIN32 && !defined __CYGWIN__) || defined __ANDROID__) ++ #if !(defined __GLIBC__ || defined MUSL_LIBC || (defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ || defined _AIX || defined __sun || defined __CYGWIN__ || (defined _WIN32 && !defined __CYGWIN__) || defined __ANDROID__) + /* U+E003A TAG COLON */ + is = for_character ("\363\240\200\272", 4); + ASSERT (is == 0); From patchwork Thu Aug 21 06:45:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 68898 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B952CA0FE1 for ; Thu, 21 Aug 2025 06:45:39 +0000 (UTC) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mx.groups.io with SMTP id smtpd.web10.3228.1755758734540430295 for ; Wed, 20 Aug 2025 23:45:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OBIHooRZ; spf=pass (domain: gmail.com, ip: 209.85.214.178, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-24457f5b692so6804115ad.0 for ; Wed, 20 Aug 2025 23:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755758732; x=1756363532; 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; bh=V+DFe0v22BPxZL+WKHHFhqBj8d/ZgKcYCL+r7fdpH8M=; b=OBIHooRZSShnXq9qS4lZswcJMBUnJa8iec0HIJXWSwh3WT2u3I0D8aKogRTcERlZ3P 8RULiQlY13anbfd/3isi/YRJng5tpqVaK7ioBA47Vlfm0i/NS84HPZfEYs2aeGNuLsGA ZILfrhTQTx+vq8Kb3bM51VT/aAP54u9QSds9SNvzX1WLMA++PseNnK7CQfI61glL+mYe Oak15WK57YePdOImny+h5zLJlTrfml0K1edXGtZMcdfAwOPeLFbkZeUPB/DzE6ND5S+k xfrD1tyM3NgugLacpX1fvdeamc9KQSxTLEAt5Xctz3rbPdD+SIgZD+mnOnmVv6Y6au34 Xuuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755758732; x=1756363532; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V+DFe0v22BPxZL+WKHHFhqBj8d/ZgKcYCL+r7fdpH8M=; b=Q/fQdT7dtvHJJikwrktm3ugo6g3Wk8BjaNYejxz5LPoTJet9K9D1s2R8xbBDXXIuqX MxXWnQccHM170JjO+rv/VMJ/wYcZyk79zl3s/PyFqET4D4MM3b3NAfadNYQf8/OILeUb r0vv/AxboQNHJmHqZKrsqSVeA9HI9sWLEwhjZ2dNEqOl3+vzTLeeNNil/u+sqiAa8kcl ETUTLDnfK3xVkwQRqYeimjvSmwrae3RbXvIryR07h3ysBY/iK4If5mhkNI+vFu2ddUHK ykj4ocREnAuRUa+M8m//BFGBbzTRlM23IXHMHvPE15qkyRdJfJXLd1SOhl8kTRilH/Os XTqg== X-Gm-Message-State: AOJu0YxwsIgr/DGHCZ5iCWeClhjEtaFv/iQ8s2VB3j6faMRc6V0yTHS+ th/M5vQzOwjyHKmXXw3w1sdFMTJwZvCcgLheeGH/9xQgjMTiWXTvuz3T1cBXTYja X-Gm-Gg: ASbGnctxjzhOYWMT1dAC3VcqF7v+3uxq2Igl0H8URR7qpBR8H/+5rdn/vzADeGVBrzo dAgcbUQqhcAJcNnWhEFaD2VwA2zDcuLDf8KgHV4hu3P655yEycB5rPLSlzY4pgelGPHWHGGFZlE Jf0MSSXzMDA+FcP6owN5iRkRQSsSGArIYGu8hkSH7N/PsM4Vl2QXDbvKxPYZuu7zI9ThWRQm3gb VaDV/mRFpxhRqD1MUCRvFw8kC+npEatyGOutK2qy7aWO3j8qkClpdwCP6wuTwUkQh/TGbNEvf/N xTKLd8ILPXh/FrrCJdnarIAP67OMgHl+AXudWGOqagjCcm1njpAh3HvFMpxA5LjyMERwqj7ZbaA 7BC6J0iy/gSRKBRhUofyMGWmmTziht0AG X-Google-Smtp-Source: AGHT+IGQn69CW+1cbLEfMuxN0G4y/bsESsnMZ1yOvCEBb3XVFwL7EG+nWSVWGnxgmkY2xNkNCGd4fw== X-Received: by 2002:a17:902:c945:b0:246:61c:a67b with SMTP id d9443c01a7336-246061cab36mr14709015ad.58.1755758732252; Wed, 20 Aug 2025 23:45:32 -0700 (PDT) Received: from apollo.tail3ccdd3.ts.net ([2601:646:8201:fd20::adc2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-245ed35d778sm45876685ad.49.2025.08.20.23.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 23:45:31 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 2/9] lltng-tools: Fix build with lld linker Date: Wed, 20 Aug 2025 23:45:19 -0700 Message-ID: <20250821064528.754633-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250821064528.754633-1-raj.khem@gmail.com> References: <20250821064528.754633-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 21 Aug 2025 06:45:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/222211 liblttng-ctl is exposting undefined symbols which are provided by libcommon-gpl.a and is not linked into liblttng-ctl.so Signed-off-by: Khem Raj --- ...p-index-allocator-symbols-from-versi.patch | 43 +++++++++++++++++++ .../lttng/lttng-tools_2.14.0.bb | 1 + 2 files changed, 44 insertions(+) create mode 100644 meta/recipes-kernel/lttng/lttng-tools/0001-liblttng-ctl-drop-index-allocator-symbols-from-versi.patch diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-liblttng-ctl-drop-index-allocator-symbols-from-versi.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-liblttng-ctl-drop-index-allocator-symbols-from-versi.patch new file mode 100644 index 00000000000..3a535470dae --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-tools/0001-liblttng-ctl-drop-index-allocator-symbols-from-versi.patch @@ -0,0 +1,43 @@ +From adafa15a0ea145e1e98f68e2a56512e83f1f6798 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 19 Aug 2025 20:06:21 -0700 +Subject: [PATCH] liblttng-ctl: drop index allocator symbols from version + script + +The lttng_index_allocator_* functions are implemented in libcommon-gpl, +not in liblttng-ctl. Since liblttng-ctl does not link against +libcommon-gpl and does not export these symbols, referencing them in +liblttng-ctl.sym causes link failures with LLD: + + ld.lld: error: version script assignment of 'global' to symbol + 'lttng_index_allocator_alloc' failed: symbol not defined + ... + +Remove these entries from the version script to align the exported ABI +with the actual symbols provided by liblttng-ctl. + +This fixes builds with clang + lld. + +Upstream-Status: Submitted [https://review.lttng.org/c/lttng-tools/+/15156] +Change-Id: I27f40f3d38af7014cf5356230e06aa291c9a3c5f +Signed-off-by: Khem Raj +--- + src/lib/lttng-ctl/liblttng-ctl.sym | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/src/lib/lttng-ctl/liblttng-ctl.sym b/src/lib/lttng-ctl/liblttng-ctl.sym +index 27900ca44..641084750 100644 +--- a/src/lib/lttng-ctl/liblttng-ctl.sym ++++ b/src/lib/lttng-ctl/liblttng-ctl.sym +@@ -336,11 +336,6 @@ lttng_health_state + lttng_health_thread_name + lttng_health_thread_state + lttng_ht_seed +-lttng_index_allocator_alloc +-lttng_index_allocator_create +-lttng_index_allocator_destroy +-lttng_index_allocator_get_index_count +-lttng_index_allocator_release + lttng_kernel_probe_location_address_create + lttng_kernel_probe_location_address_get_address + lttng_kernel_probe_location_destroy diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb b/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb index a3faf1e758c..5bb6033b12c 100644 --- a/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb +++ b/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb @@ -52,6 +52,7 @@ SRC_URI = "https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \ file://0001-gen-ust-events-constructor-change-rpath-to-libdir-li.patch \ file://0001-eventfd.cpp-Remove-the-scope-resolution-operator.patch \ file://disable-tests2.patch \ + file://0001-liblttng-ctl-drop-index-allocator-symbols-from-versi.patch \ " SRC_URI[sha256sum] = "d8c39c26cec13b7bd82551cd52a22efc358b888e36ebcf9c1b60ef1c3a3c2fd3" From patchwork Thu Aug 21 06:45:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 68901 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73A06CA0FE2 for ; Thu, 21 Aug 2025 06:45:39 +0000 (UTC) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mx.groups.io with SMTP id smtpd.web11.3236.1755758734359101939 for ; Wed, 20 Aug 2025 23:45:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ikwwJeEB; spf=pass (domain: gmail.com, ip: 209.85.215.174, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-b4756244423so446303a12.1 for ; Wed, 20 Aug 2025 23:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755758733; x=1756363533; 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; bh=BpOn1fhrWYcMXeSkERDadtQwRb73Qv0EhwOY+3sBr9k=; b=ikwwJeEBQ6kl+TpRvmsCNUdF/lwKhC6tCRcXmHXBoWXEOF8VcnJyWMgieYmqn9OfLF hYAje1/m0SXFMlhrKujObcxXwczr5yzm/9nh9EFVqqn0vw6ZZwY/TnFQBZo8h7U67Kuf J7yUBPHNGZgCrIcqOZma9NCkkiMF//0ntgIDcy5z9xvJBBQaqPeDTUjdnMH+KZbpATmd jo0a9peVUcvf18Zd9VY2OLD6cUDxofq0LE9WCk4pyiTZpA3Ra4IofwjHbbxn3964YkNj ITeqKm+p1pzc0K/lPe7YH4iN8FoKBSViKRu2nnEt8bpjbG5JzthL4a61r/Ca7iIrsTUW lJ2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755758733; x=1756363533; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BpOn1fhrWYcMXeSkERDadtQwRb73Qv0EhwOY+3sBr9k=; b=kbW6XgWnhDp6V4gP/sHJC4njbRROKTNDDFOelob9t4VPbc7SQA46vB42s52b9CWzNa vYxrojEqeOpsq4HGPH0P6ZSI3exThQzTUn8T1QyLfK6mAjni1nx6XRuWiCm1lkOi3i41 tjLepPBNpKJNlQdySVeSq4XhYXoYGkltSb5ZpKE1Jb93cZw83ZDpRFl1WOfl9fJOTDfc YMlUeIDb9uoGB0VXvX9/+86RMyG5vGijCPJX4YSUG62ZOyy1lA0utAU8xdBmzlmaKod/ uom888e8FSuYnsfVEcZhbZm6025EhJbVCdjjyDMskXug7TBCcQCZAJ/F+lhB1Z/HAx3Q /xlw== X-Gm-Message-State: AOJu0Yz8ZQtM8hKK3UUrua7axFrTltZvoEdzQcN43yf8/gsVyHnbntSv S3TzljHmbDm0p1I68H6vyTM5kRYkhshUSCDowY5LPlwbCRMas9gUxE/xZvmQgP2B X-Gm-Gg: ASbGnctencnxhExsgSUFYYNQjcptVu+jS/4AwbPgzqOl8ISDGiyKMzBkrLvp3fppaaN 8W4OF5REHG06AMclRxbO+1LmwfKeoIPZouiuEz+GTrl+5dG8YV4bxfyois53RTSGyAkYYMYXRyw Pb3Fhd4rYo7SeVSVvGwgVXWEoebLEINUMJeHeWlSdXo7IXlE1xYR1a1t5z7X7SZscwKs+VsYYvV Syt7/i3MJxccZAvPpBuJjCRkbPGC/T+rmI9tBZeGlcQb9lMWVVouUA8j54JDV0V7EiBvzIYsAvR ikYnX5IHPyOa18LT+hNoJWUL1JwsJ1pTASOTEmkZVp+sQIN352Ukm5mjFfX0v2sulgJ7CxHRmmB cTLv00SK2PnCdubrgBzB36ftJdIv0zQeK X-Google-Smtp-Source: AGHT+IEMOCef0MMhYDkNb1DPNyrWg/DaRWN9T7lm/IEt7M7WTHjpUIV4PdXXppOb5ug8X0ysUOsynw== X-Received: by 2002:a17:902:f54e:b0:240:92cc:8fcf with SMTP id d9443c01a7336-245fedcfab5mr22348705ad.49.1755758733290; Wed, 20 Aug 2025 23:45:33 -0700 (PDT) Received: from apollo.tail3ccdd3.ts.net ([2601:646:8201:fd20::adc2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-245ed35d778sm45876685ad.49.2025.08.20.23.45.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 23:45:32 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 3/9] lttng-tools: Fix build with libcxx runtime Date: Wed, 20 Aug 2025 23:45:20 -0700 Message-ID: <20250821064528.754633-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250821064528.754633-1-raj.khem@gmail.com> References: <20250821064528.754633-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 21 Aug 2025 06:45:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/222210 Signed-off-by: Khem Raj --- .../lttng/lttng-tools/libc++.patch | 48 +++++++++++++++++++ .../lttng/lttng-tools_2.14.0.bb | 1 + 2 files changed, 49 insertions(+) create mode 100644 meta/recipes-kernel/lttng/lttng-tools/libc++.patch diff --git a/meta/recipes-kernel/lttng/lttng-tools/libc++.patch b/meta/recipes-kernel/lttng/lttng-tools/libc++.patch new file mode 100644 index 00000000000..be793c76992 --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-tools/libc++.patch @@ -0,0 +1,48 @@ +sessiond: avoid std::vector range-ctor on non-standard iterators (libc++) + +libc++ SFINAE-gates std::vector(It, It) behind standard iterator requirements. +The events_view/channels_ht_view iterators don’t model Input/Forward, so the +range constructor is not viable and the build fails under clang+libc++. +Populate the vectors via a simple loop instead, which only relies on !=, ++, +and dereference. No functional change; fixes clang/libc++ builds while keeping +libstdc++ behavior unchanged. + +Upstream-Status: Submitted [https://review.lttng.org/c/lttng-tools/+/15163] +Signed-off-by: Khem Raj + +Index: lttng-tools-2.14.0/src/bin/lttng-sessiond/ust-registry-channel.cpp +=================================================================== +--- lttng-tools-2.14.0.orig/src/bin/lttng-sessiond/ust-registry-channel.cpp ++++ lttng-tools-2.14.0/src/bin/lttng-sessiond/ust-registry-channel.cpp +@@ -529,8 +529,11 @@ void lsu::registry_channel::_accept_on_e + events_view(*_events->ht); + + /* Copy the event ptrs from the _events ht to this vector which we'll sort. */ +- std::vector sorted_event_classes( +- events_view.begin(), events_view.end()); ++ std::vector sorted_event_classes; ++ /* Avoid libc++’s range-ctor SFINAE on non-standard iterators. */ ++ for (auto it = events_view.begin(); it != events_view.end(); ++it) { ++ sorted_event_classes.push_back(*it); ++ } + + std::sort(sorted_event_classes.begin(), + sorted_event_classes.end(), +Index: lttng-tools-2.14.0/src/bin/lttng-sessiond/ust-registry-session.cpp +=================================================================== +--- lttng-tools-2.14.0.orig/src/bin/lttng-sessiond/ust-registry-session.cpp ++++ lttng-tools-2.14.0/src/bin/lttng-sessiond/ust-registry-session.cpp +@@ -586,8 +586,11 @@ void lsu::registry_session::_accept_on_s + decltype(lsu::registry_channel::_node), + &lsu::registry_channel::_node> + channels_ht_view(*_channels->ht); +- std::vector sorted_stream_classes( +- channels_ht_view.begin(), channels_ht_view.end()); ++ std::vector sorted_stream_classes; ++ /* Avoid libc++’s range-ctor SFINAE on non-standard iterators. */ ++ for (auto it = channels_ht_view.begin(); it != channels_ht_view.end(); ++it) { ++ sorted_stream_classes.push_back(*it); ++ } + + std::sort(sorted_stream_classes.begin(), + sorted_stream_classes.end(), diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb b/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb index 5bb6033b12c..89fcb6b60b1 100644 --- a/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb +++ b/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb @@ -53,6 +53,7 @@ SRC_URI = "https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \ file://0001-eventfd.cpp-Remove-the-scope-resolution-operator.patch \ file://disable-tests2.patch \ file://0001-liblttng-ctl-drop-index-allocator-symbols-from-versi.patch \ + file://libc++.patch \ " SRC_URI[sha256sum] = "d8c39c26cec13b7bd82551cd52a22efc358b888e36ebcf9c1b60ef1c3a3c2fd3" From patchwork Thu Aug 21 06:45:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 68899 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FC50CA0FE4 for ; Thu, 21 Aug 2025 06:45:39 +0000 (UTC) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mx.groups.io with SMTP id smtpd.web10.3229.1755758735738052473 for ; Wed, 20 Aug 2025 23:45:35 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aSeOJznw; spf=pass (domain: gmail.com, ip: 209.85.215.172, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-b471737b347so396541a12.1 for ; Wed, 20 Aug 2025 23:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755758735; x=1756363535; 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; bh=ZvukKaa2LAogSdBzY30Zp9BmoJJwEMw34HMlwv+eSCI=; b=aSeOJznw8ZpfYR2daxNuBLTCzWYp9yPv47u8e+Qq0poCIxwOTFIOBjUwBLMuasbL54 d3KImcrZjkvVdVsQ2KDc2p/VQmjGM5hMb1Ed7CTyb1kAX7FPx6qmieSRHtccY0Vmfrak n1Ou2r8QfudqDJF0wW4atalCuoK2wGR4BT2LfRZROwY0ppc6pJL9lzZU1BCgav+4fndF 3opbNeWBqD6lxbVg5Cp0gL8w0nZDstH6ckvVmFQC1GB7jCFfzLB8g+ZwKQw16k0Nn36P dX8up8Idu4CPiU47YVi+kLtmaxLNGbiycJN+WuilnVPlxRXzeCsRnHWMtfBQCPBXg0xu U9Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755758735; x=1756363535; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZvukKaa2LAogSdBzY30Zp9BmoJJwEMw34HMlwv+eSCI=; b=sSQIHEISQ1zuxmR1nnddqeJneHmECQ6KfPUJq6vg+LgZS9k1RlIrWNM/P88eILbOU1 lFp8DCMBpZ04T9Vrap8QK/I2g9vwOaqLNJp+leH4LZqkvh7/JSZZsvVj85A+ZuIo5SAN ycmIExJWqTZ5nD/KII4OBk0/xSKACeDWMLhlhPH8lkyGQmeTMUFnTIG2dLUjx1rhv8yZ 8Z2Wwr0J4xux6qrEQ+pq1qI0pOdLmVQPH1gNZwVHXb8ZnJWNLyF+AOJPfQG7U2TY3zwW RIWqLpNwKTA2HESuePujdS+ouz9B1jiYOKB7QeCjtBv4fSJ6v4zj0lJPWnMABgixMtGX leGQ== X-Gm-Message-State: AOJu0YzHfRnhTKheUu5ijIZsXbflNQh7gwQ52c2RgH8hzidIzOgfBY16 gtNoBNA+w365b8qvai/NCiagLN96qCAlgxL8z46j/ziJUwlojZcngwuY64yW/Zet X-Gm-Gg: ASbGncsb4BRzLqChB6BenxEXAdd3dHNx8dpZ1xwMjG3gO4ahfNb9h61vsoaoQN1nLvC TeC1wpgdDxXP4t54VP5y4Pgija8+Pn/WIG7CqNEfHmd+kg3iQdbdFPjIM9yIFUY1g08lxihedq9 Gbk/hJzlaZI+QeBIhmypQdW6k5F+HoEoJ2bVzYEBEppM86vg/sxX5cTGCxJpIO36t/xIrhAsoiq WJ8LQcDZhfkDhsz0LMRYUXIf2Ct+EBVamEpLXDq5bta6fIOwxaawlgvT42U7LL+CgZeNFfvsVJ5 /J+y9ku6MNLM8Lmb6yPVbEr2k6L2vxzVPlyiNk4HEaqgAUhATVAKTrONJROM4aTwf/RCGlKrmNu jFpi/eM8juo+zWN8lb6ODpGMXdOZsCnkB X-Google-Smtp-Source: AGHT+IGWuppRF8qiQpd87O7uikcCVGaxxIrtlbjuwnQdAUng0jV/rGSR4z2/O9byxJzWcs/pKsnoTA== X-Received: by 2002:a17:903:198e:b0:242:a0b0:3c11 with SMTP id d9443c01a7336-245fed7d247mr21195655ad.31.1755758734489; Wed, 20 Aug 2025 23:45:34 -0700 (PDT) Received: from apollo.tail3ccdd3.ts.net ([2601:646:8201:fd20::adc2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-245ed35d778sm45876685ad.49.2025.08.20.23.45.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 23:45:33 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 4/9] elfutils: Add run-backtrace-{native|data}.sh to known failures Date: Wed, 20 Aug 2025 23:45:21 -0700 Message-ID: <20250821064528.754633-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250821064528.754633-1-raj.khem@gmail.com> References: <20250821064528.754633-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 21 Aug 2025 06:45:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/222212 musl's thread startup/teardown sequences and frame-pointer handling differ from glibc. elfutils can fail to terminate unwinds properly in multithreaded musl apps which leads to truncated or bogus traces and then the test's "must contain main" assertion fails. Skip this test on musl systems Signed-off-by: Khem Raj --- meta/recipes-devtools/elfutils/elfutils_0.193.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/elfutils/elfutils_0.193.bb b/meta/recipes-devtools/elfutils/elfutils_0.193.bb index 3d98f1e2140..67ce3827827 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.193.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.193.bb @@ -66,7 +66,7 @@ PTEST_PARALLEL_MAKE = "" PTEST_XFAILS ?= "" # See - https://sourceware.org/bugzilla/show_bug.cgi?id=32232 PTEST_XFAILS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' run-strip-strmerge.sh run-elflint-self.sh run-backtrace-data.sh run-reverse-sections-self.sh', '', d)}" -PTEST_XFAILS:append:libc-musl = " run-large-elf-file.sh run-backtrace-dwarf.sh run-stack-d-test.sh run-stack-i-test.sh run-stack-demangled-test.sh run-deleted.sh run-compress-test.sh" +PTEST_XFAILS:append:libc-musl = " run-large-elf-file.sh run-backtrace-data.sh run-backtrace-dwarf.sh run-backtrace-native.sh run-stack-d-test.sh run-stack-i-test.sh run-stack-demangled-test.sh run-deleted.sh run-compress-test.sh" do_install_ptest() { # copy the files which needed by the cases From patchwork Thu Aug 21 06:45:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 68897 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 654B9CA0EFA for ; Thu, 21 Aug 2025 06:45:39 +0000 (UTC) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by mx.groups.io with SMTP id smtpd.web11.3237.1755758736223758663 for ; Wed, 20 Aug 2025 23:45:36 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nAZX8HCb; spf=pass (domain: gmail.com, ip: 209.85.215.171, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-b47174beb13so409534a12.2 for ; Wed, 20 Aug 2025 23:45:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755758735; x=1756363535; 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; bh=zveqAofo2QnTDyb81OGSPWSh+cL5j7ggY7AY4lrxLUM=; b=nAZX8HCb8m4yaGUIZZ92a0WgvZWYy/PhLRZIAznK2QcVqBic9sRBNJM2QEmwZ5syBa tvsvrTeTj3MZnNcSLj10bu81xhXYxd6i1VZUxCctr3+vvFB7B/NAvdGAvIwUCCYq8ZWB 3KjE2DcjyL8CJudRnQsFO2wCuR39vbAGbbBbIiDu4lWZzGTzPq6nIPbEE6B8/C+VIiJ3 Zf0AQgOAuZbTDxq0Mt0j19Eq/HFhEXOTOte2lEGDaxGq8wL9Ix/ICdw3OsAzInJHuwe3 +Df00I04srWpkmWuvqsQvL8EhnjzjsuRV77faD0PLQlJ+aCFVYW5wl8NCly3Zt4kIDa5 mAcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755758735; x=1756363535; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zveqAofo2QnTDyb81OGSPWSh+cL5j7ggY7AY4lrxLUM=; b=AiH2p3Nwqx/om+4liyu68qf4J0Tzwn4TQlqW+254qCnn4IGMuootMjf7neYz25A4sY IEqSEIWcefbVhvBpCcAksONb+v4YqlXIsBeP3SXkeeBYbLB4xRSWeSnBp9k1UEIxmpdo YzlcJA63xzdbRI4lMSJ0kWuaD9gf4BksFBiutWuKs8T2dJleIN05jZ5MMRQdZfZcW/K0 hTaDuU1EOq8iK4SjnHPSULEBjJjVBXMKtvLGUTxWpwG5zzPeV1cLvSNxTyWG03I4jbhu 3ZJ+8FYHcdGinvF012zn8dW2Q7Xc3OhvVcUh/BbhaO5m+6ruRg7hvupydCrA8q3SryO3 u7IA== X-Gm-Message-State: AOJu0YxohwPLaS3QOQ8nh22l199pufs0XeEGEquc+PZZe/w/vicoZtCA qvKxoDdAbMvVeOhZPBow7eJ/FPlx3bhPMZxZphafnJYjAP87nSVqXFB3gWQDYrGJ X-Gm-Gg: ASbGncvF5M69uKiG1YIUFVSjvWGKjsZh61QeILdnQ9QXt6Rj6MnZm+OSC1e1rFYmTbT L1TTW5f0D5Zmo9UMrefUSRD7w0TkBakFCMgPP9c5e/aRHeT7gBF3MspsHR4LJ+zavXPqoX6KK55 FiA8Q2mphlaxeBZQnIuMkWgppnpZAc49VucU3QwpngGIzr+FAyuCC3vFiwOuc2xSv7DI9PHOVt7 Tb6H4dzAjMGks6+sB74JemmcY8bKbzEYZJmEuIrp9gSO8twU8/yGaC0tdwgaABVQm32nkGwd8Y2 gZxl+dWfSw2zZ5csCCWuEsjFukiohTEV1WVxnP/GSmN/Hm08m2IZc2EpZurD75Fb9G0LlvWnnov YcayRK5LkXJfD/gcmX0znQA== X-Google-Smtp-Source: AGHT+IGj3+cktfitqbtPM/zDjs7HglvoMyzsHlcjHfQgjBTRDcOwZxtUleniaOUV0Ej/MSk6FcJCSw== X-Received: by 2002:a17:902:d4c1:b0:246:61f:e975 with SMTP id d9443c01a7336-246061fee14mr14918665ad.58.1755758735342; Wed, 20 Aug 2025 23:45:35 -0700 (PDT) Received: from apollo.tail3ccdd3.ts.net ([2601:646:8201:fd20::adc2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-245ed35d778sm45876685ad.49.2025.08.20.23.45.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 23:45:34 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 5/9] libc-test: Upgrade to tip of trunk Date: Wed, 20 Aug 2025 23:45:22 -0700 Message-ID: <20250821064528.754633-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250821064528.754633-1-raj.khem@gmail.com> References: <20250821064528.754633-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 21 Aug 2025 06:45:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/222213 Brings following changes functional: add mntent test fix malloc-brk-fail math: add fma(x,y,z) test cases for z=0 and x*y rounds to -0 Signed-off-by: Khem Raj --- meta/recipes-core/musl/libc-test_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/musl/libc-test_git.bb b/meta/recipes-core/musl/libc-test_git.bb index 71a111cfa43..c3b562862ac 100644 --- a/meta/recipes-core/musl/libc-test_git.bb +++ b/meta/recipes-core/musl/libc-test_git.bb @@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=43ed1245085be90dc934288117d55a3b" inherit ptest -SRCREV = "18e28496adee3d84fefdda6efcb9c5b8996a2398" +SRCREV = "f2bac7711bec93467b73bec1465579ea0b8d5071" SRC_URI = " \ git://repo.or.cz/libc-test;branch=master;protocol=https \ file://run-ptest \ From patchwork Thu Aug 21 06:45:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 68900 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57CA0CA0FE0 for ; Thu, 21 Aug 2025 06:45:39 +0000 (UTC) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mx.groups.io with SMTP id smtpd.web10.3230.1755758737416432251 for ; Wed, 20 Aug 2025 23:45:37 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lfY3Ml0I; spf=pass (domain: gmail.com, ip: 209.85.214.172, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-24457f5b692so6804485ad.0 for ; Wed, 20 Aug 2025 23:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755758736; x=1756363536; 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; bh=QfVWmlFRYukTfTd61yIF+B2gmfwr6my8Ljq0lB5D11s=; b=lfY3Ml0I981xJ254nEQFVeieo8ezNuClKSaSCX6hoDQ9HyHNJ9oZ5hm2bPEwmmBBTT pYa20UdPoIzk97+02OxqLvLGMlY7MFC5/kf1AF8nse7/hRGIvi/Lo+Y3eDYOhiRFROl8 qGh8uVseuwMa4jjqNBxGEY5tPFa3TTUMm/Ahg7Jrw75VwXNkqb7Ckp5cAP4FEhABsA3W tk5OFauI+DudPibOptos9Z6xoFXKEA4y8qzfwU5IwPPW13qnKfB8qLUh/8IK2LSej53l urHg3Asu8JU66ggqJ5vR7pfagNCukSA2hBki8BYApzukHB0vkRTR945T8/pnS1ciWhyC s/Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755758736; x=1756363536; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QfVWmlFRYukTfTd61yIF+B2gmfwr6my8Ljq0lB5D11s=; b=HmsgxrPp3/5hQlNaRXD90tBA/uJU0a/4huh/iQR6RP0FZMa1QhqmOgqn0FkOPJ7imU 4R/dKgCCuQRjPsLfmbsk/HADWE5gnc7M6yDJXL/XSvnKa912tHYisVaXCo9YFkDijWzv ybDktKJfoudSpGwtkhpTI+TQAKs6eRSfdMALtiR2AQf9jUaYgyaff8qbvv8qO2XsuoAd 7c+jeknI0PLzkjSsBXfHbGXJ4l1mgsibTYo7VEXstvbmdigxjtPjRikV84alTh0lnMqC Cj8fU4K3d27OKtz8V57uwvNUJ4WfmVkWubnpYKvJ1kG4OEsBMR2XWe+y3HsgwDHZGgtk 04zg== X-Gm-Message-State: AOJu0Yz4kmyGY7rlMbPkyz6xhUw3g84qJM51FEhlVU/yOh69Sp+8Kyhw X4wROW/htUnIV+6oWuUIz4vg8xZFhyuHJmwIcN2RcqPKsdbFUTxiLwzTklTBQWhK X-Gm-Gg: ASbGncvd7HvPWrCXR6WrB5n0Von+TwS7vwWZIOC54Jq9fYB9M9dZSg12gNK5HSszjni fb8P5fCK6oDiHdAj4OEGjDWsdBrt0cPxlfBtw0cjAO/dmDJGZszSTnFuZHG5JxyCT1dHy+GcBdX oo4SjWQWlNjikTgxSuYNlfqOBhx905peQAOQhwnSIrC9r0L9rc0p1Z/R40wzWDKnVBIEKq6JViV ZtkfZVLou1A/zdJP/qjsnVENQ5FAheCUp+qhYqyQp6cJ9hpf+gO7Nnwq9DBReYSdZEH2+f4JXJc 4CMnBvmtf8GTMYJbDru7Fx4nrLLgUfFyLbhL9fvnFe8aSa41fdaW+S1aJeZoxW//V2tTUlGjbOj B4Kp8CEzZ+9G2RMoPnjeo+g== X-Google-Smtp-Source: AGHT+IEXSIJXkIio39OxoS1UrE/Ne0vtUwNf7agE2TTShESrSxXGTApmaGlEgGemCgkEQvl28GrC+w== X-Received: by 2002:a17:902:dad0:b0:224:910:23f0 with SMTP id d9443c01a7336-245fedb88e9mr24135905ad.49.1755758736462; Wed, 20 Aug 2025 23:45:36 -0700 (PDT) Received: from apollo.tail3ccdd3.ts.net ([2601:646:8201:fd20::adc2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-245ed35d778sm45876685ad.49.2025.08.20.23.45.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 23:45:35 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 6/9] libc-test: Fix strptime and api/main tests Date: Wed, 20 Aug 2025 23:45:23 -0700 Message-ID: <20250821064528.754633-6-raj.khem@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250821064528.754633-1-raj.khem@gmail.com> References: <20250821064528.754633-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 21 Aug 2025 06:45:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/222214 Signed-off-by: Khem Raj --- .../libc-test/0001-Fix-strptime-on-musl.patch | 53 +++++++++++++++++++ ...-optional-obsolete-_PC-_SC-constants.patch | 44 +++++++++++++++ meta/recipes-core/musl/libc-test_git.bb | 4 ++ 3 files changed, 101 insertions(+) create mode 100644 meta/recipes-core/musl/libc-test/0001-Fix-strptime-on-musl.patch create mode 100644 meta/recipes-core/musl/libc-test/0001-api-unistd-guard-optional-obsolete-_PC-_SC-constants.patch diff --git a/meta/recipes-core/musl/libc-test/0001-Fix-strptime-on-musl.patch b/meta/recipes-core/musl/libc-test/0001-Fix-strptime-on-musl.patch new file mode 100644 index 00000000000..4c3a2cb21f1 --- /dev/null +++ b/meta/recipes-core/musl/libc-test/0001-Fix-strptime-on-musl.patch @@ -0,0 +1,53 @@ +From df26c5206c3234fd2df924cff7ef540af1f2077c Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 19 Aug 2025 23:11:40 -0700 +Subject: [PATCH libc-test] Fix strptime on musl +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +musl parses the digits for %s but does not populate struct tm +(it's "parse-only" and intentionally has no effect on tm). +That's why you get a zeroed-out date like 1900-01-00T00:00:00. +This is current upstream behavior: + +case 's': /* Parse only. Effect on tm is unspecified and presently no effect is implemented.. */ + +musl's strptime only accepts ±hhmm for %z (e.g., -0600). +It does not accept ±hh or ±hh:mm. So '-06' fails by design. +It can be seen that upstream only checks 4 digits after the sign. + +Upstream-Status: Submitted [https://www.openwall.com/lists/musl/2025/08/20/2] +Signed-off-by: Khem Raj +--- + AUTHORS | 1 + + src/functional/strptime.c | 4 +++- + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/AUTHORS b/AUTHORS +index cf2a394..5e78ef7 100644 +--- a/AUTHORS ++++ b/AUTHORS +@@ -6,3 +6,4 @@ Jens Gustedt + Alexander Monakov + Julien Ramseier + Alyssa Ross ++Khem Raj +diff --git a/src/functional/strptime.c b/src/functional/strptime.c +index b5f8977..f76fa68 100644 +--- a/src/functional/strptime.c ++++ b/src/functional/strptime.c +@@ -109,10 +109,12 @@ int main() { + + /* Glibc */ + checkStrptime("1856-07-10", "%F", &tm4); ++#ifdef __GLIBC__ + checkStrptime("683078400", "%s", &tm2); ++#endif + checkStrptimeTz("+0200", 2, 0); + checkStrptimeTz("-0530", -5, -30); +- checkStrptimeTz("-06", -6, 0); ++ checkStrptimeTz("-0600", -6, 0); + + return t_status; + } diff --git a/meta/recipes-core/musl/libc-test/0001-api-unistd-guard-optional-obsolete-_PC-_SC-constants.patch b/meta/recipes-core/musl/libc-test/0001-api-unistd-guard-optional-obsolete-_PC-_SC-constants.patch new file mode 100644 index 00000000000..f5685953192 --- /dev/null +++ b/meta/recipes-core/musl/libc-test/0001-api-unistd-guard-optional-obsolete-_PC-_SC-constants.patch @@ -0,0 +1,44 @@ +From 90515d553d03d1f0bec8a4bdf03d02626d3968bb Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 19 Aug 2025 23:32:52 -0700 +Subject: [PATCH] api/unistd: guard optional/obsolete *_PC/*_SC constants for + musl + +musl does not define some POSIX option macros: +- _SC_XOPEN_UUCP is obsolete and absent on musl +- _PC_TIMESTAMP_RESOLUTION is optional and may be undefined + +Build currently fails when these are referenced unconditionally. +Wrap the checks in #ifdef so the test compiles on musl without +claiming support for unavailable names. + +Upstream-Status: Submitted [https://www.openwall.com/lists/musl/2025/08/20/3] +Signed-off-by: Khem Raj +--- + src/api/unistd.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/api/unistd.c b/src/api/unistd.c +index 522ccdc..0de547b 100644 +--- a/src/api/unistd.c ++++ b/src/api/unistd.c +@@ -114,7 +114,9 @@ C(_PC_REC_MIN_XFER_SIZE) + C(_PC_REC_XFER_ALIGN) + C(_PC_SYMLINK_MAX) + C(_PC_SYNC_IO) ++#ifdef _PC_TIMESTAMP_RESOLUTION + C(_PC_TIMESTAMP_RESOLUTION) ++#endif + C(_PC_VDISABLE) + C(_SC_2_C_BIND) + C(_SC_2_C_DEV) +@@ -235,7 +237,9 @@ C(_SC_XOPEN_REALTIME_THREADS) + C(_SC_XOPEN_SHM) + C(_SC_XOPEN_STREAMS) + C(_SC_XOPEN_UNIX) ++#ifdef _SC_XOPEN_UUCP + C(_SC_XOPEN_UUCP) ++#endif + C(_SC_XOPEN_VERSION) + C(STDERR_FILENO) + C(STDIN_FILENO) diff --git a/meta/recipes-core/musl/libc-test_git.bb b/meta/recipes-core/musl/libc-test_git.bb index c3b562862ac..5ec307c25be 100644 --- a/meta/recipes-core/musl/libc-test_git.bb +++ b/meta/recipes-core/musl/libc-test_git.bb @@ -12,6 +12,8 @@ inherit ptest SRCREV = "f2bac7711bec93467b73bec1465579ea0b8d5071" SRC_URI = " \ git://repo.or.cz/libc-test;branch=master;protocol=https \ + file://0001-Fix-strptime-on-musl.patch \ + file://0001-api-unistd-guard-optional-obsolete-_PC-_SC-constants.patch \ file://run-ptest \ file://run-libc-ptests \ " @@ -33,8 +35,10 @@ RDEPENDS:${PN} = " \ RDEPENDS:${PN}-ptest = " \ ${PN} \ + locale-base-en-us \ musl-staticdev \ sed \ + tzdata \ " install_path = "/opt/${PN}" From patchwork Thu Aug 21 06:45:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 68896 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56E03CA0EF8 for ; Thu, 21 Aug 2025 06:45:39 +0000 (UTC) Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by mx.groups.io with SMTP id smtpd.web11.3238.1755758738727564109 for ; Wed, 20 Aug 2025 23:45:38 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b/2FwNVH; spf=pass (domain: gmail.com, ip: 209.85.215.176, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-b471737b347so396567a12.1 for ; Wed, 20 Aug 2025 23:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755758738; x=1756363538; 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; bh=/CFMGKCbpx9IAzczfcmA26QgT8Jw4S7sRsn0RPR0MdE=; b=b/2FwNVHcIwkMP3EVDtjm1bEu9iG65dfzaZ0M0fM6irPsxK6ndeeHtfWFf3i8iVQye KFrMQWQ5NGoKeHSx7UGOZYtcqixWZFz7/tw0za4CtHLLJaJvhv48DlhI5ULWmX6QFmfr 4RKke6qcFxiGmbUBt6TgMCHYEzdgMToSC3MH8uxDuds+bWaAhZCkHws0aEbIj6hs+jSa tll5ibujoUbdSSANmf5vPNYSQxci7kT2w0TFXM15VU8vpp/KXDM0NXCgFQK2vPgyDM1e uF9f0w6OdHUNl+ndKeWlwWHgrmfemmND8Ybnml/TTgtqhlac0Rv0BKVUrlcjspG5aRc3 g0Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755758738; x=1756363538; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/CFMGKCbpx9IAzczfcmA26QgT8Jw4S7sRsn0RPR0MdE=; b=uzRjaTie8ZyPb6sLJetdHekkvh92VhClqh+wTA5oxhKNNXC2NRgjTk6opKSAWkLSDQ 3P6Lkh57Z7B91tk1p5Xk9RMkDmp5uKrrVMRRaYmAwc5JNdyMMVgAtZViumG3sUoF8X2C 2bmahCU2OkfWfXU9IGnqif1jisgsP3NStA6+pC3+ZA7/rCe0KY/wh2AkewWekYVJjynY nlqN04c9gPMinU2WeibmxVvPJ5z4yqwXqrlvAJSoX+tHC5/UGUCUlS17AZzoB/zEVpkp 4klqFluBqPkfL4QBRN3tkfyjWI4gIGPQjNX9s1eUHHUS5b8tc8KaBS8OxV2LOB2JkP/D nsvw== X-Gm-Message-State: AOJu0YyW6uNYVgQKbBUvYIwpZLlq0aRSfLjIAQ9Ulv4wjhIkBuMemtn/ YK5sVX02O3I/opiIbW1Lh1qwn0E+/f+/sHvAtw+4w3VfTJS5tUrFak2724GJ/6Gs X-Gm-Gg: ASbGnctPIDZ8R8y8ExBCAFYKuHrtKxnXfsRQ6/UO9PPDuLqZk/f5neFnhMMZjjbbAvt +yhqJ8Gib82ZiyQhuAAqigedNh8hS1QIqKxc+LHQnRuiGvHbrhbxuyr863v19Ft/eImegVAt2Ab JcwyjE5ZeiaStH/X9n306VU96Uv3kBFa5bOkH+npLN4ydMN8ue2pFI0WbUNTZZss77/8OV4XE/I CGd8TbrQQTwBvX0Eo/KhYxXDFB6lckXRLjWOWeutSJFg44a9Z0yVH1C4q+oMqAXkn2GtfCvBFga MZ+19avkrhVfDjEdzm0dWi4TjQOgPao7+uEqUxWj5AevF8UBAKP/9BzaMKyzA1w4RLb078nTKW0 2QP6aSkCy2D3l+AnmRXn5SA== X-Google-Smtp-Source: AGHT+IGHJlctL6CvEt/num6rG8zFOZ7eECbuOPLfx4hT/ZAr1/P0yUUdBDfZv6pFvm0UuvsYDGY1BQ== X-Received: by 2002:a17:903:3884:b0:243:43a:fa20 with SMTP id d9443c01a7336-245fec0d37dmr19649545ad.24.1755758737643; Wed, 20 Aug 2025 23:45:37 -0700 (PDT) Received: from apollo.tail3ccdd3.ts.net ([2601:646:8201:fd20::adc2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-245ed35d778sm45876685ad.49.2025.08.20.23.45.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 23:45:36 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 7/9] libc-test: Ignore fma math tests Date: Wed, 20 Aug 2025 23:45:24 -0700 Message-ID: <20250821064528.754633-7-raj.khem@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250821064528.754633-1-raj.khem@gmail.com> References: <20250821064528.754633-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 21 Aug 2025 06:45:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/222215 Signed-off-by: Khem Raj --- .../0001-math-Delete-failing-tests.patch | 291 ++++++++++++++++++ meta/recipes-core/musl/libc-test_git.bb | 1 + 2 files changed, 292 insertions(+) create mode 100644 meta/recipes-core/musl/libc-test/0001-math-Delete-failing-tests.patch diff --git a/meta/recipes-core/musl/libc-test/0001-math-Delete-failing-tests.patch b/meta/recipes-core/musl/libc-test/0001-math-Delete-failing-tests.patch new file mode 100644 index 00000000000..96ff279fa6c --- /dev/null +++ b/meta/recipes-core/musl/libc-test/0001-math-Delete-failing-tests.patch @@ -0,0 +1,291 @@ +From c46b87834ad13c8e1b8f4ae1655773fc946c98e5 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 20 Aug 2025 12:41:26 -0700 +Subject: [PATCH] math: Delete failing tests + +These tests are regularly failing due ot fenv +issue on musl but its not prioritized enough +in musl. Ignore them for now. + +Upstream-Status: Inappropriate [musl-specific] + +Signed-off-by: Khem Raj +--- + src/math/fma.c | 47 -------------------------------------------- + src/math/fmaf.c | 47 -------------------------------------------- + src/math/fmal.c | 52 ------------------------------------------------- + src/math/powf.c | 47 -------------------------------------------- + src/math/yn.c | 43 ---------------------------------------- + 5 files changed, 236 deletions(-) + delete mode 100644 src/math/fma.c + delete mode 100644 src/math/fmaf.c + delete mode 100644 src/math/fmal.c + delete mode 100644 src/math/powf.c + delete mode 100644 src/math/yn.c + +diff --git a/src/math/fma.c b/src/math/fma.c +deleted file mode 100644 +index 24b65c8..0000000 +--- a/src/math/fma.c ++++ /dev/null +@@ -1,47 +0,0 @@ +-#include +-#include +-#include "mtest.h" +- +-static struct ddd_d t[] = { +-#include "sanity/fma.h" +-#include "special/fma.h" +-}; +- +-int main(void) +-{ +- #pragma STDC FENV_ACCESS ON +- double y; +- float d; +- int e, i, err = 0; +- struct ddd_d *p; +- +- for (i = 0; i < sizeof t/sizeof *t; i++) { +- p = t + i; +- +- if (p->r < 0) +- continue; +- fesetround(p->r); +- feclearexcept(FE_ALL_EXCEPT); +- y = fma(p->x, p->x2, p->x3); +- e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); +- +- /* do not check inexact by default */ +-#if defined CHECK_INEXACT || defined CHECK_INEXACT_OMISSION +- if (!checkexceptall(e, p->e, p->r)) { +-#else +- if (!checkexceptall(e|INEXACT, p->e|INEXACT, p->r)) { +-#endif +- printf("%s:%d: bad fp exception: %s fma(%a,%a,%a)=%a, want %s", +- p->file, p->line, rstr(p->r), p->x, p->x2, p->x3, p->y, estr(p->e)); +- printf(" got %s\n", estr(e)); +- err++; +- } +- d = ulperr(y, p->y, p->dy); +- if (!checkcr(y, p->y, p->r)) { +- printf("%s:%d: %s fma(%a,%a,%a) want %a got %a ulperr %.3f = %a + %a\n", +- p->file, p->line, rstr(p->r), p->x, p->x2, p->x3, p->y, y, d, d-p->dy, p->dy); +- err++; +- } +- } +- return !!err; +-} +diff --git a/src/math/fmaf.c b/src/math/fmaf.c +deleted file mode 100644 +index c4329a2..0000000 +--- a/src/math/fmaf.c ++++ /dev/null +@@ -1,47 +0,0 @@ +-#include +-#include +-#include "mtest.h" +- +-static struct fff_f t[] = { +-#include "sanity/fmaf.h" +-#include "special/fmaf.h" +-}; +- +-int main(void) +-{ +- #pragma STDC FENV_ACCESS ON +- float y; +- float d; +- int e, i, err = 0; +- struct fff_f *p; +- +- for (i = 0; i < sizeof t/sizeof *t; i++) { +- p = t + i; +- +- if (p->r < 0) +- continue; +- fesetround(p->r); +- feclearexcept(FE_ALL_EXCEPT); +- y = fmaf(p->x, p->x2, p->x3); +- e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); +- +- /* do not check inexact by default */ +-#if defined CHECK_INEXACT || defined CHECK_INEXACT_OMISSION +- if (!checkexceptall(e, p->e, p->r)) { +-#else +- if (!checkexceptall(e|INEXACT, p->e|INEXACT, p->r)) { +-#endif +- printf("%s:%d: bad fp exception: %s fmaf(%a,%a,%a)=%a, want %s", +- p->file, p->line, rstr(p->r), p->x, p->x2, p->x3, p->y, estr(p->e)); +- printf(" got %s\n", estr(e)); +- err++; +- } +- d = ulperrf(y, p->y, p->dy); +- if (!checkcr(y, p->y, p->r)) { +- printf("%s:%d: %s fmaf(%a,%a,%a) want %a got %a ulperr %.3f = %a + %a\n", +- p->file, p->line, rstr(p->r), p->x, p->x2, p->x3, p->y, y, d, d-p->dy, p->dy); +- err++; +- } +- } +- return !!err; +-} +diff --git a/src/math/fmal.c b/src/math/fmal.c +deleted file mode 100644 +index 791d5d3..0000000 +--- a/src/math/fmal.c ++++ /dev/null +@@ -1,52 +0,0 @@ +-#include +-#include +-#include "mtest.h" +- +-static struct lll_l t[] = { +-#if LDBL_MANT_DIG == 53 +-#include "sanity/fma.h" +-#include "special/fma.h" +-#elif LDBL_MANT_DIG == 64 +-#include "sanity/fmal.h" +-#include "special/fmal.h" +-#endif +-}; +- +-int main(void) +-{ +- #pragma STDC FENV_ACCESS ON +- long double y; +- float d; +- int e, i, err = 0; +- struct lll_l *p; +- +- for (i = 0; i < sizeof t/sizeof *t; i++) { +- p = t + i; +- +- if (p->r < 0) +- continue; +- fesetround(p->r); +- feclearexcept(FE_ALL_EXCEPT); +- y = fmal(p->x, p->x2, p->x3); +- e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); +- +- /* do not check inexact by default */ +-#if defined CHECK_INEXACT || defined CHECK_INEXACT_OMISSION +- if (!checkexceptall(e, p->e, p->r)) { +-#else +- if (!checkexceptall(e|INEXACT, p->e|INEXACT, p->r)) { +-#endif +- printf("%s:%d: bad fp exception: %s fmal(%La,%La,%La)=%La, want %s", +- p->file, p->line, rstr(p->r), p->x, p->x2, p->x3, p->y, estr(p->e)); +- printf(" got %s\n", estr(e)); +- err++; +- } +- d = ulperrl(y, p->y, p->dy); +- if (!checkcr(y, p->y, p->r)) { +- printf("%s:%d: %s fmal(%La,%La,%La) want %La got %La ulperr %.3f = %a + %a\n", +- p->file, p->line, rstr(p->r), p->x, p->x2, p->x3, p->y, y, d, d-p->dy, p->dy); +- err++; +- } +- } +- return !!err; +-} +diff --git a/src/math/powf.c b/src/math/powf.c +deleted file mode 100644 +index 4778c2f..0000000 +--- a/src/math/powf.c ++++ /dev/null +@@ -1,47 +0,0 @@ +-#include +-#include +-#include "mtest.h" +- +-static struct ff_f t[] = { +-#include "ucb/powf.h" +-#include "sanity/powf.h" +-#include "special/powf.h" +- +-}; +- +-int main(void) +-{ +- #pragma STDC FENV_ACCESS ON +- float y; +- float d; +- int e, i, err = 0; +- struct ff_f *p; +- +- for (i = 0; i < sizeof t/sizeof *t; i++) { +- p = t + i; +- +- if (p->r < 0) +- continue; +- fesetround(p->r); +- feclearexcept(FE_ALL_EXCEPT); +- y = powf(p->x, p->x2); +- e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); +- +- if (!checkexcept(e, p->e, p->r)) { +- if (fabsf(y) < 0x1p-126f && (e|INEXACT) == (INEXACT|UNDERFLOW)) +- printf("X "); +- else +- err++; +- printf("%s:%d: bad fp exception: %s powf(%a,%a)=%a, want %s", +- p->file, p->line, rstr(p->r), p->x, p->x2, p->y, estr(p->e)); +- printf(" got %s\n", estr(e)); +- } +- d = ulperrf(y, p->y, p->dy); +- if (!checkulp(d, p->r)) { +- printf("%s:%d: %s powf(%a,%a) want %a got %a ulperr %.3f = %a + %a\n", +- p->file, p->line, rstr(p->r), p->x, p->x2, p->y, y, d, d-p->dy, p->dy); +- err++; +- } +- } +- return !!err; +-} +diff --git a/src/math/yn.c b/src/math/yn.c +deleted file mode 100644 +index 244dbb8..0000000 +--- a/src/math/yn.c ++++ /dev/null +@@ -1,43 +0,0 @@ +-#define _XOPEN_SOURCE 700 +-#include +-#include +-#include "mtest.h" +- +-static struct di_d t[] = { +-#include "sanity/yn.h" +-#include "special/yn.h" +-}; +- +-int main(void) +-{ +- #pragma STDC FENV_ACCESS ON +- double y; +- float d; +- int e, i, err = 0; +- struct di_d *p; +- +- for (i = 0; i < sizeof t/sizeof *t; i++) { +- p = t + i; +- +- if (p->r < 0) +- continue; +- fesetround(p->r); +- feclearexcept(FE_ALL_EXCEPT); +- y = yn(p->i, p->x); +- e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); +- +- if (!checkexcept(e, p->e, p->r)) { +- printf("%s:%d: bad fp exception: %s yn(%lld, %a)=%a, want %s", +- p->file, p->line, rstr(p->r), p->i, p->x, p->y, estr(p->e)); +- printf(" got %s\n", estr(e)); +- err++; +- } +- d = ulperr(y, p->y, p->dy); +- if ((!(p->x < 0) && !checkulp(d, p->r)) || (p->x < 0 && !isnan(y) && y != -inf)) { +- printf("%s:%d: %s yn(%lld, %a) want %a got %a, ulperr %.3f = %a + %a\n", +- p->file, p->line, rstr(p->r), p->i, p->x, p->y, y, d, d-p->dy, p->dy); +- err++; +- } +- } +- return !!err; +-} diff --git a/meta/recipes-core/musl/libc-test_git.bb b/meta/recipes-core/musl/libc-test_git.bb index 5ec307c25be..9d159ea9d27 100644 --- a/meta/recipes-core/musl/libc-test_git.bb +++ b/meta/recipes-core/musl/libc-test_git.bb @@ -14,6 +14,7 @@ SRC_URI = " \ git://repo.or.cz/libc-test;branch=master;protocol=https \ file://0001-Fix-strptime-on-musl.patch \ file://0001-api-unistd-guard-optional-obsolete-_PC-_SC-constants.patch \ + file://0001-math-Delete-failing-tests.patch \ file://run-ptest \ file://run-libc-ptests \ " From patchwork Thu Aug 21 06:45:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 68903 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A5DECA0EFA for ; Thu, 21 Aug 2025 06:45:49 +0000 (UTC) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mx.groups.io with SMTP id smtpd.web11.3239.1755758739855272254 for ; Wed, 20 Aug 2025 23:45:39 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VY79QFnh; spf=pass (domain: gmail.com, ip: 209.85.214.169, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-24458263458so6240915ad.3 for ; Wed, 20 Aug 2025 23:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755758739; x=1756363539; 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; bh=4iQv02zNs012iJqYv8lpLKS3vZvlE+KdrjKKkXyVDGU=; b=VY79QFnhAAZEDGcnhKdi+TFeWKQkNrTYEDlV8NnFD0wGbGsc+cGtZacFfmT9dptvJE NcFluECTYl8YjsvhbtR6xDQ1KTpoJmgMyMGLFL+oyvD/w1g49eX3kbh0k5A72GFmD8Aq +FZ3X0s6xVX0gUIlJMLz5aBLt9LoXKLOeWcs5iRXohmEiHUCBPC0ofZoXI1nKfZkfSxu mkw6SqSvN2vZnaKzP7f4mHi95ztmCOAOe5lMxqU4LHPFXcYO29QfxRbLQjvNeHxOyuLE Gyf3N6SuV7pR6zRIvjWaGqKWowCOl2JgvfGHq7cgJc5JnUBwaH1IVrHpKi67aln5IVE6 CLUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755758739; x=1756363539; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4iQv02zNs012iJqYv8lpLKS3vZvlE+KdrjKKkXyVDGU=; b=lmiWA/smEvliRK3kDo/FHjpauxpiZX/av0jFW2spMuWNTbOPQZV16YOMm+o/jZ4qJU Jlrm/jM2MXO+ObJv6vBTLV7AdTLo4LJnOY7jN5fjrnZVjscS3sLpgZwKr2XLV98pZh0s 77c9Fd2lGM+ZuF1scgjBH6v+wFyLoaWRYgz7uvGeIQy3PITgLW0WrDN11AwVOUWpaV1F rKMYvNAq1yBXy7LkIca7GPSXUlkkKc9yVBy7SSstqsnb2QOqck8YuHFXMHXxQ8s6gNvR qofi5Wl6WoCg4kV8jX2Yk3h4uE+kw77aIqRriXKaMT0mYsronY940X1/4ijwk6rW/Chp bhLQ== X-Gm-Message-State: AOJu0YxmZvZndHrqYLdKJykSx+NPXSzZrlV1/BuZdjmkHFKJzb2diK1F tqcI6n37v1I/MMXHw61m2Yoot/UexiOHiNoXuvymSVAVMI5Q25ULsHOTl1HRD8I/ X-Gm-Gg: ASbGncu0tlH+iqZOX3UHNdVzROMOQ1E8g5he2k7HP9ZfJDcaelIR2Jkaoe5+xT/sCjg LWBHbOK20TBl/TmW9pdefuzLMU2FfpDPCpnh9CU6/WpxMj8eNf/rn2CcT0H4O+bfcNErnL1bs/C 2oWArLA+HdhqkEN22h1+QOnCVtDB6Gxuzpxa1YiLadCB/DCMPHVyrBHyurcExt+SG3qJCtwzRDD CFWuqLPGCKJ5oQvjzMSsj0qpm8hnkY5y1uqS/8b1Xh8GzxmScE1QYKffY3Alv9tHDcqGuyUKnPa 25D+QCEa0EnLjyASY09fcYa8YLAwU34xjHUy5AH3qXIR2edoEVcSN+GGIW4BDpRQ6zeMOD8hFOw 9lSLUEyBkBs+2qTZ3EL0aP3wmMSj2Z6XO X-Google-Smtp-Source: AGHT+IG8lIrWGrX4TCcEtaUthTVDUe6HLIj1/ckLv+SzZ5STv8Uxwmee+izvKYEeY6nE/8Rw1eSFqA== X-Received: by 2002:a17:902:c408:b0:243:6d9:aa2e with SMTP id d9443c01a7336-245ff87bd23mr18085685ad.53.1755758738934; Wed, 20 Aug 2025 23:45:38 -0700 (PDT) Received: from apollo.tail3ccdd3.ts.net ([2601:646:8201:fd20::adc2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-245ed35d778sm45876685ad.49.2025.08.20.23.45.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 23:45:38 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 8/9] python3: Pass PLATFORM_TRIPLET explicitly when cross compiling Date: Wed, 20 Aug 2025 23:45:25 -0700 Message-ID: <20250821064528.754633-8-raj.khem@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250821064528.754633-1-raj.khem@gmail.com> References: <20250821064528.754633-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 21 Aug 2025 06:45:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/222216 Do not rely on how python detects the platform triplet We have been lucky to get it cross-compiling since our build hosts are also using glibc, so the headers and gcc install locations match and the values it detects are mostly what we will need for glibc based targets, but when we use musl e.g. the problems show up where python3 is not able to automitically discover python modules so any python package having compiled .so modules fail to load. Example is ptest failures with TCLIBC = "musl" and running core-image-ptest-python3-rpds-py This is revamp of patch [1], currently its working for glibc based cross-compiling because we build on linux systems which are also glibc based, but python on musl shows the problem. When python was upgraded to 3.12 [2], this patch was wrongly dropped and sadly regression went unnoticed, without this patch Python's automatic module discovery does not work when it is cross-compiled this is because it tries host tools and compiler installation during configure to detect it. .so modules e.g. modulename.cpython-*.so are not seen as a result. This is seen when running python3-rpds-py ptests where it should load rpds.cpython-313-x86_64-linux-musl.so rpds.so but it does not and the module test fail. root@qemux86-64:/usr/lib/python3-rpds-py/ptest# python3 -c " import sysconfig import importlib.machinery print('Extension suffixes:', importlib.machinery.EXTENSION_SUFFIXES) print('Soabi:', sysconfig.get_config_var('SOABI')) print('Ext suffix:', sysconfig.get_config_var('EXT_SUFFIX')) print('Module suffix:', sysconfig.get_config_var('SO')) " Extension suffixes: ['.cpython-313.so', '.abi3.so', '.so'] Soabi: cpython-313 Ext suffix: .cpython-313.so Module suffix: None And after fix it is. root@qemux86-64:~# python3 -c " import sysconfig import importlib.machinery print('Extension suffixes:', importlib.machinery.EXTENSION_SUFFIXES) print('Soabi:', sysconfig.get_config_var('SOABI')) print('Ext suffix:', sysconfig.get_config_var('EXT_SUFFIX')) print('Module suffix:', sysconfig.get_config_var('SO')) " Extension suffixes: ['.cpython-313-x86_64-linux-musl.so', '.abi3.so', '.so'] Soabi: cpython-313-x86_64-linux-musl Ext suffix: .cpython-313-x86_64-linux-musl.so Module suffix: None [1] https://git.openembedded.org/openembedded-core/commit/?id=407744b00d702e3133304e1b43064a5634ca02cf [2] https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 Signed-off-by: Khem Raj --- meta/recipes-devtools/python/python3_3.13.7.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3_3.13.7.bb b/meta/recipes-devtools/python/python3_3.13.7.bb index e9eb6109490..81d034bec6b 100644 --- a/meta/recipes-devtools/python/python3_3.13.7.bb +++ b/meta/recipes-devtools/python/python3_3.13.7.bb @@ -86,7 +86,7 @@ DEPENDS:append:class-nativesdk = " python3-native" EXTRA_OECONF = " --without-ensurepip --enable-shared --with-platlibdir=${baselib} --with-system-expat" EXTRA_OECONF:append:class-native = " --bindir=${bindir}/${PN}" -EXTRA_OECONF:append:class-target = " --with-build-python=nativepython3" +EXTRA_OECONF:append:class-target = " --with-build-python=nativepython3 PLATFORM_TRIPLET=${HOST_ARCH}-${HOST_OS}" EXTRA_OECONF:append:class-nativesdk = " --with-build-python=nativepython3" export CROSSPYTHONPATH = "${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/" From patchwork Thu Aug 21 06:45:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 68902 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79BB7CA0EF8 for ; Thu, 21 Aug 2025 06:45:49 +0000 (UTC) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mx.groups.io with SMTP id smtpd.web10.3231.1755758741183143415 for ; Wed, 20 Aug 2025 23:45:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=U/8vnBzo; spf=pass (domain: gmail.com, ip: 209.85.214.173, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2445826fd9dso7793655ad.3 for ; Wed, 20 Aug 2025 23:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755758740; x=1756363540; 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; bh=YsazSvrC+YIY9t8Dq1EY1tL7jVpP0b5rOkOXy2GubbM=; b=U/8vnBzooREd/3dApPirh0rdBUkRJ3OVAH4jJd5lf4+MiZ5oWLzIFQhfluAD3Oxq82 YEsz9UVnP62VvrbIlG/iFZzn2qdrHvWn/kFwfxzIMMqWpeVawDpNR7iWbRRLVaiw6bMt ZWSo/Eblms9NaK1dyAsq4DQQhawfIBJrnOMzNNWjinyCgUypaefSWNhIvGvXiqSzQZUQ KQxfftqcDTAcMajdWtYR865vW1ZyGApN7WmQLqLNlKQVljaTURXNh2w/3cLX+bDodfT7 49tfajLB0hxxS0zKYqICrgaxh6e1ZhPC+4qvt95oVng0StJ3yVLQ7Id5byvSvk0NKh2e zwbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755758740; x=1756363540; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YsazSvrC+YIY9t8Dq1EY1tL7jVpP0b5rOkOXy2GubbM=; b=oF4QOLaAnUERlyT6AfY8Mh/BafiZdH9MB3PsbyMF7hlJ/Nxi89GAinXqR0zjGwVboK GS8CEv6nO4LmdIb5rkMMz0+UGlFEwPSZ98t27r2qpKp0dCBQAJyvPnSmPtXTP2n5RmT8 xBhVRJA0IAGMXsqcxjAbPkS6f8jzUM8+Hmr7ZJqqYTvH+VR3jHDn+PzmVsrZ50TgoqmB WOQTFhEX2QS4/0fg9PXipjVZm6CT/5som3jVboW4mCdYQaJiMeg/TqfcCfq0xhJfbfOH tocIQzGbaIa2EN8TGYwh8L0+Rk++zd8WpXvSnMZsx8o4CHh6UZNQpnzsYI4O9MCWWece 2vRQ== X-Gm-Message-State: AOJu0YwMlqoon5AK21kgIgcQslRpSqDGJlbu5ZDmGcNk7WcjErfBaJA9 3ie5wVo3PxPDCPbKQnVzTe61CSw9ISlIrEFSJJ1BT8RGkfDk6XBi6fUyZS116jFW X-Gm-Gg: ASbGncsVHN2onGI70D8nzdPxDZUEFNaf4WL3QYNEeNOjlw2BTFJ14JuPlVKba5biLMa EtZHNgYSXN4eKiVah27ePG8axpBBc+r6LQdZD/qAdEnXtTBicgmlUQVRxA1teGl3Uwnetf/6Abp ecfgOZRLpCiy8xzzhsBL6mPGSh9YUi34BEgBCdSyNQwvn2gAnzYkRe30ovSmsI2WYSO5gvRV1vc 0URDQvsWXw+koehOkP4ojoFnEJ5WLoBuX4y4G9Ms8m+mzodoW+wEbfhTs7zoZbtZSzTZO08AnMm oztFRyjD1S42urPA3iOWaKV7OVmxHEC9AiteTkP3Oihfia7eikQPuN4Q2KOUaWZhx/0vi9BVUMB rzPUeoX0c/RyFGBr/NenfRw== X-Google-Smtp-Source: AGHT+IHrXnsKVSvNI2YEK+bhACMU+sxTjnlKk4y+4TcevxS+6B+gxzxQTWrdOJsBxovuoU7la5Snfg== X-Received: by 2002:a17:903:124c:b0:224:23be:c569 with SMTP id d9443c01a7336-245fec03a92mr16897235ad.22.1755758740250; Wed, 20 Aug 2025 23:45:40 -0700 (PDT) Received: from apollo.tail3ccdd3.ts.net ([2601:646:8201:fd20::adc2]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-245ed35d778sm45876685ad.49.2025.08.20.23.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 23:45:39 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 9/9] python3-rpds-py: Upgrade to 0.27.0 Date: Wed, 20 Aug 2025 23:45:26 -0700 Message-ID: <20250821064528.754633-9-raj.khem@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250821064528.754633-1-raj.khem@gmail.com> References: <20250821064528.754633-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 21 Aug 2025 06:45:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/222217 Allow packaging of wheels for riscv64 architecture Signed-off-by: Khem Raj --- .../{python3-rpds-py_0.26.0.bb => python3-rpds-py_0.27.0.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-devtools/python/{python3-rpds-py_0.26.0.bb => python3-rpds-py_0.27.0.bb} (85%) diff --git a/meta/recipes-devtools/python/python3-rpds-py_0.26.0.bb b/meta/recipes-devtools/python/python3-rpds-py_0.27.0.bb similarity index 85% rename from meta/recipes-devtools/python/python3-rpds-py_0.26.0.bb rename to meta/recipes-devtools/python/python3-rpds-py_0.27.0.bb index 3fd7701f8d3..ca2122f8df5 100644 --- a/meta/recipes-devtools/python/python3-rpds-py_0.26.0.bb +++ b/meta/recipes-devtools/python/python3-rpds-py_0.27.0.bb @@ -4,7 +4,7 @@ HOMEPAGE = "https://pypi.org/project/rpds-py/" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=7767fa537c4596c54141f32882c4a984" -SRC_URI[sha256sum] = "20dae58a859b0906f0685642e591056f1e787f3a8b39c8e8749a45dc7d26bdb0" +SRC_URI[sha256sum] = "8b23cf252f180cda89220b378d917180f29d313cd6a07b2431c0d3b776aae86f" require ${BPN}-crates.inc