[Buildroot] [git commit branch/2024.11.x] package/glibc: disable on RISC-V ilp32f and lp64f, not supported
Arnout Vandecappelle
arnout at rnout.be
Fri Apr 11 10:42:47 UTC 2025
commit: https://git.buildroot.net/buildroot/commit/?id=ed5c6f3625fe5a3d622c8a4d696824e1f1640dab
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2024.11.x
glibc fails to build on RISC-V 32-bit with the ilp32f ABI and on
RISC-V 64-bit with the lp64f: both use single-point precision floating
point, which glibc doesn't support, failing during the configure step
with:
configure: error: glibc does not yet support the single floating-point ABI
Fix that by disabling glibc support on those configurations.
Fixes:
https://autobuild.buildroot.org/results/fe8d569cab507992978ef0da649278dd3a9e0b23/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Signed-off-by: Julien Olivain <ju.o at free.fr>
(cherry picked from commit 8292b8fb89ba71d2b35d4596327b022741f18be4)
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
package/glibc/Config.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/glibc/Config.in b/package/glibc/Config.in
index 6075d28874..577404aff5 100644
--- a/package/glibc/Config.in
+++ b/package/glibc/Config.in
@@ -23,7 +23,9 @@ config BR2_PACKAGE_GLIBC_ARCH_SUPPORTS
default y if BR2_nios2
default y if BR2_arc && BR2_ARC_ATOMIC_EXT && !BR2_arc750d && !BR2_arc770d
depends on !BR2_POWERPC_CPU_HAS_SPE
- depends on BR2_RISCV_ISA_RVA || !BR2_riscv
+ # glibc needs atomic instructions, and does not support
+ # single-precision floating point ABIs (ilp32f and lp64f)
+ depends on (BR2_RISCV_ISA_RVA && !BR2_RISCV_ABI_ILP32F && !BR2_RISCV_ABI_LP64F) || !BR2_riscv
depends on BR2_USE_MMU
config BR2_PACKAGE_GLIBC_SUPPORTS
More information about the buildroot
mailing list