From mboxrd@z Thu Jan 1 00:00:00 1970 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 smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8B481C5DF8C for ; Sun, 23 Aug 2026 19:19:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 1E6896061B; Sun, 23 Aug 2026 19:19:41 +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 KYFEIUTQf1Kx; Sun, 23 Aug 2026 19:19:40 +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-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org; s=default; t=1787512780; bh=9T5xtq2Mc6FlT7qrwP5lyuymBBenkw9MVkoz1AJ0bYY=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=DzHD7i4OkiLc5Wt4yMk1yR9kvfjtmnSl/QFyrwLtFwAVINLe8bkZXcWOTqth5aTtf SdohdMMqYZnpYzRa9G0pjQSVqu1UHSiRuicfFXrclEAe/wnxGgdCrFb5mFeM1MqdOf v3neieGopVOYaKScdhNfWQW6Y+bJxT45oNxLQztfackXgwfE4y9onbxU1vJ/mYLXA5 P6bl4m128Mgcm/gHR9YwcRWKfE8R81Tc6EanhNs6yIGyBTT23A96+Db51oqccduPlM yBhLNWtawYY+jQk9d6VGkcX+a4maqLKym8bax0uway4DrWxWfy4k2q0T5qNR0IS3KN fziAe8e5y5tyA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id E7B89606C5; Sun, 23 Aug 2026 19:19:39 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id 13EDA42B for ; Sun, 23 Aug 2026 19:19:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 05D63606C5 for ; Sun, 23 Aug 2026 19:19:39 +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 xF5YGZ_nutOH for ; Sun, 23 Aug 2026 19:19:38 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.246.85.4; helo=smtpout-03.galae.net; envelope-from=thomas.petazzoni@bootlin.com; receiver= Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by smtp3.osuosl.org (Postfix) with ESMTPS id DFC206061B for ; Sun, 23 Aug 2026 19:19:36 +0000 (UTC) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 803044E41372; Sun, 23 Aug 2026 19:19:34 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 4EC6760378; Sun, 23 Aug 2026 19:19:34 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 57A7C11C7853B; Sun, 23 Aug 2026 21:19:28 +0200 (CEST) To: buildroot@buildroot.org Cc: Thomas Petazzoni , Romain Naour , Giulio Benetti , Romain Naour Date: Sun, 23 Aug 2026 21:19:25 +0200 Message-ID: <20260823191926.2684260-1-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 Subject: [Buildroot] [PATCH] toolchain/Config.in: refine BR2_TOOLCHAIN_HAS_LIBQUADMATH definition 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: , From: Thomas Petazzoni via buildroot Reply-To: Thomas Petazzoni Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" In commit a2380157f6688c5c065fa19060a2c33145bab95b ("toolchain: enable libquadmath for PowerPC with VSX"), the definition of BR2_TOOLCHAIN_HAS_LIBQUADMATH has been extended to also be true when BR2_POWERPC_CPU_HAS_VSX. However, practical experiments show that when 64-bit VSX-capable cores are used in 32-bit mode, libquadmath is not built by GCC, causing build failures: cp: cannot stat '/home/autobuild/autobuild/instance-3/output-1/host/powerpc-buildroot-linux-musl/lib*/libquadmath*': No such file or directory We did an extensive testing, building the 27 combinations of: - GCC versions: 14, 15, 16 - C library: glibc, uclibc, musl - PowerPC 32-bit, PowerPC 64-bit, PowerPC 64-bit little endian This testing provides the following results: | gcc14 | powerpc64 | glibc | OK | | gcc14 | powerpc64le | glibc | OK | | gcc14 | powerpc64le | musl | OK | | gcc14 | powerpc64le | uclibc | SKIPPED | | gcc14 | powerpc64 | musl | OK | | gcc14 | powerpc64 | uclibc | SKIPPED | | gcc14 | powerpc | glibc | FAILED | | gcc14 | powerpc | musl | FAILED | | gcc14 | powerpc | uclibc | FAILED | | gcc15 | powerpc64 | glibc | OK | | gcc15 | powerpc64le | glibc | OK | | gcc15 | powerpc64le | musl | OK | | gcc15 | powerpc64le | uclibc | SKIPPED | | gcc15 | powerpc64 | musl | OK | | gcc15 | powerpc64 | uclibc | SKIPPED | | gcc15 | powerpc | glibc | FAILED | | gcc15 | powerpc | musl | FAILED | | gcc15 | powerpc | uclibc | FAILED | | gcc16 | powerpc64 | glibc | OK | | gcc16 | powerpc64le | glibc | OK | | gcc16 | powerpc64le | musl | OK | | gcc16 | powerpc64le | uclibc | SKIPPED | | gcc16 | powerpc64 | musl | OK | | gcc16 | powerpc64 | uclibc | SKIPPED | | gcc16 | powerpc | glibc | FAILED | | gcc16 | powerpc | musl | FAILED | | gcc16 | powerpc | uclibc | FAILED | The "SKIPPED" are when the configuration is not possible: uClibc doesn't support powerpc64 or powerpc64le. Then, as we can see, the build fails for all "powerpc" configuration. Our conclusion is therefore that libquadmath is not supported on PowerPC 32-bit. While we were not able to find direct evidence in the gcc code base, this practical experiment shows that is simply doesn't work on PowerPC 32-bit. So, we take the logical action of adjusting BR2_TOOLCHAIN_HAS_LIBQUADMATH so that it is true only on powerpc64/powerpc64le. Fixes: https://autobuild.buildroot.org/results/46d435c9f5086a8695f4f6cd4026bb0d194de13c/ Cc: Romain Naour Signed-off-by: Thomas Petazzoni --- toolchain/Config.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolchain/Config.in b/toolchain/Config.in index 7762106bee..128f8faef2 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -989,12 +989,12 @@ config BR2_TOOLCHAIN_HAS_ATOMIC # - At least, libquadmath is available on: # - i*86 # - x86_64 -# - PowerPC with vector scalar (VSX) instruction set +# - PowerPC64 with vector scalar (VSX) instruction set # - When available, libquadmath requires wchar support. config BR2_TOOLCHAIN_HAS_LIBQUADMATH bool default y if BR2_i386 || BR2_x86_64 - default y if BR2_POWERPC_CPU_HAS_VSX + default y if (BR2_powerpc64 || BR2_powerpc64le) && BR2_POWERPC_CPU_HAS_VSX comment "Bare metal toolchain" -- 2.55.0 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot