Skip to contentSkip to conversation

support/scripts/gen-bootlin-toolchains: powerpc toolchains are not soft-float

PATCH New Yegor Yefremov 1 participant 1 message Nov 8

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/scripts/gen-bootlin-toolchains: powerpc toolchains are not soft-float

All Bootlin powerpc toolchains are built for hard-float, but nothing prevents selecting them together with BR2_POWERPC_SOFT_FLOAT. In that case, the toolchain wrapper adds -msoft-float to every compilation, which is ABI-incompatible with the prebuilt C/C++ libraries. With -msoft-float, GCC also doesn't provide the __ieee128 type, so any C++ code including the libstdc++ headers fails to build, e.g. acpitool on powerpc64le-power8:

.../include/c++/16.2.0/ext/numeric_traits.h:220:38: error: '__ieee128' was not declared in this scope; did you mean '__int128'?

    220 |     struct __numeric_traits_floating<__ieee128>
        |                                      ^~~~~~~~~

Like for the MIPS toolchains, add !BR2_POWERPC_SOFT_FLOAT to the conditions of all powerpc variants, and regenerate Config.in.options accordingly.

This issue has been present since commit 184d47a7adb8 ("support/scripts/gen-bootlin-toolchains: add new script to support Bootlin toolchains"), which added the powerpc variants without excluding soft-float, while doing so for MIPS. It therefore affects 2020.11 and later, including all maintained branches.

Fixes:
https://autobuild.buildroot.org/results/7515d590795b0002603c5ba2f55ac37f31afb488

Fixes 184d47a7adb8f58a036b1dcaa72d09219a65feb2 ("support/scripts/gen-bootlin-toolchains: add new script to support Bootlin toolchains")
Assisted-by Claude:claude-opus-5-5
---
 support/scripts/gen-bootlin-toolchains        | 14 +++---
 .../Config.in.options                         | 46 ++++++++++++++++---
 2 files changed, 46 insertions(+), 14 deletions(-)
support/scripts/gen-bootlin-toolchains +7 -7
index ee64a86902..84e7e53feb 100755
@@ -126,33 +126,33 @@ arches = {
     },
     'powerpc-440fp': {
         # Not sure it could be used by other powerpc variants?
-        'conditions': ['BR2_powerpc', 'BR2_powerpc_440fp'],
+        'conditions': ['BR2_powerpc', 'BR2_powerpc_440fp', '!BR2_POWERPC_SOFT_FLOAT'],
         'prefix': 'powerpc',
     },
     'powerpc-e300c3': {
         # Not sure it could be used by other powerpc variants?
-        'conditions': ['BR2_powerpc', 'BR2_powerpc_e300c3'],
+        'conditions': ['BR2_powerpc', 'BR2_powerpc_e300c3', '!BR2_POWERPC_SOFT_FLOAT'],
         'prefix': 'powerpc',
     },
     'powerpc-e500mc': {
         # Not sure it could be used by other powerpc variants?
-        'conditions': ['BR2_powerpc', 'BR2_powerpc_e500mc'],
+        'conditions': ['BR2_powerpc', 'BR2_powerpc_e500mc', '!BR2_POWERPC_SOFT_FLOAT'],
         'prefix': 'powerpc',
     },
     'powerpc64-e5500': {
-        'conditions': ['BR2_powerpc64', 'BR2_powerpc_e5500'],
+        'conditions': ['BR2_powerpc64', 'BR2_powerpc_e5500', '!BR2_POWERPC_SOFT_FLOAT'],
         'prefix': 'powerpc64',
     },
     'powerpc64-e6500': {
-        'conditions': ['BR2_powerpc64', 'BR2_powerpc_e6500'],
+        'conditions': ['BR2_powerpc64', 'BR2_powerpc_e6500', '!BR2_POWERPC_SOFT_FLOAT'],
         'prefix': 'powerpc64',
     },
     'powerpc64-power8': {
-        'conditions': ['BR2_powerpc64', 'BR2_powerpc_power8'],
+        'conditions': ['BR2_powerpc64', 'BR2_powerpc_power8', '!BR2_POWERPC_SOFT_FLOAT'],
         'prefix': 'powerpc64',
     },
     'powerpc64le-power8': {
-        'conditions': ['BR2_powerpc64le', 'BR2_powerpc_power8'],
+        'conditions': ['BR2_powerpc64le', 'BR2_powerpc_power8', '!BR2_POWERPC_SOFT_FLOAT'],
         'prefix': 'powerpc64le',
     },
     'riscv32-ilp32d': {
toolchain/toolchain-external/toolchain-external-bootlin/Config.in.options +39 -7

244 lines not on this page · raw message

Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot