From patchwork Sat Sep 13 17:33:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 2136558 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4cPJKy2QdPz1y1Y for ; Sun, 14 Sep 2025 03:33:24 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A29EA833C9; Sat, 13 Sep 2025 17:33:19 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 1g0Dl8gyKpaN; Sat, 13 Sep 2025 17:33:18 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A5B0383518 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id A5B0383518; Sat, 13 Sep 2025 17:33:18 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id C7213117 for ; Sat, 13 Sep 2025 17:33:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id ACD41605D0 for ; Sat, 13 Sep 2025 17:33:17 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id r5h_94WbFTOg for ; Sat, 13 Sep 2025 17:33:17 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::344; helo=mail-wm1-x344.google.com; envelope-from=romain.naour@smile.fr; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 9DB5660638 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 9DB5660638 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by smtp3.osuosl.org (Postfix) with ESMTPS id 9DB5660638 for ; Sat, 13 Sep 2025 17:33:16 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id 5b1f17b1804b1-45df0cde41bso22015575e9.3 for ; Sat, 13 Sep 2025 10:33:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757784794; x=1758389594; 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=8NQngCsYBLnJQdcoPy9U8qKnFUaFA0WbxI8t5PNjGlc=; b=hMzBNjjly9BPiVhkZyWU3fum/w2jbIy+Z2111mQrRmYkS7feiqzvUNVS6KG7h7qxvm U5MpNq9Fuo+mumB/09xMjnvcf6l/SFq0piP2GQQn+DLcwauDhBS6N7k3fvSFXNVdiyGX iM3taQCDR1IpWWIry8W4wMUyVsKSkZBXxlz1XhO3WbjEbH6YNCj/YWQORv99XAV0+FPV PLf1U1B/NbVIf97N3imKJwtKFkYMUoBLiFQ3DLwYqTAirH71s+ZZksdH9Flsj+c83lvn rCS0W2v6WgMSZSzMYb+gzJLrg99nIp8UOdCiIEe6ejXKEb3vJ43r2DHD42gSPe64oLZP ICSg== X-Gm-Message-State: AOJu0YzV87yb6t8vwL9mzXQ+VJMN1sEpUmtivJhik1OU4Asrw5h9KEhV vcHsw9CTDP3IHdcF9J9zNY+GAIiIMyyi2qRdq5b6hnskh2kPG/vIRsp4sco+c7iIMU+rEpXUka6 FVY97ZS/iMQ== X-Gm-Gg: ASbGnctcBL2EzIFYuS6T2zAFvAxjsFMUey1/gj7GKIJz3tA0kT6tHBxa0+pp+6RM9nb tUQxflXC6RRFQ+3Y2HSP3D9VLvUhD+hoWD1keNCQOuSePHWkZwJ/scrbmwhHpTmPJ58hfbZ5h36 fti+ZlmkAJsbAQFLPCboAnuXAoFv7Fb9yh8xfnk0oen5Wq0ZZiCsbcRnswDvPIL1LsPl1oyi5Pi Q0TrtSq5zOMaukO/gAn9/vf8LAIb5b3BbYoeieE81rgawTSsHUIjA9GIBN0gMy1b22TJcZte8SK LpBKfYqvR8nyBfpBwXQAYlNOcQK81RV2ZqK2diO8b4CbQmXIZ6fYo0LNphXcDumaJPeKtylKk0X Qa9YL4tQui0MdNGfZ5z/cIv85KBIfBptPfxslcpXLmjsOjIlu1dsYuxO72lCpNWYkSVwIuJHzMN /fjy4GNesK8vqwffyxZNmQ X-Google-Smtp-Source: AGHT+IGoiCSQM/l04N3tb2SS3+jfV3LLZjSAWZ3C6uz8Cjn1TXN3FcX/Y/WdL0FVrz5f/0U0tws9Gw== X-Received: by 2002:a05:600c:a4b:b0:45c:b5eb:b0c6 with SMTP id 5b1f17b1804b1-45f211c856dmr74506285e9.5.1757784794227; Sat, 13 Sep 2025 10:33:14 -0700 (PDT) Received: from P-NTS-Evian.home (2a01cb0594a2a2002ad9827a59cb148a.ipv6.abo.wanadoo.fr. [2a01:cb05:94a2:a200:2ad9:827a:59cb:148a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45e0156d40esm111056805e9.1.2025.09.13.10.33.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Sep 2025 10:33:13 -0700 (PDT) To: buildroot@buildroot.org Date: Sat, 13 Sep 2025 19:33:10 +0200 Message-ID: <20250913173311.2624001-1-romain.naour@smile.fr> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1757784794; x=1758389594; darn=buildroot.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8NQngCsYBLnJQdcoPy9U8qKnFUaFA0WbxI8t5PNjGlc=; b=t3lJUzUU42Wp2oz5oGIlhu5TyyKT6NIW7n/E+0ve89FzuTIIMSv4uYUQ0XKBJWNWJr 6wkMvCunrg2Fy/6px2j37cLvDc6PvZOBMlB3aIFpnd4YuzdCUofWMjzB/5f4wZ5wod85 1nh43MmBb3wiwnzzZkyNKIHBLrrtKc6a6vv78= X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=reject dis=none) header.from=smile.fr X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (1024-bit key, unprotected) header.d=smile.fr header.i=@smile.fr header.a=rsa-sha256 header.s=google header.b=t3lJUzUU Subject: [Buildroot] [PATCH 1/2] support/testing: remove TestZfsUclibc X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Romain Naour via buildroot From: Romain Naour Reply-To: Romain Naour Cc: Romain Naour , =?utf-8?q?Jos=C3=A9_Luis_Salvador_?= =?utf-8?q?Rufo?= Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" As reported on the mailing list [1] while investigating the TestZfsUclibc Gitlab-CI failure, the python 3.13 interpreter itsef segfault at runtime: Fatal Python error: _PyThreadState_Attach: non-NULL old thread state Python runtime state: preinitialized Thread 0xSegmentation fault This issue is related to the python 3.13 version bump [2] were several internal changes were added [3] to support PEP 703 [4]. PEP 793 is about CPython’s global interpreter lock (“GIL”) removal for multi-threads support that requires a working C11 "thread_local" for thread-local storage [5]. Remove TestZfsUclibc since this issue is not related to ZFS and since we are going to disable python3 package for aarch64 uClibc-ng toolchains. Keeping TestZfsUclibc is possible by using another architecture than aarch64. But it requires to update TestZfsBase. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/11271124859 (TestZfsUclibc) [1] https://lore.kernel.org/buildroot/7a4d245d-1556-43c9-8997-6b1f791afbfe@gmail.com/ (TestZfsUclibc) [2] d63e207eb869063f82c867658676c2903beb08cb [3] https://github.com/python/cpython/commit/6e97a9647ae028facb392d12fc24973503693bd6 [4] https://peps.python.org/pep-0703/ [5] https://gcc.gnu.org/onlinedocs/gcc-15.1.0/gcc/Thread-Local.html Cc: José Luis Salvador Rufo Cc: Waldemar Brodkorb Signed-off-by: Romain Naour --- support/testing/tests/package/test_zfs.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/support/testing/tests/package/test_zfs.py b/support/testing/tests/package/test_zfs.py index 1b907ac4de..3833838e3a 100644 --- a/support/testing/tests/package/test_zfs.py +++ b/support/testing/tests/package/test_zfs.py @@ -73,16 +73,6 @@ class TestZfsGlibc(TestZfsBase): TestZfsBase.base_test_run(self) -class TestZfsUclibc(TestZfsBase): - config = TestZfsBase.config + \ - """ - BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_UCLIBC_STABLE=y - """ - - def test_run(self): - TestZfsBase.base_test_run(self) - - class TestZfsMusl(TestZfsBase): config = TestZfsBase.config + \ """ From patchwork Sat Sep 13 17:33:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 2136559 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4cPJL04nYhz1y1Y for ; Sun, 14 Sep 2025 03:33:28 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A7D40841D7; Sat, 13 Sep 2025 17:33:23 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ReJLhraloOpP; Sat, 13 Sep 2025 17:33:20 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org CFB2C841A2 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id CFB2C841A2; Sat, 13 Sep 2025 17:33:19 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists1.osuosl.org (Postfix) with ESMTP id 60D5B12D for ; Sat, 13 Sep 2025 17:33:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E13F4605D0 for ; Sat, 13 Sep 2025 17:33:17 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id QBMn-v00gL0J for ; Sat, 13 Sep 2025 17:33:17 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::344; helo=mail-wm1-x344.google.com; envelope-from=romain.naour@smile.fr; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org DE4FF60746 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org DE4FF60746 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by smtp3.osuosl.org (Postfix) with ESMTPS id DE4FF60746 for ; Sat, 13 Sep 2025 17:33:16 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id 5b1f17b1804b1-45f2313dd86so15669715e9.2 for ; Sat, 13 Sep 2025 10:33:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757784795; x=1758389595; 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=YI+5IAkJLlp5A10X8YI7dcAXy4MjQqcADSkcYb7O5rk=; b=OUc2KEIcZwhYSVknnSN06UOfYy9Uxfjlh1xVjshw1F9wE/WdE+NJyJtIA0+i+1QLF2 hDqfIlyFNGp8KmRRF6uNHqZ5dfbWf5lypPVgEpvpfA5iHKwJ5oyGoh8DYIoZf/Lqo44K mWgTPOgTG2ZTWo+YvcxI1WRKBdCGZcEufpObQ00VLiE0o+o9dOaIXVteLX9WqmQyMLuX XU9UYh244oH5VL3kHpYkw+sF8NZ5HAgKU5L2M6rClrSE4KnBlXHCtRTxxP4hZIMX4+aG YOWQw/mTuoyUreyC5SFP4q6oqAHZNysqpzkMPPrrblOCNmZyBilO/cZtYXoVrm8hvil3 vcPw== X-Gm-Message-State: AOJu0YxFSsC3NXuqC/t0gXoXPPnQljwW10sy3HdR/NLE6COqz4iqKojJ kNTOujXeGD/3cV9lEPxsv0IjEQh9YPcNIAyJFHaknDHA7O3hF+Lurj0h+x6kNU+h6XJx+EY2wan /Z0q5mlsA3g== X-Gm-Gg: ASbGncuHtee6d5j8qe/PeP8yBE97Ml+1RO6QVWs0RRA/uO8N/jsFN+f6084lzEeWIP2 6Ew+SiME4vmNpnxmpnc3fnH9C8daPuowdcVS8eC/KH+/G7L9GxxoQPtm/a/mmOnnCZ+1Ms2LdsS PwsiUEYtwro11XQlgT508fMuKPOxOv7uIoT/5GbTslCC+NLeDmLsc6Npyaya2oXWH3LpMukZT3W /L2VPy0uGQTQFN1VTjJJyCIOpI2+MWCPFBBvAmccCD0jHza2FZnD2x7InP6DkxzGfloaYCq/A8P p4kM/xArsUIzzSJBpmI7j0jkQnGIgaHB3RPoH41UpzIno/nTVthoBCnje6RSKXGdObTKipSoPsM 2Slr4dxB+sMBlTmhY3+gtZf11NRKVDJ3r7lOSn4ucdSv4ZJ6pHJE4psEnZveDbLGQuqDfo5NJNq vWlNkH3DrRrLNRQNjLdlV1 X-Google-Smtp-Source: AGHT+IFrhr16GjAcbv032OIfvmUBjLSitZmIfc8msv52BdJAxGzSFHvd1ySbM45AIx4tAkrPeGnpkA== X-Received: by 2002:a05:600c:c4aa:b0:45b:7d24:beac with SMTP id 5b1f17b1804b1-45f211d4635mr80576905e9.10.1757784794809; Sat, 13 Sep 2025 10:33:14 -0700 (PDT) Received: from P-NTS-Evian.home (2a01cb0594a2a2002ad9827a59cb148a.ipv6.abo.wanadoo.fr. [2a01:cb05:94a2:a200:2ad9:827a:59cb:148a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45e0156d40esm111056805e9.1.2025.09.13.10.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Sep 2025 10:33:14 -0700 (PDT) To: buildroot@buildroot.org Date: Sat, 13 Sep 2025 19:33:11 +0200 Message-ID: <20250913173311.2624001-2-romain.naour@smile.fr> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250913173311.2624001-1-romain.naour@smile.fr> References: <20250913173311.2624001-1-romain.naour@smile.fr> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1757784795; x=1758389595; darn=buildroot.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=YI+5IAkJLlp5A10X8YI7dcAXy4MjQqcADSkcYb7O5rk=; b=uRQFvSAZjU18PzwsZnL9FyWc/JufWtkXLrG4peXFNlRQd+RdNanvqYUJ6bmE8GFTqv Y2jqtPOh7CBh/GldUxvMQp8beMaFsx/jcZ+qY5SJeCm0+kpUyCU/m8U39mp58ivsK1XO 2seyoPGVsMl+qz6hiToJqGhKMCVtmVy3OJH7Q= X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=reject dis=none) header.from=smile.fr X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (1024-bit key) header.d=smile.fr header.i=@smile.fr header.a=rsa-sha256 header.s=google header.b=uRQFvSAZ Subject: [Buildroot] [PATCH 2/2] package/python3: do build-time detection of non-working uClibc-ng aarch64 toolchains X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Romain Naour via buildroot From: Romain Naour Reply-To: Romain Naour Cc: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" As reported on the mailing list [1] while investigating the TestZfsUclibc Gitlab-CI failure, the python 3.13 interpreter itsef segfault at runtime: Fatal Python error: _PyThreadState_Attach: non-NULL old thread state Python runtime state: preinitialized Thread 0xSegmentation fault This issue is related to the python 3.13 version bump [2] were several internal changes were added [3] to support PEP 703 [4]. PEP 793 is about CPython’s global interpreter lock (“GIL”) removal for multi-threads support that requires a working C11 "thread_local" for thread-local storage [5]. Since it's only failing on uClibc-ng on aarch64 targets, do build-time detection of non-working uClibc-ng aarch64 toolchains. Another solution would be to completely disable uClibc-ng on aarch64 targets. [1] https://lore.kernel.org/buildroot/7a4d245d-1556-43c9-8997-6b1f791afbfe@gmail.com/ (TestZfsUclibc) [2] d63e207eb869063f82c867658676c2903beb08cb [3] https://github.com/python/cpython/commit/6e97a9647ae028facb392d12fc24973503693bd6 [4] https://peps.python.org/pep-0703/ [5] https://gcc.gnu.org/onlinedocs/gcc-15.1.0/gcc/Thread-Local.html Cc: Waldemar Brodkorb Signed-off-by: Romain Naour --- package/python3/python3.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/python3/python3.mk b/package/python3/python3.mk index 1546915f08..60364421f3 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -323,3 +323,12 @@ PYTHON3_TARGET_FINALIZE_HOOKS += PYTHON3_REMOVE_OPTIMIZED_PYC_FILES ifeq ($(BR_BUILDING)$(BR2_PACKAGE_PYTHON3)$(BR2_TOOLCHAIN_USES_UCLIBC)-$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1),yyy-) $(error Python3 doesn't work with uClibc and kernel headers < 5.1. Please use a different toolchain or unselect Python3.) endif + +# Since python 3.13.x, uClibc-ng toolchain for aarch64 targets causes a +# segfault at runtime. Encoding this as a dependency in +# Config.in causes too many problems for propagating reverse +# dependencies. Therefore instead we do a build time check. +# https://lore.kernel.org/buildroot/7a4d245d-1556-43c9-8997-6b1f791afbfe@gmail.com/ +ifeq ($(BR_BUILDING)$(BR2_PACKAGE_PYTHON3)$(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_aarch64)$(BR2_aarch64_be),yyyy) +$(error Python3 doesn't work with uClibc on aarch64. Please use a different toolchain or unselect Python3.) +endif