From 5427dac45c12f6be8e3fca7bc38b9abcebb4ec87 Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Sun, 7 May 2023 10:47:12 +1200 Subject: [PATCH] libc/uclibc: Require GCC12 or older Currently uclibc configurations fail to build with GCC13 src/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc: In function 'std::from_chars_result std::from_chars(const char*, const char*, _Float128&, chars_format)': src/gcc/libstdc++-v3/src/c++17/floating_from_chars.cc:1281:10: error: 'from_chars_strtod' was not declared in this scope 1281 | return from_chars_strtod(first, last, value, fmt); | ^~~~~~~~~~~~~~~~~ make[6]: *** [Makefile:587: floating_from_chars.lo] Error 1 make[6]: *** Waiting for unfinished jobs.... For now require GCC older than 13 when using uclibc. Signed-off-by: Chris Packham --- config/libc/uClibc-ng.in | 1 + 1 file changed, 1 insertion(+) diff --git a/config/libc/uClibc-ng.in b/config/libc/uClibc-ng.in index dc83ca7e..437a53c8 100644 --- a/config/libc/uClibc-ng.in +++ b/config/libc/uClibc-ng.in @@ -6,6 +6,7 @@ ## select LIBC_SUPPORT_THREADS_NONE ## select LIBC_SUPPORT_THREADS_NATIVE ## select CC_CORE_NEEDED +## select GCC_REQUIRE_older_than_13 ## ## help The de-facto standard for embeded linux systems. ## help