Skip to contentSkip to conversation

dtc: backport fix for build with glibc-2.43

PATCH In review [email protected] 2 participants 21 messages Apr 9 – Apr 16 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/9 dtc: backport fix for build with glibc-2.43

From: Martin Jansa <[email protected]>

glibc-2.43 isn't used in OE builds yet, but this fixes dtc-native:
https://errors.yoctoproject.org/Errors/Details/903983/

../sources/dtc-1.7.2/libfdt/fdt_overlay.c: In function ‘overlay_fixup_phandle’:
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:424:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
424 | sep = memchr(fixup_str, ':', fixup_len);
| ^
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:434:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
434 | sep = memchr(name, ':', fixup_len);
| ^
cc1: all warnings being treated as errors

---
 .../0001-Fix-discarded-const-qualifiers.patch | 83 +++++++++++++++++++
 meta/recipes-kernel/dtc/dtc_1.7.2.bb          |  1 +
 2 files changed, 84 insertions(+)
 create mode 100644 meta/recipes-kernel/dtc/dtc/0001-Fix-discarded-const-qualifiers.patch
meta/recipes-kernel/dtc/dtc/0001-Fix-discarded-const-qualifiers.patch new file +83 -0
new file mode 100644
index 0000000000..053a94f0bf
@@ -0,0 +1,83 @@
+From c58beee7bec0774f12202511c97beb741ff2b534 Mon Sep 17 00:00:00 2001
+From: Stephen Gallagher <[email protected]>
+Date: Tue, 6 Jan 2026 14:19:30 -0500
+Subject: [PATCH] Fix discarded const qualifiers
+
+It's unsafe to implicitly discard the const qualifier on a pointer. In
+overlay_fixup_phandle(), this was probably just an oversight, and making
+the "sep" variable a const char * is sufficient to fix it.
+
+In create_node(), however, the "p" variable is directly modifying the
+buffer pointed to by "const char* node_name". To fix this, we need to
+actually make a duplicate of the buffer and operate on that instead.
+
+This introduces a malloc()/free()  and an unbounded strdup() into the
+operation, but fdtput isn't a long-running service and the node_name
+argument comes directly from argv, so this shouldn't introduce a
+significant performance impact.
+
+Signed-off-by: Stephen Gallagher <[email protected]>
+Signed-off-by: David Gibson <[email protected]>
+Signed-off-by: Martin Jansa <[email protected]>
+Upstream-Status: Backport [https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/libfdt/fdt_overlay.c?h=main&id=9a1c801a1a3c102bf95c5339c9e985b26b823a21]
+---
+ fdtput.c             | 8 +++++---
+ libfdt/fdt_overlay.c | 3 ++-
+ meson.build          | 1 +
+ 3 files changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/fdtput.c b/fdtput.c
+index c2fecf4..8deec7e 100644
+--- a/fdtput.c
++++ b/fdtput.c
+@@ -230,19 +230,21 @@ static int create_paths(char **blob, const char *in_path)
+ static int create_node(char **blob, const char *node_name)
+ {
+ 	int node = 0;
+-	char *p;
++	const char *p;
++	char *path = NULL;
+ 
+ 	p = strrchr(node_name, '/');
+ 	if (!p) {
+ 		report_error(node_name, -1, -FDT_ERR_BADPATH);
+ 		return -1;
+ 	}
+-	*p = '\0';
+ 
+ 	*blob = realloc_node(*blob, p + 1);
+ 
+ 	if (p > node_name) {
+-		node = fdt_path_offset(*blob, node_name);
++		path = xstrndup(node_name, (size_t)(p - node_name));
++		node = fdt_path_offset(*blob, path);
++		free(path);
+ 		if (node < 0) {
+ 			report_error(node_name, -1, node);
+ 			return -1;
+diff --git a/libfdt/fdt_overlay.c b/libfdt/fdt_overlay.c
+index 28b667f..5f8aa62 100644
+--- a/libfdt/fdt_overlay.c
++++ b/libfdt/fdt_overlay.c
+@@ -409,7 +409,8 @@ static int overlay_fixup_phandle(void *fdt, void *fdto, int symbols_off,
+ 		const char *fixup_str = value;
+ 		uint32_t path_len, name_len;
+ 		uint32_t fixup_len;
+-		char *sep, *endptr;
++		const char *sep;
++		char *endptr;
+ 		int poffset, ret;
+ 
+ 		fixup_end = memchr(value, '\0', len);
+diff --git a/meson.build b/meson.build
+index 310699f..2966b06 100644
+--- a/meson.build
++++ b/meson.build
+@@ -18,6 +18,7 @@ add_project_arguments(
+     '-Wshadow',
+     '-Wsuggest-attribute=format',
+     '-Wwrite-strings',
++    '-Wdiscarded-qualifiers',
+   ]),
+   language: 'c'
+ )
meta/recipes-kernel/dtc/dtc_1.7.2.bb +1 -0
index 92e83a9404..b8b79542c5 100644
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
 
 SRC_URI = " \
     git://git.kernel.org/pub/scm/utils/dtc/dtc.git;branch=main;protocol=https \
+    file://0001-Fix-discarded-const-qualifiers.patch \
 "
 SRCREV = "2d10aa2afe35527728db30b35ec491ecb6959e5c"
 
#1 lore raw

PATCH 2/9 pseudo: Add fix for glibc 2.43

From: Richard Purdie <[email protected]>

Update to add a fix for a function definition to work with glibc 2.43.

---
 meta/recipes-devtools/pseudo/pseudo_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/pseudo/pseudo_git.bb +1 -1
index a26a205a16..4d31629903 100644
@@ -12,7 +12,7 @@ SRC_URI:append:class-nativesdk = " \
     file://older-glibc-symbols.patch"
 SRC_URI[prebuilt.sha256sum] = "ed9f456856e9d86359f169f46a70ad7be4190d6040282b84c8d97b99072485aa"
 
-SRCREV = "43cbd8fb4914328094ccdb4bb827d74b1bac2046"
+SRCREV = "56e1f8df4761da60e41812fc32b1de797d1765e9"
 PV = "1.9.3+git"
 
 # largefile and 64bit time_t support adds these macros via compiler flags globally
#2 lore raw

PATCH 3/9 yocto-uninative: Update to 5.1 for glibc 2.43

In reply to [email protected]

From: Michael Halstead <[email protected]>

yocto-uninative: Update to 5.1 for glibc 2.43

---
 meta/conf/distro/include/yocto-uninative.inc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta/conf/distro/include/yocto-uninative.inc +5 -5
index e9dc6c8640..d97c96f631 100644
@@ -6,10 +6,10 @@
 # to the distro running on the build machine.
 #
 
-UNINATIVE_MAXGLIBCVERSION = "2.42"
-UNINATIVE_VERSION = "5.0"
+UNINATIVE_MAXGLIBCVERSION = "2.43"
+UNINATIVE_VERSION = "5.1"
 
 UNINATIVE_URL ?= "http://downloads.yoctoproject.org/releases/uninative/${UNINATIVE_VERSION}/"
-UNINATIVE_CHECKSUM[aarch64] ?= "a25f2174d0cefcb22af005e9bc72ac01ae83b011c5b6d6d5bf00dac979877f76"
-UNINATIVE_CHECKSUM[i686] ?= "959cc2539b692f9b9862825c7324a0fe4d061fca742f6c259f67f581c59af956"
-UNINATIVE_CHECKSUM[x86_64] ?= "96045e8b1e242c8a849426a8506c7043f354b39f2bc0035192780e8205e23e9d"
+UNINATIVE_CHECKSUM[aarch64] ?= "4166237a9dabd222dcb9627a9435dffd756764fabf76ed7ef2e93dc2964567ad"
+UNINATIVE_CHECKSUM[i686] ?= "761502cc9aef4d54d0c6fe9418beb9fdd2c6220da6f2b04128c89f47902ab9ae"
+UNINATIVE_CHECKSUM[x86_64] ?= "2b63a078c26535e0786e87f81ae69509df30f4dce40693004c527bd5e4ab2b85"
#3 lore raw

PATCH 4/9 m4: backport 3 gnulib changes to fix build with glibc-2.43 on host

In reply to [email protected]

From: Martin Jansa <[email protected]>

All 3 are already included in m4-1.4.21 used in master.

---
 meta/recipes-devtools/m4/m4-1.4.20.inc        |   3 +
 ...-Fix-some-g-Wsystem-headers-warnings.patch | 135 ++++++++++++
 ...pilation-error-on-macOS-with-fortify.patch | 126 ++++++++++++
 ...23-qualifier-generic-fns-like-strchr.patch | 194 ++++++++++++++++++
 4 files changed, 458 insertions(+)
 create mode 100644 meta/recipes-devtools/m4/m4/0001-string-h-wchar-h-Fix-some-g-Wsystem-headers-warnings.patch
 create mode 100644 meta/recipes-devtools/m4/m4/0002-string-h-Fix-compilation-error-on-macOS-with-fortify.patch
 create mode 100644 meta/recipes-devtools/m4/m4/0003-Port-to-C23-qualifier-generic-fns-like-strchr.patch
meta/recipes-devtools/m4/m4-1.4.20.inc +3 -0
index 5c4ba09288..df47e1e188 100644
@@ -8,6 +8,9 @@ inherit autotools texinfo ptest gettext
 
 SRC_URI = "${GNU_MIRROR}/m4/m4-${PV}.tar.gz \
            file://0001-gettext-h-Avoid-gcc-Wformat-security-warnings-with-d.patch \
+           file://0001-string-h-wchar-h-Fix-some-g-Wsystem-headers-warnings.patch \
+           file://0002-string-h-Fix-compilation-error-on-macOS-with-fortify.patch \
+           file://0003-Port-to-C23-qualifier-generic-fns-like-strchr.patch \
            "
 SRC_URI:append:class-target = " file://run-ptest \
                                 file://0001-test-c32ispunct-Check-for-musl-along-with-glibc.patch \
meta/recipes-devtools/m4/m4/0001-string-h-wchar-h-Fix-some-g-Wsystem-headers-warnings.patch new file +135 -0

135 lines not on this page · raw message

meta/recipes-devtools/m4/m4/0002-string-h-Fix-compilation-error-on-macOS-with-fortify.patch new file +126 -0

126 lines not on this page · raw message

meta/recipes-devtools/m4/m4/0003-Port-to-C23-qualifier-generic-fns-like-strchr.patch new file +194 -0

194 lines not on this page · raw message

#4 lore raw

PATCH 5/9 gettext: backport gnulib changes to fix build with glibc-2.43 on host

In reply to [email protected]

From: Martin Jansa <[email protected]>

It's already included in gettext-1.0 used in master.

Unfortunately this need to be applied in 6 different copies of gnulib inside gettext repo.

---
 ...23-qualifier-generic-fns-like-strchr.patch | 626 ++++++++++++++++++
 meta/recipes-core/gettext/gettext_0.26.bb     |   1 +
 2 files changed, 627 insertions(+)
 create mode 100644 meta/recipes-core/gettext/gettext/0001-Port-to-C23-qualifier-generic-fns-like-strchr.patch
meta/recipes-core/gettext/gettext/0001-Port-to-C23-qualifier-generic-fns-like-strchr.patch new file +626 -0
new file mode 100644
index 0000000000..634e17ea78
@@ -0,0 +1,626 @@
+From 64c9525e8664ec3b89475100cbeda06ed916e707 Mon Sep 17 00:00:00 2001
+From: Paul Eggert <[email protected]>
+Date: Sun, 23 Nov 2025 00:50:40 -0800
+Subject: [PATCH] Port to C23 qualifier-generic fns like strchr
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This ports Gnulib to strict C23 platforms that reject code
+like ‘char *q = strchr (P, 'x');’ when P is a pointer to const,
+because in C23 strchr is a qualifier-generic function so
+strchr (P, 'x') returns char const *.
+This patch does not attempt to do the following two things,
+which might be useful in the future:
+1. When compiling on non-C23 platforms, check user code for
+portability to platforms that define qualifier-generic functions.
+2. Port Gnulib to platforms that have qualifier-generic functions
+not listed in the C23 standard, e.g., strchrnul.  I don’t know
+of any such platforms.
+* lib/argp-help.c (argp_doc):
+* lib/c-strstr.c (c_strstr):
+* lib/dfa.c (comsubs):
+* lib/mbschr.c (mbschr):
+* lib/mbspbrk.c (mbspbrk):
+* lib/mbsrchr.c (mbsrchr):
+* lib/memchr2.c (memchr2):
+* lib/string-desc.c (_sd_index):
+* tests/test-bsearch.c (lib_bsearch):
+* tests/test-memchr.c (lib_memchr):
+* tests/test-wmemchr.c (lib_wmemchr):
+Port to C23, where functions like strchr are qualifier-generic.
+* lib/c++defs.h (_GL_FUNCDECL_SYS_NAME): New macro.
+* lib/c++defs.h (_GL_FUNCDECL_SYS):
+* lib/stdlib.in.h (bsearch):
+Use it, to prevent C23 names like strchr from acting like macros.
+* lib/string.in.h (memchr, strchr, strpbrk, strrchr):
+Do not #undef when GNULIB_POSIXCHECK is defined, as this could
+cause conforming C23 code to fail to conform.  It’s not clear why
+_GL_WARN_ON_USE_CXX; perhaps it was needed but isn’t any more?
+But for now, limit the removal of #undef to these four functions
+where #undeffing is clearly undesirable in C23.
+* lib/wchar.in.h (wmemchr): Parenthesize function name in decl,
+to prevent it from acting like a macro.
+
+Upstream-Status: Backport [https://cgit.git.savannah.gnu.org/cgit/gnulib.git/commit/?id=df17f4f37ed3ca373d23ad42eae51122bdb96626]
+Signed-off-by: Martin Jansa <[email protected]>
+---
+ gettext-runtime/gnulib-lib/c++defs.h         | 12 +++++++++++-
+ gettext-runtime/gnulib-lib/stdlib.in.h       |  6 +++---
+ gettext-runtime/gnulib-lib/string.in.h       |  4 ----
+ gettext-runtime/gnulib-lib/wchar.in.h        |  2 +-
+ gettext-runtime/intl/gnulib-lib/c++defs.h    | 12 +++++++++++-
+ gettext-runtime/intl/gnulib-lib/stdlib.in.h  |  6 +++---
+ gettext-runtime/intl/gnulib-lib/string.in.h  |  4 ----
+ gettext-runtime/intl/gnulib-lib/wchar.in.h   |  2 +-
+ gettext-tools/gnulib-lib/c++defs.h           | 12 +++++++++++-
+ gettext-tools/gnulib-lib/stdlib.in.h         |  6 +++---
+ gettext-tools/gnulib-lib/string.in.h         |  4 ----
+ gettext-tools/gnulib-lib/wchar.in.h          |  2 +-
+ gettext-tools/libgettextpo/c++defs.h         | 12 +++++++++++-
+ gettext-tools/libgettextpo/stdlib.in.h       |  6 +++---
+ gettext-tools/libgettextpo/string.in.h       |  4 ----
+ gettext-tools/libgettextpo/wchar.in.h        |  2 +-
+ gettext-tools/libgrep/gnulib-lib/c++defs.h   | 12 +++++++++++-
+ gettext-tools/libgrep/gnulib-lib/memchr2.c   |  2 +-
+ gettext-tools/libgrep/gnulib-lib/stdlib.in.h |  6 +++---
+ gettext-tools/libgrep/gnulib-lib/wchar.in.h  |  2 +-
+ libtextstyle/lib/c++defs.h                   | 12 +++++++++++-
+ libtextstyle/lib/stdlib.in.h                 |  6 +++---
+ libtextstyle/lib/string.in.h                 |  4 ----
+ libtextstyle/lib/wchar.in.h                  |  2 +-
+ 24 files changed, 91 insertions(+), 51 deletions(-)
+
+diff --git a/gettext-runtime/gnulib-lib/c++defs.h b/gettext-runtime/gnulib-lib/c++defs.h
+index df98a5a..d3dfabd 100644
+--- a/gettext-runtime/gnulib-lib/c++defs.h
++++ b/gettext-runtime/gnulib-lib/c++defs.h
+@@ -127,6 +127,16 @@
+ #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters,...) \
+   _GL_EXTERN_C_FUNC __VA_ARGS__ rettype rpl_func parameters
+ 
++/* _GL_FUNCDECL_SYS_NAME (func) expands to plain func if C++, and to
++   parenthsized func otherwise.  Parenthesization is needed in C23 if
++   the function is like strchr and so is a qualifier-generic macro
++   that expands to something more complicated.  */
++#ifdef __cplusplus
++# define _GL_FUNCDECL_SYS_NAME(func) func
++#else
++# define _GL_FUNCDECL_SYS_NAME(func) (func)
++#endif
++
+ /* _GL_FUNCDECL_SYS (func, rettype, parameters, [attributes]);
+    declares the system function, named func, with the given prototype,
+    consisting of return type, parameters, and attributes.
+@@ -139,7 +149,7 @@
+      _GL_FUNCDECL_SYS (posix_openpt, int, (int flags), _GL_ATTRIBUTE_NODISCARD);
+  */
+ #define _GL_FUNCDECL_SYS(func,rettype,parameters,...) \
+-  _GL_EXTERN_C_FUNC __VA_ARGS__ rettype func parameters
++  _GL_EXTERN_C_FUNC __VA_ARGS__ rettype _GL_FUNCDECL_SYS_NAME (func) parameters
+ 
+ /* _GL_CXXALIAS_RPL (func, rettype, parameters);
+    declares a C++ alias called GNULIB_NAMESPACE::func
+diff --git a/gettext-runtime/gnulib-lib/stdlib.in.h b/gettext-runtime/gnulib-lib/stdlib.in.h
+index 1342db4..3548d6e 100644
+--- a/gettext-runtime/gnulib-lib/stdlib.in.h
++++ b/gettext-runtime/gnulib-lib/stdlib.in.h
+@@ -237,9 +237,9 @@ _GL_INLINE_HEADER_BEGIN
+ 
+ /* Declarations for ISO C N3322.  */
+ #if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__
+-_GL_EXTERN_C void *bsearch (const void *__key,
+-                            const void *__base, size_t __nmemb, size_t __size,
+-                            int (*__compare) (const void *, const void *))
++_GL_EXTERN_C void *_GL_FUNCDECL_SYS_NAME (bsearch)
++  (const void *__key, const void *__base, size_t __nmemb, size_t __size,
++   int (*__compare) (const void *, const void *))
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3) _GL_ARG_NONNULL ((5));
+ _GL_EXTERN_C void qsort (void *__base, size_t __nmemb, size_t __size,
+                          int (*__compare) (const void *, const void *))
+diff --git a/gettext-runtime/gnulib-lib/string.in.h b/gettext-runtime/gnulib-lib/string.in.h
+index 9a039c7..bc44f81 100644
+--- a/gettext-runtime/gnulib-lib/string.in.h
++++ b/gettext-runtime/gnulib-lib/string.in.h
+@@ -403,7 +403,6 @@ _GL_CXXALIASWARN1 (memchr, void const *,
+ _GL_CXXALIASWARN (memchr);
+ # endif
+ #elif defined GNULIB_POSIXCHECK
+-# undef memchr
+ /* Assume memchr is always declared.  */
+ _GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - "
+                  "use gnulib module memchr for portability" );
+@@ -653,7 +652,6 @@ _GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - "
+ #if defined GNULIB_POSIXCHECK
+ /* strchr() does not work with multibyte strings if the locale encoding is
+    GB18030 and the character to be searched is a digit.  */
+-# undef strchr
+ /* Assume strchr is always declared.  */
+ _GL_WARN_ON_USE_CXX (strchr,
+                      const char *, char *, (const char *, int),
+@@ -945,7 +943,6 @@ _GL_CXXALIASWARN (strpbrk);
+    Even in this simple case, it does not work with multibyte strings if the
+    locale encoding is GB18030 and one of the characters to be searched is a
+    digit.  */
+-#  undef strpbrk
+ _GL_WARN_ON_USE_CXX (strpbrk,
+                      const char *, char *, (const char *, const char *),
+                      "strpbrk cannot work correctly on character strings "
+@@ -975,7 +972,6 @@ _GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings "
+ #if defined GNULIB_POSIXCHECK
+ /* strrchr() does not work with multibyte strings if the locale encoding is
+    GB18030 and the character to be searched is a digit.  */
+-# undef strrchr
+ /* Assume strrchr is always declared.  */
+ _GL_WARN_ON_USE_CXX (strrchr,
+                      const char *, char *, (const char *, int),
+diff --git a/gettext-runtime/gnulib-lib/wchar.in.h b/gettext-runtime/gnulib-lib/wchar.in.h
+index a6c52eb..b4de385 100644
+--- a/gettext-runtime/gnulib-lib/wchar.in.h
++++ b/gettext-runtime/gnulib-lib/wchar.in.h
+@@ -316,7 +316,7 @@ _GL_EXTERN_C int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
+ # ifndef __cplusplus
+-_GL_EXTERN_C wchar_t *wmemchr (const wchar_t *__s, wchar_t __wc, size_t __n)
++_GL_EXTERN_C wchar_t *(wmemchr) (const wchar_t *__s, wchar_t __wc, size_t __n)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3);
+ # endif
+ _GL_EXTERN_C wchar_t *wmemset (wchar_t *__s, wchar_t __wc, size_t __n)
+diff --git a/gettext-runtime/intl/gnulib-lib/c++defs.h b/gettext-runtime/intl/gnulib-lib/c++defs.h
+index df98a5a..d3dfabd 100644
+--- a/gettext-runtime/intl/gnulib-lib/c++defs.h
++++ b/gettext-runtime/intl/gnulib-lib/c++defs.h
+@@ -127,6 +127,16 @@
+ #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters,...) \
+   _GL_EXTERN_C_FUNC __VA_ARGS__ rettype rpl_func parameters
+ 
++/* _GL_FUNCDECL_SYS_NAME (func) expands to plain func if C++, and to
++   parenthsized func otherwise.  Parenthesization is needed in C23 if
++   the function is like strchr and so is a qualifier-generic macro
++   that expands to something more complicated.  */
++#ifdef __cplusplus
++# define _GL_FUNCDECL_SYS_NAME(func) func
++#else
++# define _GL_FUNCDECL_SYS_NAME(func) (func)
++#endif
++
+ /* _GL_FUNCDECL_SYS (func, rettype, parameters, [attributes]);
+    declares the system function, named func, with the given prototype,
+    consisting of return type, parameters, and attributes.
+@@ -139,7 +149,7 @@
+      _GL_FUNCDECL_SYS (posix_openpt, int, (int flags), _GL_ATTRIBUTE_NODISCARD);
+  */
+ #define _GL_FUNCDECL_SYS(func,rettype,parameters,...) \
+-  _GL_EXTERN_C_FUNC __VA_ARGS__ rettype func parameters
++  _GL_EXTERN_C_FUNC __VA_ARGS__ rettype _GL_FUNCDECL_SYS_NAME (func) parameters
+ 
+ /* _GL_CXXALIAS_RPL (func, rettype, parameters);
+    declares a C++ alias called GNULIB_NAMESPACE::func
+diff --git a/gettext-runtime/intl/gnulib-lib/stdlib.in.h b/gettext-runtime/intl/gnulib-lib/stdlib.in.h
+index 1342db4..3548d6e 100644
+--- a/gettext-runtime/intl/gnulib-lib/stdlib.in.h
++++ b/gettext-runtime/intl/gnulib-lib/stdlib.in.h
+@@ -237,9 +237,9 @@ _GL_INLINE_HEADER_BEGIN
+ 
+ /* Declarations for ISO C N3322.  */
+ #if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__
+-_GL_EXTERN_C void *bsearch (const void *__key,
+-                            const void *__base, size_t __nmemb, size_t __size,
+-                            int (*__compare) (const void *, const void *))
++_GL_EXTERN_C void *_GL_FUNCDECL_SYS_NAME (bsearch)
++  (const void *__key, const void *__base, size_t __nmemb, size_t __size,
++   int (*__compare) (const void *, const void *))
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3) _GL_ARG_NONNULL ((5));
+ _GL_EXTERN_C void qsort (void *__base, size_t __nmemb, size_t __size,
+                          int (*__compare) (const void *, const void *))
+diff --git a/gettext-runtime/intl/gnulib-lib/string.in.h b/gettext-runtime/intl/gnulib-lib/string.in.h
+index 9a039c7..bc44f81 100644
+--- a/gettext-runtime/intl/gnulib-lib/string.in.h
++++ b/gettext-runtime/intl/gnulib-lib/string.in.h
+@@ -403,7 +403,6 @@ _GL_CXXALIASWARN1 (memchr, void const *,
+ _GL_CXXALIASWARN (memchr);
+ # endif
+ #elif defined GNULIB_POSIXCHECK
+-# undef memchr
+ /* Assume memchr is always declared.  */
+ _GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - "
+                  "use gnulib module memchr for portability" );
+@@ -653,7 +652,6 @@ _GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - "
+ #if defined GNULIB_POSIXCHECK
+ /* strchr() does not work with multibyte strings if the locale encoding is
+    GB18030 and the character to be searched is a digit.  */
+-# undef strchr
+ /* Assume strchr is always declared.  */
+ _GL_WARN_ON_USE_CXX (strchr,
+                      const char *, char *, (const char *, int),
+@@ -945,7 +943,6 @@ _GL_CXXALIASWARN (strpbrk);
+    Even in this simple case, it does not work with multibyte strings if the
+    locale encoding is GB18030 and one of the characters to be searched is a
+    digit.  */
+-#  undef strpbrk
+ _GL_WARN_ON_USE_CXX (strpbrk,
+                      const char *, char *, (const char *, const char *),
+                      "strpbrk cannot work correctly on character strings "
+@@ -975,7 +972,6 @@ _GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings "
+ #if defined GNULIB_POSIXCHECK
+ /* strrchr() does not work with multibyte strings if the locale encoding is
+    GB18030 and the character to be searched is a digit.  */
+-# undef strrchr
+ /* Assume strrchr is always declared.  */
+ _GL_WARN_ON_USE_CXX (strrchr,
+                      const char *, char *, (const char *, int),
+diff --git a/gettext-runtime/intl/gnulib-lib/wchar.in.h b/gettext-runtime/intl/gnulib-lib/wchar.in.h
+index a6c52eb..b4de385 100644
+--- a/gettext-runtime/intl/gnulib-lib/wchar.in.h
++++ b/gettext-runtime/intl/gnulib-lib/wchar.in.h
+@@ -316,7 +316,7 @@ _GL_EXTERN_C int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
+ # ifndef __cplusplus
+-_GL_EXTERN_C wchar_t *wmemchr (const wchar_t *__s, wchar_t __wc, size_t __n)
++_GL_EXTERN_C wchar_t *(wmemchr) (const wchar_t *__s, wchar_t __wc, size_t __n)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3);
+ # endif
+ _GL_EXTERN_C wchar_t *wmemset (wchar_t *__s, wchar_t __wc, size_t __n)
+diff --git a/gettext-tools/gnulib-lib/c++defs.h b/gettext-tools/gnulib-lib/c++defs.h
+index df98a5a..d3dfabd 100644
+--- a/gettext-tools/gnulib-lib/c++defs.h
++++ b/gettext-tools/gnulib-lib/c++defs.h
+@@ -127,6 +127,16 @@
+ #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters,...) \
+   _GL_EXTERN_C_FUNC __VA_ARGS__ rettype rpl_func parameters
+ 
++/* _GL_FUNCDECL_SYS_NAME (func) expands to plain func if C++, and to
++   parenthsized func otherwise.  Parenthesization is needed in C23 if
++   the function is like strchr and so is a qualifier-generic macro
++   that expands to something more complicated.  */
++#ifdef __cplusplus
++# define _GL_FUNCDECL_SYS_NAME(func) func
++#else
++# define _GL_FUNCDECL_SYS_NAME(func) (func)
++#endif
++
+ /* _GL_FUNCDECL_SYS (func, rettype, parameters, [attributes]);
+    declares the system function, named func, with the given prototype,
+    consisting of return type, parameters, and attributes.
+@@ -139,7 +149,7 @@
+      _GL_FUNCDECL_SYS (posix_openpt, int, (int flags), _GL_ATTRIBUTE_NODISCARD);
+  */
+ #define _GL_FUNCDECL_SYS(func,rettype,parameters,...) \
+-  _GL_EXTERN_C_FUNC __VA_ARGS__ rettype func parameters
++  _GL_EXTERN_C_FUNC __VA_ARGS__ rettype _GL_FUNCDECL_SYS_NAME (func) parameters
+ 
+ /* _GL_CXXALIAS_RPL (func, rettype, parameters);
+    declares a C++ alias called GNULIB_NAMESPACE::func
+diff --git a/gettext-tools/gnulib-lib/stdlib.in.h b/gettext-tools/gnulib-lib/stdlib.in.h
+index 1342db4..3548d6e 100644
+--- a/gettext-tools/gnulib-lib/stdlib.in.h
++++ b/gettext-tools/gnulib-lib/stdlib.in.h
+@@ -237,9 +237,9 @@ _GL_INLINE_HEADER_BEGIN
+ 
+ /* Declarations for ISO C N3322.  */
+ #if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__
+-_GL_EXTERN_C void *bsearch (const void *__key,
+-                            const void *__base, size_t __nmemb, size_t __size,
+-                            int (*__compare) (const void *, const void *))
++_GL_EXTERN_C void *_GL_FUNCDECL_SYS_NAME (bsearch)
++  (const void *__key, const void *__base, size_t __nmemb, size_t __size,
++   int (*__compare) (const void *, const void *))
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3) _GL_ARG_NONNULL ((5));
+ _GL_EXTERN_C void qsort (void *__base, size_t __nmemb, size_t __size,
+                          int (*__compare) (const void *, const void *))
+diff --git a/gettext-tools/gnulib-lib/string.in.h b/gettext-tools/gnulib-lib/string.in.h
+index 9a039c7..bc44f81 100644
+--- a/gettext-tools/gnulib-lib/string.in.h
++++ b/gettext-tools/gnulib-lib/string.in.h
+@@ -403,7 +403,6 @@ _GL_CXXALIASWARN1 (memchr, void const *,
+ _GL_CXXALIASWARN (memchr);
+ # endif
+ #elif defined GNULIB_POSIXCHECK
+-# undef memchr
+ /* Assume memchr is always declared.  */
+ _GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - "
+                  "use gnulib module memchr for portability" );
+@@ -653,7 +652,6 @@ _GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - "
+ #if defined GNULIB_POSIXCHECK
+ /* strchr() does not work with multibyte strings if the locale encoding is
+    GB18030 and the character to be searched is a digit.  */
+-# undef strchr
+ /* Assume strchr is always declared.  */
+ _GL_WARN_ON_USE_CXX (strchr,
+                      const char *, char *, (const char *, int),
+@@ -945,7 +943,6 @@ _GL_CXXALIASWARN (strpbrk);
+    Even in this simple case, it does not work with multibyte strings if the
+    locale encoding is GB18030 and one of the characters to be searched is a
+    digit.  */
+-#  undef strpbrk
+ _GL_WARN_ON_USE_CXX (strpbrk,
+                      const char *, char *, (const char *, const char *),
+                      "strpbrk cannot work correctly on character strings "
+@@ -975,7 +972,6 @@ _GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings "
+ #if defined GNULIB_POSIXCHECK
+ /* strrchr() does not work with multibyte strings if the locale encoding is
+    GB18030 and the character to be searched is a digit.  */
+-# undef strrchr
+ /* Assume strrchr is always declared.  */
+ _GL_WARN_ON_USE_CXX (strrchr,
+                      const char *, char *, (const char *, int),
+diff --git a/gettext-tools/gnulib-lib/wchar.in.h b/gettext-tools/gnulib-lib/wchar.in.h
+index a6c52eb..b4de385 100644
+--- a/gettext-tools/gnulib-lib/wchar.in.h
++++ b/gettext-tools/gnulib-lib/wchar.in.h
+@@ -316,7 +316,7 @@ _GL_EXTERN_C int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
+ # ifndef __cplusplus
+-_GL_EXTERN_C wchar_t *wmemchr (const wchar_t *__s, wchar_t __wc, size_t __n)
++_GL_EXTERN_C wchar_t *(wmemchr) (const wchar_t *__s, wchar_t __wc, size_t __n)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3);
+ # endif
+ _GL_EXTERN_C wchar_t *wmemset (wchar_t *__s, wchar_t __wc, size_t __n)
+diff --git a/gettext-tools/libgettextpo/c++defs.h b/gettext-tools/libgettextpo/c++defs.h
+index df98a5a..d3dfabd 100644
+--- a/gettext-tools/libgettextpo/c++defs.h
++++ b/gettext-tools/libgettextpo/c++defs.h
+@@ -127,6 +127,16 @@
+ #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters,...) \
+   _GL_EXTERN_C_FUNC __VA_ARGS__ rettype rpl_func parameters
+ 
++/* _GL_FUNCDECL_SYS_NAME (func) expands to plain func if C++, and to
++   parenthsized func otherwise.  Parenthesization is needed in C23 if
++   the function is like strchr and so is a qualifier-generic macro
++   that expands to something more complicated.  */
++#ifdef __cplusplus
++# define _GL_FUNCDECL_SYS_NAME(func) func
++#else
++# define _GL_FUNCDECL_SYS_NAME(func) (func)
++#endif
++
+ /* _GL_FUNCDECL_SYS (func, rettype, parameters, [attributes]);
+    declares the system function, named func, with the given prototype,
+    consisting of return type, parameters, and attributes.
+@@ -139,7 +149,7 @@
+      _GL_FUNCDECL_SYS (posix_openpt, int, (int flags), _GL_ATTRIBUTE_NODISCARD);
+  */
+ #define _GL_FUNCDECL_SYS(func,rettype,parameters,...) \
+-  _GL_EXTERN_C_FUNC __VA_ARGS__ rettype func parameters
++  _GL_EXTERN_C_FUNC __VA_ARGS__ rettype _GL_FUNCDECL_SYS_NAME (func) parameters
+ 
+ /* _GL_CXXALIAS_RPL (func, rettype, parameters);
+    declares a C++ alias called GNULIB_NAMESPACE::func
+diff --git a/gettext-tools/libgettextpo/stdlib.in.h b/gettext-tools/libgettextpo/stdlib.in.h
+index 1342db4..3548d6e 100644
+--- a/gettext-tools/libgettextpo/stdlib.in.h
++++ b/gettext-tools/libgettextpo/stdlib.in.h
+@@ -237,9 +237,9 @@ _GL_INLINE_HEADER_BEGIN
+ 
+ /* Declarations for ISO C N3322.  */
+ #if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__
+-_GL_EXTERN_C void *bsearch (const void *__key,
+-                            const void *__base, size_t __nmemb, size_t __size,
+-                            int (*__compare) (const void *, const void *))
++_GL_EXTERN_C void *_GL_FUNCDECL_SYS_NAME (bsearch)
++  (const void *__key, const void *__base, size_t __nmemb, size_t __size,
++   int (*__compare) (const void *, const void *))
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3) _GL_ARG_NONNULL ((5));
+ _GL_EXTERN_C void qsort (void *__base, size_t __nmemb, size_t __size,
+                          int (*__compare) (const void *, const void *))
+diff --git a/gettext-tools/libgettextpo/string.in.h b/gettext-tools/libgettextpo/string.in.h
+index 9a039c7..bc44f81 100644
+--- a/gettext-tools/libgettextpo/string.in.h
++++ b/gettext-tools/libgettextpo/string.in.h
+@@ -403,7 +403,6 @@ _GL_CXXALIASWARN1 (memchr, void const *,
+ _GL_CXXALIASWARN (memchr);
+ # endif
+ #elif defined GNULIB_POSIXCHECK
+-# undef memchr
+ /* Assume memchr is always declared.  */
+ _GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - "
+                  "use gnulib module memchr for portability" );
+@@ -653,7 +652,6 @@ _GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - "
+ #if defined GNULIB_POSIXCHECK
+ /* strchr() does not work with multibyte strings if the locale encoding is
+    GB18030 and the character to be searched is a digit.  */
+-# undef strchr
+ /* Assume strchr is always declared.  */
+ _GL_WARN_ON_USE_CXX (strchr,
+                      const char *, char *, (const char *, int),
+@@ -945,7 +943,6 @@ _GL_CXXALIASWARN (strpbrk);
+    Even in this simple case, it does not work with multibyte strings if the
+    locale encoding is GB18030 and one of the characters to be searched is a
+    digit.  */
+-#  undef strpbrk
+ _GL_WARN_ON_USE_CXX (strpbrk,
+                      const char *, char *, (const char *, const char *),
+                      "strpbrk cannot work correctly on character strings "
+@@ -975,7 +972,6 @@ _GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings "
+ #if defined GNULIB_POSIXCHECK
+ /* strrchr() does not work with multibyte strings if the locale encoding is
+    GB18030 and the character to be searched is a digit.  */
+-# undef strrchr
+ /* Assume strrchr is always declared.  */
+ _GL_WARN_ON_USE_CXX (strrchr,
+                      const char *, char *, (const char *, int),
+diff --git a/gettext-tools/libgettextpo/wchar.in.h b/gettext-tools/libgettextpo/wchar.in.h
+index a6c52eb..b4de385 100644
+--- a/gettext-tools/libgettextpo/wchar.in.h
++++ b/gettext-tools/libgettextpo/wchar.in.h
+@@ -316,7 +316,7 @@ _GL_EXTERN_C int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
+ # ifndef __cplusplus
+-_GL_EXTERN_C wchar_t *wmemchr (const wchar_t *__s, wchar_t __wc, size_t __n)
++_GL_EXTERN_C wchar_t *(wmemchr) (const wchar_t *__s, wchar_t __wc, size_t __n)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3);
+ # endif
+ _GL_EXTERN_C wchar_t *wmemset (wchar_t *__s, wchar_t __wc, size_t __n)
+diff --git a/gettext-tools/libgrep/gnulib-lib/c++defs.h b/gettext-tools/libgrep/gnulib-lib/c++defs.h
+index df98a5a..d3dfabd 100644
+--- a/gettext-tools/libgrep/gnulib-lib/c++defs.h
++++ b/gettext-tools/libgrep/gnulib-lib/c++defs.h
+@@ -127,6 +127,16 @@
+ #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters,...) \
+   _GL_EXTERN_C_FUNC __VA_ARGS__ rettype rpl_func parameters
+ 
++/* _GL_FUNCDECL_SYS_NAME (func) expands to plain func if C++, and to
++   parenthsized func otherwise.  Parenthesization is needed in C23 if
++   the function is like strchr and so is a qualifier-generic macro
++   that expands to something more complicated.  */
++#ifdef __cplusplus
++# define _GL_FUNCDECL_SYS_NAME(func) func
++#else
++# define _GL_FUNCDECL_SYS_NAME(func) (func)
++#endif
++
+ /* _GL_FUNCDECL_SYS (func, rettype, parameters, [attributes]);
+    declares the system function, named func, with the given prototype,
+    consisting of return type, parameters, and attributes.
+@@ -139,7 +149,7 @@
+      _GL_FUNCDECL_SYS (posix_openpt, int, (int flags), _GL_ATTRIBUTE_NODISCARD);
+  */
+ #define _GL_FUNCDECL_SYS(func,rettype,parameters,...) \
+-  _GL_EXTERN_C_FUNC __VA_ARGS__ rettype func parameters
++  _GL_EXTERN_C_FUNC __VA_ARGS__ rettype _GL_FUNCDECL_SYS_NAME (func) parameters
+ 
+ /* _GL_CXXALIAS_RPL (func, rettype, parameters);
+    declares a C++ alias called GNULIB_NAMESPACE::func
+diff --git a/gettext-tools/libgrep/gnulib-lib/memchr2.c b/gettext-tools/libgrep/gnulib-lib/memchr2.c
+index 7493823..d7724ae 100644
+--- a/gettext-tools/libgrep/gnulib-lib/memchr2.c
++++ b/gettext-tools/libgrep/gnulib-lib/memchr2.c
+@@ -55,7 +55,7 @@ memchr2 (void const *s, int c1_in, int c2_in, size_t n)
+   c2 = (unsigned char) c2_in;
+ 
+   if (c1 == c2)
+-    return memchr (s, c1, n);
++    return (void *) memchr (s, c1, n);
+ 
+   /* Handle the first few bytes by reading one byte at a time.
+      Do this until VOID_PTR is aligned on a longword boundary.  */
+diff --git a/gettext-tools/libgrep/gnulib-lib/stdlib.in.h b/gettext-tools/libgrep/gnulib-lib/stdlib.in.h
+index 1342db4..3548d6e 100644
+--- a/gettext-tools/libgrep/gnulib-lib/stdlib.in.h
++++ b/gettext-tools/libgrep/gnulib-lib/stdlib.in.h
+@@ -237,9 +237,9 @@ _GL_INLINE_HEADER_BEGIN
+ 
+ /* Declarations for ISO C N3322.  */
+ #if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__
+-_GL_EXTERN_C void *bsearch (const void *__key,
+-                            const void *__base, size_t __nmemb, size_t __size,
+-                            int (*__compare) (const void *, const void *))
++_GL_EXTERN_C void *_GL_FUNCDECL_SYS_NAME (bsearch)
++  (const void *__key, const void *__base, size_t __nmemb, size_t __size,
++   int (*__compare) (const void *, const void *))
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3) _GL_ARG_NONNULL ((5));
+ _GL_EXTERN_C void qsort (void *__base, size_t __nmemb, size_t __size,
+                          int (*__compare) (const void *, const void *))
+diff --git a/gettext-tools/libgrep/gnulib-lib/wchar.in.h b/gettext-tools/libgrep/gnulib-lib/wchar.in.h
+index a6c52eb..b4de385 100644
+--- a/gettext-tools/libgrep/gnulib-lib/wchar.in.h
++++ b/gettext-tools/libgrep/gnulib-lib/wchar.in.h
+@@ -316,7 +316,7 @@ _GL_EXTERN_C int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
+ # ifndef __cplusplus
+-_GL_EXTERN_C wchar_t *wmemchr (const wchar_t *__s, wchar_t __wc, size_t __n)
++_GL_EXTERN_C wchar_t *(wmemchr) (const wchar_t *__s, wchar_t __wc, size_t __n)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3);
+ # endif
+ _GL_EXTERN_C wchar_t *wmemset (wchar_t *__s, wchar_t __wc, size_t __n)
+diff --git a/libtextstyle/lib/c++defs.h b/libtextstyle/lib/c++defs.h
+index df98a5a..d3dfabd 100644
+--- a/libtextstyle/lib/c++defs.h
++++ b/libtextstyle/lib/c++defs.h
+@@ -127,6 +127,16 @@
+ #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters,...) \
+   _GL_EXTERN_C_FUNC __VA_ARGS__ rettype rpl_func parameters
+ 
++/* _GL_FUNCDECL_SYS_NAME (func) expands to plain func if C++, and to
++   parenthsized func otherwise.  Parenthesization is needed in C23 if
++   the function is like strchr and so is a qualifier-generic macro
++   that expands to something more complicated.  */
++#ifdef __cplusplus
++# define _GL_FUNCDECL_SYS_NAME(func) func
++#else
++# define _GL_FUNCDECL_SYS_NAME(func) (func)
++#endif
++
+ /* _GL_FUNCDECL_SYS (func, rettype, parameters, [attributes]);
+    declares the system function, named func, with the given prototype,
+    consisting of return type, parameters, and attributes.
+@@ -139,7 +149,7 @@
+      _GL_FUNCDECL_SYS (posix_openpt, int, (int flags), _GL_ATTRIBUTE_NODISCARD);
+  */
+ #define _GL_FUNCDECL_SYS(func,rettype,parameters,...) \
+-  _GL_EXTERN_C_FUNC __VA_ARGS__ rettype func parameters
++  _GL_EXTERN_C_FUNC __VA_ARGS__ rettype _GL_FUNCDECL_SYS_NAME (func) parameters
+ 
+ /* _GL_CXXALIAS_RPL (func, rettype, parameters);
+    declares a C++ alias called GNULIB_NAMESPACE::func
+diff --git a/libtextstyle/lib/stdlib.in.h b/libtextstyle/lib/stdlib.in.h
+index 1342db4..3548d6e 100644
+--- a/libtextstyle/lib/stdlib.in.h
++++ b/libtextstyle/lib/stdlib.in.h
+@@ -237,9 +237,9 @@ _GL_INLINE_HEADER_BEGIN
+ 
+ /* Declarations for ISO C N3322.  */
+ #if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__
+-_GL_EXTERN_C void *bsearch (const void *__key,
+-                            const void *__base, size_t __nmemb, size_t __size,
+-                            int (*__compare) (const void *, const void *))
++_GL_EXTERN_C void *_GL_FUNCDECL_SYS_NAME (bsearch)
++  (const void *__key, const void *__base, size_t __nmemb, size_t __size,
++   int (*__compare) (const void *, const void *))
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3) _GL_ARG_NONNULL ((5));
+ _GL_EXTERN_C void qsort (void *__base, size_t __nmemb, size_t __size,
+                          int (*__compare) (const void *, const void *))
+diff --git a/libtextstyle/lib/string.in.h b/libtextstyle/lib/string.in.h
+index 9a039c7..bc44f81 100644
+--- a/libtextstyle/lib/string.in.h
++++ b/libtextstyle/lib/string.in.h
+@@ -403,7 +403,6 @@ _GL_CXXALIASWARN1 (memchr, void const *,
+ _GL_CXXALIASWARN (memchr);
+ # endif
+ #elif defined GNULIB_POSIXCHECK
+-# undef memchr
+ /* Assume memchr is always declared.  */
+ _GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - "
+                  "use gnulib module memchr for portability" );
+@@ -653,7 +652,6 @@ _GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - "
+ #if defined GNULIB_POSIXCHECK
+ /* strchr() does not work with multibyte strings if the locale encoding is
+    GB18030 and the character to be searched is a digit.  */
+-# undef strchr
+ /* Assume strchr is always declared.  */
+ _GL_WARN_ON_USE_CXX (strchr,
+                      const char *, char *, (const char *, int),
+@@ -945,7 +943,6 @@ _GL_CXXALIASWARN (strpbrk);
+    Even in this simple case, it does not work with multibyte strings if the
+    locale encoding is GB18030 and one of the characters to be searched is a
+    digit.  */
+-#  undef strpbrk
+ _GL_WARN_ON_USE_CXX (strpbrk,
+                      const char *, char *, (const char *, const char *),
+                      "strpbrk cannot work correctly on character strings "
+@@ -975,7 +972,6 @@ _GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings "
+ #if defined GNULIB_POSIXCHECK
+ /* strrchr() does not work with multibyte strings if the locale encoding is
+    GB18030 and the character to be searched is a digit.  */
+-# undef strrchr
+ /* Assume strrchr is always declared.  */
+ _GL_WARN_ON_USE_CXX (strrchr,
+                      const char *, char *, (const char *, int),
+diff --git a/libtextstyle/lib/wchar.in.h b/libtextstyle/lib/wchar.in.h
+index a6c52eb..b4de385 100644
+--- a/libtextstyle/lib/wchar.in.h
++++ b/libtextstyle/lib/wchar.in.h
+@@ -316,7 +316,7 @@ _GL_EXTERN_C int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
+ # ifndef __cplusplus
+-_GL_EXTERN_C wchar_t *wmemchr (const wchar_t *__s, wchar_t __wc, size_t __n)
++_GL_EXTERN_C wchar_t *(wmemchr) (const wchar_t *__s, wchar_t __wc, size_t __n)
+   _GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3);
+ # endif
+ _GL_EXTERN_C wchar_t *wmemset (wchar_t *__s, wchar_t __wc, size_t __n)
meta/recipes-core/gettext/gettext_0.26.bb +1 -0
index b99b301af4..bb73015449 100644
@@ -26,6 +26,7 @@ SRC_URI += " \
            file://serial-tests-config.patch \
            file://0001-tests-autopoint-3-unset-MAKEFLAGS.patch \
            file://0001-init-env.in-do-not-add-C-CXX-parameters.patch \
+           file://0001-Port-to-C23-qualifier-generic-fns-like-strchr.patch \
            "
 SRC_URI:append:libc-musl = " file://0001-Ignore-failing-tests-needing-BIG5-encoding-on-musl.patch"
 
#5 lore raw

PATCH 6/9 util-linux: backport fix to build with glibc-2.43 on host

In reply to [email protected]

From: Martin Jansa <[email protected]>

---
 meta/recipes-core/util-linux/util-linux.inc   |  1 +
 ...x-bsearch-macro-usage-with-glibc-C23.patch | 40 +++++++++++++++++++
 2 files changed, 41 insertions(+)
 create mode 100644 meta/recipes-core/util-linux/util-linux/0001-lsfd-fix-bsearch-macro-usage-with-glibc-C23.patch
meta/recipes-core/util-linux/util-linux.inc +1 -0
index 3135bbb7c6..3bcf681f24 100644
@@ -21,6 +21,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin
            file://0001-ts-kill-decode-use-RTMIN-from-kill-L-instead-of-hard.patch \
            file://0001-tests-helpers-test_sigstate.c-explicitly-reset-SIGIN.patch \
            file://0001-include-mount-api-utils-avoid-using-sys-mount.h.patch \
+           file://0001-lsfd-fix-bsearch-macro-usage-with-glibc-C23.patch \
            file://CVE-2025-14104-01.patch \
            file://CVE-2025-14104-02.patch \
            "
meta/recipes-core/util-linux/util-linux/0001-lsfd-fix-bsearch-macro-usage-with-glibc-C23.patch new file +40 -0
new file mode 100644
index 0000000000..6194594f7f
@@ -0,0 +1,40 @@
+From 710a6989e0fc6dfc9290e2639022d1dbf429557f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <[email protected]>
+Date: Sat, 22 Nov 2025 10:41:08 -0300
+Subject: [PATCH] lsfd: fix bsearch macro usage with glibc C23
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+C23 requires bsearch to be a const preserving macro, build now fails
+with
+
+../lsfd-cmd/lsfd.c:1879:75: error: macro ‘bsearch’ passed 6 arguments, but takes just 5
+ 1879 |                                     nfds, sizeof(struct pollfd), pollfdcmp))
+      |                                                                           ^
+In file included from ../include/c.h:17,
+                 from ../lsfd-cmd/lsfd.c:48:
+/usr/include/stdlib.h:987:10: note: macro ‘bsearch’ defined here
+  987 | # define bsearch(KEY, BASE, NMEMB, SIZE, COMPAR)                        \
+
+  add parenthesis around expression to fix it.
+
+Upstream-Status: Backport [2.42 https://github.com/util-linux/util-linux/commit/711bda1441561bfd2eb6d45fe0bc789535c1f1a8]
+Signed-off-by: Martin Jansa <[email protected]>
+---
+ lsfd-cmd/lsfd.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lsfd-cmd/lsfd.c b/lsfd-cmd/lsfd.c
+index 75cd1de..9aae240 100644
+--- a/lsfd-cmd/lsfd.c
++++ b/lsfd-cmd/lsfd.c
+@@ -1836,7 +1836,7 @@ static void mark_poll_fds_as_multiplexed(char *buf,
+ 		struct file *file = list_entry(f, struct file, files);
+ 		if (is_opened_file(file) && !file->multiplexed) {
+ 			int fd = file->association;
+-			if (bsearch(&(struct pollfd){.fd = fd,}, local.iov_base,
++			if (bsearch((&(struct pollfd){.fd = fd,}), local.iov_base,
+ 				    nfds, sizeof(struct pollfd), pollfdcmp))
+ 				file->multiplexed = 1;
+ 		}
#6 lore raw

PATCH 7/9 systemd: backport fix to build with glibc-2.43 on host

In reply to [email protected]

From: Martin Jansa <[email protected]>

fixes systemd-systemctl-native on hosts with glibc-2.43:

In file included from ../sources/systemd-systemctl-257.9/src/basic/errno-list.c:13:
src/basic/errno-to-name.h:71:23: error: initialized field overwritten [-Werror=override-init]
71 | [EFSBADCRC] = "EFSBADCRC",

      |                       ^~~~~~~~~~~
src/basic/errno-to-name.h:71:23: note: (near initialization for ?errno_names[74]?)
src/basic/errno-to-name.h:114:26: error: initialized field overwritten [-Werror=override-init]
  114 |         [EFSCORRUPTED] = "EFSCORRUPTED",
      |                          ^~~~~~~~~~~~~~

src/basic/errno-to-name.h:114:26: note: (near initialization for ?errno_names[117]?)

---
 meta/recipes-core/systemd/systemd.inc         |  4 ++-
 ...ilter-out-EFSBADCRC-and-EFSCORRUPTED.patch | 34 +++++++++++++++++++
 2 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-core/systemd/systemd/0001-errno-list-filter-out-EFSBADCRC-and-EFSCORRUPTED.patch
meta/recipes-core/systemd/systemd.inc +3 -1
index 761660f2c8..f41acc029d 100644
@@ -17,6 +17,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
 
 SRCREV = "5e38d199a623563698ab4a69acbbe3afa9135198"
 SRCBRANCH = "v257-stable"
-SRC_URI = "git://github.com/systemd/systemd.git;protocol=https;branch=${SRCBRANCH};tag=v${PV}"
+SRC_URI = "git://github.com/systemd/systemd.git;protocol=https;branch=${SRCBRANCH};tag=v${PV} \
+    file://0001-errno-list-filter-out-EFSBADCRC-and-EFSCORRUPTED.patch \
+"
 
 CVE_PRODUCT = "systemd"
meta/recipes-core/systemd/systemd/0001-errno-list-filter-out-EFSBADCRC-and-EFSCORRUPTED.patch new file +34 -0
new file mode 100644
index 0000000000..5673175cb1
@@ -0,0 +1,34 @@
+From fb146f6d2c5118410fd19907651fd8f7310bf69e Mon Sep 17 00:00:00 2001
+From: Yu Watanabe <[email protected]>
+Date: Tue, 24 Feb 2026 20:19:45 +0900
+Subject: [PATCH] errno-list: filter out EFSBADCRC and EFSCORRUPTED
+
+These are introduced in kernel v7.0.
+
+Upstream-Status: Backport [https://github.com/systemd/systemd/commit/3cfb16998808a6ec8012a6120d0a82f0e1a0c8bb]
+Signed-off-by: Martin Jansa <[email protected]>
+---
+ src/basic/generate-errno-list.sh | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/src/basic/generate-errno-list.sh b/src/basic/generate-errno-list.sh
+index f756b2e020..491fa1b6e3 100755
+--- a/src/basic/generate-errno-list.sh
++++ b/src/basic/generate-errno-list.sh
+@@ -3,9 +3,13 @@
+ set -eu
+ set -o pipefail
+ 
+-# In kernel's arch/parisc/include/uapi/asm/errno.h, ECANCELLED and EREFUSED are defined as aliases of
+-# ECANCELED and ECONNREFUSED, respectively. Let's drop them.
++# In kernel's arch/parisc/include/uapi/asm/errno.h, The following aliases are defined:
++# ECANCELLED → ECANCELED
++# EREFUSED → ECONNREFUSED
++# EFSBADCRC → EBADMSG
++# EFSCORRUPTED → EUCLEAN
++# Let's drop them.
+ 
+ ${1:?} -dM -include errno.h - </dev/null | \
+-       grep -Ev '^#define[[:space:]]+(ECANCELLED|EREFUSED)' | \
++       grep -Ev '^#define[[:space:]]+(ECANCELLED|EREFUSED|EFSBADCRC|EFSCORRUPTED)' | \
+        awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }'
#7 lore raw

PATCH 8/9 gcc: backport a fix for building with gcc-16

In reply to [email protected]

From: Martin Jansa <[email protected]>

Fixes:
https://errors.yoctoproject.org/Errors/Details/905192/
when building on host with gcc-16

---
 meta/recipes-devtools/gcc/gcc-15.2.inc        |   1 +
 ...dy-Make-it-buildable-by-C-11-to-C-26.patch | 257 ++++++++++++++++++
 2 files changed, 258 insertions(+)
 create mode 100644 meta/recipes-devtools/gcc/gcc/0028-libcody-Make-it-buildable-by-C-11-to-C-26.patch
meta/recipes-devtools/gcc/gcc-15.2.inc +1 -0
index d178b25487..69eff3621d 100644
@@ -73,6 +73,7 @@ SRC_URI = "${BASEURI} \
            file://0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch \
            file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \
 	   file://0026-fix-pr90579-testcases.patch \
+           file://0028-libcody-Make-it-buildable-by-C-11-to-C-26.patch \
 "
 
 UNPACKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/sources"
meta/recipes-devtools/gcc/gcc/0028-libcody-Make-it-buildable-by-C-11-to-C-26.patch new file +257 -0

257 lines not on this page · raw message

#8 lore raw

PATCH 9/9 binutils: backport patch to fix build with glibc-2.43 on host

In reply to [email protected]

From: Martin Jansa <[email protected]>

Fixes:
../../../gprofng/libcollector/linetrace.c: In function ‘__collector_ext_line_install’:
../../../gprofng/libcollector/linetrace.c:219:45: error: expected identifier before ‘_Generic’
219 | if (java_follow_env != NULL && CALL_UTIL (strstr)(java_follow_env, COLLECTOR_JVMTI_OPTION))
| ^~~~~~
../../../gprofng/libcollector/linetrace.c:219:34: note: in expansion of macro ‘CALL_UTIL’
219 | if (java_follow_env != NULL && CALL_UTIL (strstr)(java_follow_env, COLLECTOR_JVMTI_OPTION))
| ^~~~~~~~~

---
 .../binutils/binutils-2.45.inc                |  1 +
 ...tect-against-standard-library-macros.patch | 31 +++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0022-gprofng-protect-against-standard-library-macros.patch
meta/recipes-devtools/binutils/binutils-2.45.inc +1 -0
index 16a63cabc5..f5456c0b0f 100644
@@ -39,6 +39,7 @@ SRC_URI = "\
      file://0015-CVE-2025-11081.patch \
      file://0016-CVE-2025-11082.patch \
      file://0017-CVE-2025-11083.patch \
+     file://0022-gprofng-protect-against-standard-library-macros.patch \
      file://CVE-2025-11414.patch \
      file://CVE-2025-11412.patch \
      file://CVE-2025-11413.patch \
meta/recipes-devtools/binutils/binutils/0022-gprofng-protect-against-standard-library-macros.patch new file +31 -0
new file mode 100644
index 0000000000..0fa0a93991
@@ -0,0 +1,31 @@
+From 5f66aee7f4bec7a2d8378034116f5e5c3dc50f41 Mon Sep 17 00:00:00 2001
+From: Andreas Schwab <[email protected]>
+Date: Sat, 22 Nov 2025 11:29:43 +0100
+Subject: [PATCH] gprofng: protect against standard library macros
+
+The CALL_UTIL macro can expand to an unparsable expression of the argument
+is a macro, like with the new const-preserving standard library macros in
+C23.
+
+	* gprofng/src/collector_module.h (CALL_UTIL): Add parens to not
+	expand its argument if it is a function-like macro.
+
+Upstream-Status: Backport [2.46 5f66aee7f4bec7a2d8378034116f5e5c3dc50f41]
+Signed-off-by: Martin Jansa <[email protected]>
+---
+ gprofng/src/collector_module.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gprofng/src/collector_module.h b/gprofng/src/collector_module.h
+index b64d69c45ab..859a6dd1f7d 100644
+--- a/gprofng/src/collector_module.h
++++ b/gprofng/src/collector_module.h
+@@ -119,7 +119,7 @@ typedef struct CollectorUtilFuncs
+ extern CollectorUtilFuncs __collector_util_funcs;
+ extern int __collector_dlsym_guard;
+ 
+-#define CALL_UTIL(x) __collector_util_funcs.x
++#define CALL_UTIL(x) (__collector_util_funcs.x)
+ 
+ /* The following constants define the meaning of the "void *arg"
+  * argument of getFrameInfo().
#9 lore raw

Re: [OE-core] [whinlatter][PATCH 9/9] binutils: backport patch to fix build with glibc-2.43 on host

Quoted 11 lines · Martin Jansa via lists.openembedded.org

From: Martin Jansa <[email protected]>

Fixes:
../../../gprofng/libcollector/linetrace.c: In function ‘__collector_ext_line_install’:
../../../gprofng/libcollector/linetrace.c:219:45: error: expected identifier before ‘_Generic’
219 | if (java_follow_env != NULL && CALL_UTIL (strstr)(java_follow_env, COLLECTOR_JVMTI_OPTION))
| ^~~~~~
../../../gprofng/libcollector/linetrace.c:219:34: note: in expansion of macro ‘CALL_UTIL’
219 | if (java_follow_env != NULL && CALL_UTIL (strstr)(java_follow_env, COLLECTOR_JVMTI_OPTION))
| ^~~~~~~~~

Quoted 2 lines

---

Hello Martin,

Thank you for your patches. Ultimately, I took the equivalent patch from Zoltán:
https://lore.kernel.org/all/[email protected]/

Regards,

Quoted 54 lines
 .../binutils/binutils-2.45.inc                |  1 +
 ...tect-against-standard-library-macros.patch | 31 +++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/0022-gprofng-protect-against-standard-library-macros.patch
meta/recipes-devtools/binutils/binutils-2.45.inc +1 -0
index 16a63cabc5..f5456c0b0f 100644
@@ -39,6 +39,7 @@ SRC_URI = "\
      file://0015-CVE-2025-11081.patch \
      file://0016-CVE-2025-11082.patch \
      file://0017-CVE-2025-11083.patch \
+     file://0022-gprofng-protect-against-standard-library-macros.patch \
      file://CVE-2025-11414.patch \
      file://CVE-2025-11412.patch \
      file://CVE-2025-11413.patch \
meta/recipes-devtools/binutils/binutils/0022-gprofng-protect-against-standard-library-macros.patch new file +31 -0
new file mode 100644
index 0000000000..0fa0a93991
@@ -0,0 +1,31 @@
+From 5f66aee7f4bec7a2d8378034116f5e5c3dc50f41 Mon Sep 17 00:00:00 2001
+From: Andreas Schwab <[email protected]>
+Date: Sat, 22 Nov 2025 11:29:43 +0100
+Subject: [PATCH] gprofng: protect against standard library macros
+
+The CALL_UTIL macro can expand to an unparsable expression of the argument
+is a macro, like with the new const-preserving standard library macros in
+C23.
+
+	* gprofng/src/collector_module.h (CALL_UTIL): Add parens to not
+	expand its argument if it is a function-like macro.
+
+Upstream-Status: Backport [2.46 5f66aee7f4bec7a2d8378034116f5e5c3dc50f41]
+Signed-off-by: Martin Jansa <[email protected]>
+---
+ gprofng/src/collector_module.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gprofng/src/collector_module.h b/gprofng/src/collector_module.h
+index b64d69c45ab..859a6dd1f7d 100644
+--- a/gprofng/src/collector_module.h
++++ b/gprofng/src/collector_module.h
+@@ -119,7 +119,7 @@ typedef struct CollectorUtilFuncs
+ extern CollectorUtilFuncs __collector_util_funcs;
+ extern int __collector_dlsym_guard;
+ 
+-#define CALL_UTIL(x) __collector_util_funcs.x
++#define CALL_UTIL(x) (__collector_util_funcs.x)
+ 
+ /* The following constants define the meaning of the "void *arg"
+  * argument of getFrameInfo().
Signature · 2 lines
Yoann Congal
Smile ECS
#10 lore raw

Re: [OE-core] [whinlatter][PATCH 9/9] binutils: backport patch to fix build with glibc-2.43 on host

Quoted 13 lines · Yoann Congal
Quoted 11 lines · Martin Jansa via lists.openembedded.org

From: Martin Jansa <[email protected]>

Fixes:
../../../gprofng/libcollector/linetrace.c: In function ‘__collector_ext_line_install’:
../../../gprofng/libcollector/linetrace.c:219:45: error: expected identifier before ‘_Generic’
219 | if (java_follow_env != NULL && CALL_UTIL (strstr)(java_follow_env, COLLECTOR_JVMTI_OPTION))
| ^~~~~~
../../../gprofng/libcollector/linetrace.c:219:34: note: in expansion of macro ‘CALL_UTIL’
219 | if (java_follow_env != NULL && CALL_UTIL (strstr)(java_follow_env, COLLECTOR_JVMTI_OPTION))
| ^~~~~~~~~

Quoted 8 lines
Quoted 2 lines

---

Hello Martin,

Thank you for your patches. Ultimately, I took the equivalent patch from Zoltán:
https://lore.kernel.org/all/[email protected]/

OK, no problem, I've already checked that both do the same. I was using mine, because I had it in the series for scarthgap already, but they backport the same change from upstream. (It was similar with the patch for gcc where I was using the one I've sent to master a while ago)

Cheers,

#11 lore raw
In reply to [email protected]
Quoted 14 lines · Martin Jansa via lists.openembedded.org

From: Martin Jansa <[email protected]>

glibc-2.43 isn't used in OE builds yet, but this fixes dtc-native:
https://errors.yoctoproject.org/Errors/Details/903983/

../sources/dtc-1.7.2/libfdt/fdt_overlay.c: In function ‘overlay_fixup_phandle’:
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:424:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
424 | sep = memchr(fixup_str, ':', fixup_len);
| ^
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:434:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
434 | sep = memchr(name, ':', fixup_len);
| ^
cc1: all warnings being treated as errors

Quoted 4 lines

---

Hello,

I've started a whinlatter bringup build on the new Ubuntu 26.04 worker with this series applied:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/96/builds/23

It got 2 errors (Other errors are most likely consequences of these ones):

ERROR: shadow-native-4.18.0-r0 do_configure: configure failed:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 6269:

| checking for crypt in -lcrypt... no
| configure: error: crypt() not found
| NOTE: The following config.log files may provide further information.
| NOTE: /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/shadow-native/4.18.0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe shadow-native-4.18.0-r0: task do_configure: Failed

ERROR: virglrenderer-native-1.1.1-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/temp/run.do_compile.2048675' failed with exit code 1
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 29545:

| [4/57] gcc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -Werror=enum-int-mismatch -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings -Wno-missing-field-initializers -Werror=format -fvisibility=hidden -fno-strict-aliasing -imacros /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystem/srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/mesa/libmesa.a.p/util_u_math.c.o -MF src/mesa/libmesa.a.p/util_u_math.c.o.d -o src/mesa/libmesa.a.p/util_u_math.c.o -c ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c
| FAILED: [code=1] src/mesa/libmesa.a.p/util_u_math.c.o
| gcc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -Werror=enum-int-mismatch -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings -Wno-missing-field-initializers -Werror=format -fvisibility=hidden -fno-strict-aliasing -imacros /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystem/srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/mesa/libmesa.a.p/util_u_math.c.o -MF src/mesa/libmesa.a.p/util_u_math.c.o.d -o src/mesa/libmesa.a.p/util_u_math.c.o -c ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c
| In file included from ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads.h:64,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/util/u_thread.h:35,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/util/u_cpu_detect.h:40,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c:32:
| ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:54:9: warning: ‘ONCE_FLAG_INIT’ redefined
|    54 | #define ONCE_FLAG_INIT PTHREAD_ONCE_INIT
|       |         ^~~~~~~~~~~~~~
| In file included from /usr/include/stdlib.h:1191,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:29:
| /usr/include/x86_64-linux-gnu/bits/types/once_flag.h:25:9: note: this is the location of the previous definition
|    25 | #define ONCE_FLAG_INIT __ONCE_FLAG_INIT
|       |         ^~~~~~~~~~~~~~
| ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:69:25: error: conflicting types for ‘once_flag’; have ‘pthread_once_t’ {aka ‘int’}
|    69 | typedef pthread_once_t  once_flag;
|       |                         ^~~~~~~~~
| /usr/include/x86_64-linux-gnu/bits/types/once_flag.h:24:21: note: previous declaration of ‘once_flag’ with type ‘once_flag’
|    24 | typedef __once_flag once_flag;
|       |                     ^~~~~~~~~
| ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:94:1: error: conflicting types for ‘call_once’; have ‘void(int *, void (*)(void))’
|    94 | call_once(once_flag *flag, void (*func)(void))
|       | ^~~~~~~~~
| /usr/include/stdlib.h:1195:13: note: previous declaration of ‘call_once’ with type ‘void(once_flag *, void (*)(void))’
|  1195 | extern void call_once (once_flag *__flag, void (*__func)(void));
|       |             ^~~~~~~~~

Regards,

Signature · 2 lines
Yoann Congal
Smile ECS
#12 lore raw
Quoted 31 lines · Yoann Congal
Quoted 14 lines · Martin Jansa via lists.openembedded.org

From: Martin Jansa <[email protected]>

glibc-2.43 isn't used in OE builds yet, but this fixes dtc-native:
https://errors.yoctoproject.org/Errors/Details/903983/

../sources/dtc-1.7.2/libfdt/fdt_overlay.c: In function ‘overlay_fixup_phandle’:
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:424:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
424 | sep = memchr(fixup_str, ':', fixup_len);
| ^
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:434:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
434 | sep = memchr(name, ':', fixup_len);
| ^
cc1: all warnings being treated as errors

Quoted 4 lines

---

Hello,

I've started a whinlatter bringup build on the new Ubuntu 26.04 worker with this series applied:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/96/builds/23

It got 2 errors (Other errors are most likely consequences of these ones):

ERROR: shadow-native-4.18.0-r0 do_configure: configure failed:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 6269:

Quoted 7 lines
| checking for crypt in -lcrypt... no
| configure: error: crypt() not found
| NOTE: The following config.log files may provide further information.
| NOTE: /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/shadow-native/4.18.0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe shadow-native-4.18.0-r0: task do_configure: Failed

Hello,

for shadow please read
https://lists.openembedded.org/g/openembedded-core/message/234119 the important part:
"libcrypt-dev is no longer installed as a dependency in my minimal docker image" I guess it's now missing on your ubuntu-26.04 host as well.
It used to be typically installed by build-essential -> libc6-dev -> libcrypt-dev but not anymore since 2.42-7:

25.10 questing with 2.42-0ubuntu3.1:
https://packages.ubuntu.com/questing/libc6-dev
26.04 resolute with 2.43-2ubuntu1:
https://packages.ubuntu.com/resolute/libc6-dev

https://changelogs.ubuntu.com/changelogs/pool/main/g/glibc/glibc_2.43-2ubuntu1/changelog:
...
glibc (2.42-7) unstable; urgency=medium

[ Aurelien Jarno ]
* debian/control.in/libc, debian/rules.d/debhelper.mk: drop libcrypt-dev dependency from libc6-dev. Thanks to Helmut Grohne for proposing that, doing an archive rebuild and filling the bug reports.
* debian/control.in/main, debian/sysdeps/linux.mk: enable SystemTap static probes.
* debian/debhelper.in/libc-dev.NEWS: add a NEWS entry about the removal of the obsolete termio interface. Closes: #1124068.
* debian/rules.d/debhelper.mk: ensure that linker scripts work even when

    /usr is unmerged.  Closes: #1120508

* debian/debhelper.in/libc-dev{,-alt}.lintian-overrides, source/lintian-overrides, rules.d/debhelper.mk, salsa-ci.yml: drop unpack-message-for-{orig,source} overrides, fixed in lintian 2.128.0.
* debian/control.in/main: drop Rules-Requires-Root: no, this is now the default.
* debian/libc6.symbols.i386, debian/libc6-i386.symbols.{amd64,x32}: remove the workaround for GLIBC_ABI_GNU_TLS. Closes: #1122038.
* debian/control.in/{libc,i386}: ensure that libdpkg-perl is fixed wrt GLIBC_ABI_GNU_TLS.

-- Aurelien Jarno <[email protected]> Sun, 04 Jan 2026 10:07:24 +0100
...

I'll have a look at virglrenderer-native tomorrow. khem already fixed it in:
https://gitlab.freedesktop.org/virgl/virglrenderer/-/commit/3f0f775edb2df5ea54c37863286ad565ccddb276
https://git.openembedded.org/openembedded-core/commit/?id=8e85dc6b7f5f7668a610b5fd3754c716f0af65b0
https://git.openembedded.org/openembedded-core/commit/?id=5ff5aac9ed9e53a2e06515cc480c7d89a8aa3171
will add a backport in whinlatter and possibly scarthgap as well.

Regards,

Quoted 36 lines

ERROR: virglrenderer-native-1.1.1-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/temp/run.do_compile.2048675' failed with exit code 1
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 29545:

| [4/57] gcc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -Werror=enum-int-mismatch -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings -Wno-missing-field-initializers -Werror=format -fvisibility=hidden -fno-strict-aliasing -imacros /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystem/srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/mesa/libmesa.a.p/util_u_math.c.o -MF src/mesa/libmesa.a.p/util_u_math.c.o.d -o src/mesa/libmesa.a.p/util_u_math.c.o -c ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c
| FAILED: [code=1] src/mesa/libmesa.a.p/util_u_math.c.o
| gcc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -Werror=enum-int-mismatch -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings -Wno-missing-field-initializers -Werror=format -fvisibility=hidden -fno-strict-aliasing -imacros /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystem/srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/mesa/libmesa.a.p/util_u_math.c.o -MF src/mesa/libmesa.a.p/util_u_math.c.o.d -o src/mesa/libmesa.a.p/util_u_math.c.o -c ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c
| In file included from ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads.h:64,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/util/u_thread.h:35,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/util/u_cpu_detect.h:40,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c:32:
| ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:54:9: warning: ‘ONCE_FLAG_INIT’ redefined
|    54 | #define ONCE_FLAG_INIT PTHREAD_ONCE_INIT
|       |         ^~~~~~~~~~~~~~
| In file included from /usr/include/stdlib.h:1191,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:29:
| /usr/include/x86_64-linux-gnu/bits/types/once_flag.h:25:9: note: this is the location of the previous definition
|    25 | #define ONCE_FLAG_INIT __ONCE_FLAG_INIT
|       |         ^~~~~~~~~~~~~~
| ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:69:25: error: conflicting types for ‘once_flag’; have ‘pthread_once_t’ {aka ‘int’}
|    69 | typedef pthread_once_t  once_flag;
|       |                         ^~~~~~~~~
| /usr/include/x86_64-linux-gnu/bits/types/once_flag.h:24:21: note: previous declaration of ‘once_flag’ with type ‘once_flag’
|    24 | typedef __once_flag once_flag;
|       |                     ^~~~~~~~~
| ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:94:1: error: conflicting types for ‘call_once’; have ‘void(int *, void (*)(void))’
|    94 | call_once(once_flag *flag, void (*func)(void))
|       | ^~~~~~~~~
| /usr/include/stdlib.h:1195:13: note: previous declaration of ‘call_once’ with type ‘void(once_flag *, void (*)(void))’
|  1195 | extern void call_once (once_flag *__flag, void (*__func)(void));
|       |             ^~~~~~~~~

Regards,

--
Yoann Congal
Smile ECS

#13 lore raw
Quoted 79 lines · Martin Jansa
Quoted 31 lines · Yoann Congal
Quoted 14 lines · Martin Jansa via lists.openembedded.org

From: Martin Jansa <[email protected]>

glibc-2.43 isn't used in OE builds yet, but this fixes dtc-native:
https://errors.yoctoproject.org/Errors/Details/903983/

../sources/dtc-1.7.2/libfdt/fdt_overlay.c: In function ‘overlay_fixup_phandle’:
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:424:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
424 | sep = memchr(fixup_str, ':', fixup_len);
| ^
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:434:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
434 | sep = memchr(name, ':', fixup_len);
| ^
cc1: all warnings being treated as errors

Quoted 4 lines

---

Hello,

I've started a whinlatter bringup build on the new Ubuntu 26.04 worker with this series applied:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/96/builds/23

It got 2 errors (Other errors are most likely consequences of these ones):

ERROR: shadow-native-4.18.0-r0 do_configure: configure failed:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 6269:

Quoted 7 lines
| checking for crypt in -lcrypt... no
| configure: error: crypt() not found
| NOTE: The following config.log files may provide further information.
| NOTE: /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/shadow-native/4.18.0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe shadow-native-4.18.0-r0: task do_configure: Failed

Hello,

for shadow please read
https://lists.openembedded.org/g/openembedded-core/message/234119 the important part:
"libcrypt-dev is no longer installed as a dependency in my minimal docker image" I guess it's now missing on your ubuntu-26.04 host as well.
It used to be typically installed by build-essential -> libc6-dev -> libcrypt-dev but not anymore since 2.42-7:

25.10 questing with 2.42-0ubuntu3.1:
https://packages.ubuntu.com/questing/libc6-dev
26.04 resolute with 2.43-2ubuntu1:
https://packages.ubuntu.com/resolute/libc6-dev

https://changelogs.ubuntu.com/changelogs/pool/main/g/glibc/glibc_2.43-2ubuntu1/changelog:
...
glibc (2.42-7) unstable; urgency=medium

[ Aurelien Jarno ]
* debian/control.in/libc, debian/rules.d/debhelper.mk: drop libcrypt-dev dependency from libc6-dev. Thanks to Helmut Grohne for proposing that, doing an archive rebuild and filling the bug reports.
* debian/control.in/main, debian/sysdeps/linux.mk: enable SystemTap static probes.
* debian/debhelper.in/libc-dev.NEWS: add a NEWS entry about the removal of the obsolete termio interface. Closes: #1124068.
* debian/rules.d/debhelper.mk: ensure that linker scripts work even when

    /usr is unmerged.  Closes: #1120508

* debian/debhelper.in/libc-dev{,-alt}.lintian-overrides, source/lintian-overrides, rules.d/debhelper.mk, salsa-ci.yml: drop unpack-message-for-{orig,source} overrides, fixed in lintian 2.128.0.
* debian/control.in/main: drop Rules-Requires-Root: no, this is now the default.
* debian/libc6.symbols.i386, debian/libc6-i386.symbols.{amd64,x32}: remove the workaround for GLIBC_ABI_GNU_TLS. Closes: #1122038.
* debian/control.in/{libc,i386}: ensure that libdpkg-perl is fixed wrt GLIBC_ABI_GNU_TLS.

Quoted 2 lines

-- Aurelien Jarno <[email protected]> Sun, 04 Jan 2026 10:07:24 +0100
...

Hello,

In that case, shouldn't we remove "virtual/crypt-native" from ASSUME_PROVIDED?
https://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf#n232

I've tried it but then libxcrypt-native fails to build with:

| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c: In function ‘_crypt_crypt_gost_yescrypt_rn’:
| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c:134:16: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
|   134 |   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
|       |                ^~~~~~
| cc1: all warnings being treated as errors

It looks like the fixes for that are on master but the patches don't apply.

Can you send an update series with those fixes?

Thanks!

Quoted 46 lines

I'll have a look at virglrenderer-native tomorrow. khem already fixed it in:
https://gitlab.freedesktop.org/virgl/virglrenderer/-/commit/3f0f775edb2df5ea54c37863286ad565ccddb276
https://git.openembedded.org/openembedded-core/commit/?id=8e85dc6b7f5f7668a610b5fd3754c716f0af65b0
https://git.openembedded.org/openembedded-core/commit/?id=5ff5aac9ed9e53a2e06515cc480c7d89a8aa3171
will add a backport in whinlatter and possibly scarthgap as well.

Regards,

Quoted 36 lines

ERROR: virglrenderer-native-1.1.1-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/temp/run.do_compile.2048675' failed with exit code 1
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 29545:

| [4/57] gcc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -Werror=enum-int-mismatch -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings -Wno-missing-field-initializers -Werror=format -fvisibility=hidden -fno-strict-aliasing -imacros /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystem/srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/mesa/libmesa.a.p/util_u_math.c.o -MF src/mesa/libmesa.a.p/util_u_math.c.o.d -o src/mesa/libmesa.a.p/util_u_math.c.o -c ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c
| FAILED: [code=1] src/mesa/libmesa.a.p/util_u_math.c.o
| gcc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -Werror=enum-int-mismatch -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings -Wno-missing-field-initializers -Werror=format -fvisibility=hidden -fno-strict-aliasing -imacros /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystem/srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/mesa/libmesa.a.p/util_u_math.c.o -MF src/mesa/libmesa.a.p/util_u_math.c.o.d -o src/mesa/libmesa.a.p/util_u_math.c.o -c ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c
| In file included from ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads.h:64,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/util/u_thread.h:35,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/util/u_cpu_detect.h:40,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c:32:
| ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:54:9: warning: ‘ONCE_FLAG_INIT’ redefined
|    54 | #define ONCE_FLAG_INIT PTHREAD_ONCE_INIT
|       |         ^~~~~~~~~~~~~~
| In file included from /usr/include/stdlib.h:1191,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:29:
| /usr/include/x86_64-linux-gnu/bits/types/once_flag.h:25:9: note: this is the location of the previous definition
|    25 | #define ONCE_FLAG_INIT __ONCE_FLAG_INIT
|       |         ^~~~~~~~~~~~~~
| ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:69:25: error: conflicting types for ‘once_flag’; have ‘pthread_once_t’ {aka ‘int’}
|    69 | typedef pthread_once_t  once_flag;
|       |                         ^~~~~~~~~
| /usr/include/x86_64-linux-gnu/bits/types/once_flag.h:24:21: note: previous declaration of ‘once_flag’ with type ‘once_flag’
|    24 | typedef __once_flag once_flag;
|       |                     ^~~~~~~~~
| ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:94:1: error: conflicting types for ‘call_once’; have ‘void(int *, void (*)(void))’
|    94 | call_once(once_flag *flag, void (*func)(void))
|       | ^~~~~~~~~
| /usr/include/stdlib.h:1195:13: note: previous declaration of ‘call_once’ with type ‘void(once_flag *, void (*)(void))’
|  1195 | extern void call_once (once_flag *__flag, void (*__func)(void));
|       |             ^~~~~~~~~

Regards,

--
Yoann Congal
Smile ECS

Signature · 2 lines
Yoann Congal
Smile ECS
#14 lore raw
Quoted 96 lines · Yoann Congal
Quoted 79 lines · Martin Jansa
Quoted 31 lines · Yoann Congal
Quoted 14 lines · Martin Jansa via lists.openembedded.org

From: Martin Jansa <[email protected]>

glibc-2.43 isn't used in OE builds yet, but this fixes dtc-native:
https://errors.yoctoproject.org/Errors/Details/903983/

../sources/dtc-1.7.2/libfdt/fdt_overlay.c: In function ‘overlay_fixup_phandle’:
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:424:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
424 | sep = memchr(fixup_str, ':', fixup_len);
| ^
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:434:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
434 | sep = memchr(name, ':', fixup_len);
| ^
cc1: all warnings being treated as errors

Quoted 4 lines

---

Hello,

I've started a whinlatter bringup build on the new Ubuntu 26.04 worker with this series applied:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/96/builds/23

It got 2 errors (Other errors are most likely consequences of these ones):

ERROR: shadow-native-4.18.0-r0 do_configure: configure failed:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 6269:

Quoted 7 lines
| checking for crypt in -lcrypt... no
| configure: error: crypt() not found
| NOTE: The following config.log files may provide further information.
| NOTE: /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/shadow-native/4.18.0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe shadow-native-4.18.0-r0: task do_configure: Failed

Hello,

for shadow please read
https://lists.openembedded.org/g/openembedded-core/message/234119 the important part:
"libcrypt-dev is no longer installed as a dependency in my minimal docker image" I guess it's now missing on your ubuntu-26.04 host as well.
It used to be typically installed by build-essential -> libc6-dev -> libcrypt-dev but not anymore since 2.42-7:

25.10 questing with 2.42-0ubuntu3.1:
https://packages.ubuntu.com/questing/libc6-dev
26.04 resolute with 2.43-2ubuntu1:
https://packages.ubuntu.com/resolute/libc6-dev

https://changelogs.ubuntu.com/changelogs/pool/main/g/glibc/glibc_2.43-2ubuntu1/changelog:
...
glibc (2.42-7) unstable; urgency=medium

[ Aurelien Jarno ]
* debian/control.in/libc, debian/rules.d/debhelper.mk: drop libcrypt-dev dependency from libc6-dev. Thanks to Helmut Grohne for proposing that, doing an archive rebuild and filling the bug reports.
* debian/control.in/main, debian/sysdeps/linux.mk: enable SystemTap static probes.
* debian/debhelper.in/libc-dev.NEWS: add a NEWS entry about the removal of the obsolete termio interface. Closes: #1124068.
* debian/rules.d/debhelper.mk: ensure that linker scripts work even when

    /usr is unmerged.  Closes: #1120508

* debian/debhelper.in/libc-dev{,-alt}.lintian-overrides, source/lintian-overrides, rules.d/debhelper.mk, salsa-ci.yml: drop unpack-message-for-{orig,source} overrides, fixed in lintian 2.128.0.
* debian/control.in/main: drop Rules-Requires-Root: no, this is now the default.
* debian/libc6.symbols.i386, debian/libc6-i386.symbols.{amd64,x32}: remove the workaround for GLIBC_ABI_GNU_TLS. Closes: #1122038.
* debian/control.in/{libc,i386}: ensure that libdpkg-perl is fixed wrt GLIBC_ABI_GNU_TLS.

Quoted 2 lines

-- Aurelien Jarno <[email protected]> Sun, 04 Jan 2026 10:07:24 +0100
...

Hello,

In that case, shouldn't we remove "virtual/crypt-native" from ASSUME_PROVIDED?
https://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf#n232

I've tried it but then libxcrypt-native fails to build with:

| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c: In function ‘_crypt_crypt_gost_yescrypt_rn’:
| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c:134:16: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
|   134 |   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
|       |                ^~~~~~
| cc1: all warnings being treated as errors
Quoted 4 lines

It looks like the fixes for that are on master but the patches don't apply.

Can you send an update series with those fixes?

Patches for building libxcrypt-native? I still see virtual/crypt-native in ASSUME_PROVIDED in master, that's why I've added libcrypt-dev into the ubuntu-26.04 image at least until the same is resolved in wrynose/master. The same issue is in current master.

#15 lore raw
Quoted 100 lines · Martin Jansa
Quoted 99 lines · Yoann Congal
Quoted 79 lines · Martin Jansa
Quoted 31 lines · Yoann Congal
Quoted 14 lines · Martin Jansa via lists.openembedded.org

From: Martin Jansa <[email protected]>

glibc-2.43 isn't used in OE builds yet, but this fixes dtc-native:
https://errors.yoctoproject.org/Errors/Details/903983/

../sources/dtc-1.7.2/libfdt/fdt_overlay.c: In function ‘overlay_fixup_phandle’:
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:424:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
424 | sep = memchr(fixup_str, ':', fixup_len);
| ^
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:434:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
434 | sep = memchr(name, ':', fixup_len);
| ^
cc1: all warnings being treated as errors

Quoted 4 lines

---

Hello,

I've started a whinlatter bringup build on the new Ubuntu 26.04 worker with this series applied:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/96/builds/23

It got 2 errors (Other errors are most likely consequences of these ones):

ERROR: shadow-native-4.18.0-r0 do_configure: configure failed:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 6269:

Quoted 7 lines
| checking for crypt in -lcrypt... no
| configure: error: crypt() not found
| NOTE: The following config.log files may provide further information.
| NOTE: /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/shadow-native/4.18.0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe shadow-native-4.18.0-r0: task do_configure: Failed

Hello,

for shadow please read
https://lists.openembedded.org/g/openembedded-core/message/234119 the important part:
"libcrypt-dev is no longer installed as a dependency in my minimal docker image" I guess it's now missing on your ubuntu-26.04 host as well.
It used to be typically installed by build-essential -> libc6-dev -> libcrypt-dev but not anymore since 2.42-7:

25.10 questing with 2.42-0ubuntu3.1:
https://packages.ubuntu.com/questing/libc6-dev
26.04 resolute with 2.43-2ubuntu1:
https://packages.ubuntu.com/resolute/libc6-dev

https://changelogs.ubuntu.com/changelogs/pool/main/g/glibc/glibc_2.43-2ubuntu1/changelog:
...
glibc (2.42-7) unstable; urgency=medium

[ Aurelien Jarno ]
* debian/control.in/libc, debian/rules.d/debhelper.mk: drop libcrypt-dev dependency from libc6-dev. Thanks to Helmut Grohne for proposing that, doing an archive rebuild and filling the bug reports.
* debian/control.in/main, debian/sysdeps/linux.mk: enable SystemTap static probes.
* debian/debhelper.in/libc-dev.NEWS: add a NEWS entry about the removal of the obsolete termio interface. Closes: #1124068.
* debian/rules.d/debhelper.mk: ensure that linker scripts work even when

    /usr is unmerged.  Closes: #1120508

* debian/debhelper.in/libc-dev{,-alt}.lintian-overrides, source/lintian-overrides, rules.d/debhelper.mk, salsa-ci.yml: drop unpack-message-for-{orig,source} overrides, fixed in lintian 2.128.0.
* debian/control.in/main: drop Rules-Requires-Root: no, this is now the default.
* debian/libc6.symbols.i386, debian/libc6-i386.symbols.{amd64,x32}: remove the workaround for GLIBC_ABI_GNU_TLS. Closes: #1122038.
* debian/control.in/{libc,i386}: ensure that libdpkg-perl is fixed wrt GLIBC_ABI_GNU_TLS.

Quoted 2 lines

-- Aurelien Jarno <[email protected]> Sun, 04 Jan 2026 10:07:24 +0100
...

Hello,

In that case, shouldn't we remove "virtual/crypt-native" from ASSUME_PROVIDED?
https://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf#n232

I've tried it but then libxcrypt-native fails to build with:

| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c: In function ‘_crypt_crypt_gost_yescrypt_rn’:
| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c:134:16: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
|   134 |   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
|       |                ^~~~~~
| cc1: all warnings being treated as errors

It looks like the fixes for that are on master but the patches don't apply.

Quoted 7 lines
Quoted 1 line

Can you send an update series with those fixes?

Patches for building libxcrypt-native? I still see virtual/crypt-native in ASSUME_PROVIDED in master, that's why I've added libcrypt-dev into the ubuntu-26.04 image at least until the same is resolved in wrynose/master. The same issue is in current master.

(Sorry, our mails crossed)

I discussed that with Paul. He suggested to add libcrypt-dev as a host dependency instead (ie. what you describe). I agree (sorry about the sudden change of heart).

Can you send the yocto-docs patch to do this?

Signature · 2 lines
Yoann Congal
Smile ECS
#16 lore raw
Quoted 110 lines · Yoann Congal
Quoted 100 lines · Martin Jansa
Quoted 99 lines · Yoann Congal
Quoted 79 lines · Martin Jansa
Quoted 31 lines · Yoann Congal
Quoted 14 lines · Martin Jansa via lists.openembedded.org

From: Martin Jansa <[email protected]>

glibc-2.43 isn't used in OE builds yet, but this fixes dtc-native:
https://errors.yoctoproject.org/Errors/Details/903983/

../sources/dtc-1.7.2/libfdt/fdt_overlay.c: In function ‘overlay_fixup_phandle’:
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:424:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
424 | sep = memchr(fixup_str, ':', fixup_len);
| ^
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:434:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
434 | sep = memchr(name, ':', fixup_len);
| ^
cc1: all warnings being treated as errors

Quoted 4 lines

---

Hello,

I've started a whinlatter bringup build on the new Ubuntu 26.04 worker with this series applied:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/96/builds/23

It got 2 errors (Other errors are most likely consequences of these ones):

ERROR: shadow-native-4.18.0-r0 do_configure: configure failed:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 6269:

Quoted 7 lines
| checking for crypt in -lcrypt... no
| configure: error: crypt() not found
| NOTE: The following config.log files may provide further information.
| NOTE: /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/shadow-native/4.18.0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe shadow-native-4.18.0-r0: task do_configure: Failed

Hello,

for shadow please read
https://lists.openembedded.org/g/openembedded-core/message/234119 the important part:
"libcrypt-dev is no longer installed as a dependency in my minimal docker image" I guess it's now missing on your ubuntu-26.04 host as well.
It used to be typically installed by build-essential -> libc6-dev -> libcrypt-dev but not anymore since 2.42-7:

25.10 questing with 2.42-0ubuntu3.1:
https://packages.ubuntu.com/questing/libc6-dev
26.04 resolute with 2.43-2ubuntu1:
https://packages.ubuntu.com/resolute/libc6-dev

https://changelogs.ubuntu.com/changelogs/pool/main/g/glibc/glibc_2.43-2ubuntu1/changelog:
...
glibc (2.42-7) unstable; urgency=medium

[ Aurelien Jarno ]
* debian/control.in/libc, debian/rules.d/debhelper.mk: drop libcrypt-dev dependency from libc6-dev. Thanks to Helmut Grohne for proposing that, doing an archive rebuild and filling the bug reports.
* debian/control.in/main, debian/sysdeps/linux.mk: enable SystemTap static probes.
* debian/debhelper.in/libc-dev.NEWS: add a NEWS entry about the removal of the obsolete termio interface. Closes: #1124068.
* debian/rules.d/debhelper.mk: ensure that linker scripts work even when

    /usr is unmerged.  Closes: #1120508

* debian/debhelper.in/libc-dev{,-alt}.lintian-overrides, source/lintian-overrides, rules.d/debhelper.mk, salsa-ci.yml: drop unpack-message-for-{orig,source} overrides, fixed in lintian 2.128.0.
* debian/control.in/main: drop Rules-Requires-Root: no, this is now the default.
* debian/libc6.symbols.i386, debian/libc6-i386.symbols.{amd64,x32}: remove the workaround for GLIBC_ABI_GNU_TLS. Closes: #1122038.
* debian/control.in/{libc,i386}: ensure that libdpkg-perl is fixed wrt GLIBC_ABI_GNU_TLS.

Quoted 2 lines

-- Aurelien Jarno <[email protected]> Sun, 04 Jan 2026 10:07:24 +0100
...

Hello,

In that case, shouldn't we remove "virtual/crypt-native" from ASSUME_PROVIDED?
https://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf#n232

I've tried it but then libxcrypt-native fails to build with:

| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c: In function ‘_crypt_crypt_gost_yescrypt_rn’:
| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c:134:16: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
|   134 |   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
|       |                ^~~~~~
| cc1: all warnings being treated as errors

It looks like the fixes for that are on master but the patches don't apply.

Quoted 7 lines
Quoted 1 line

Can you send an update series with those fixes?

Patches for building libxcrypt-native? I still see virtual/crypt-native in ASSUME_PROVIDED in master, that's why I've added libcrypt-dev into the ubuntu-26.04 image at least until the same is resolved in wrynose/master. The same issue is in current master.

Quoted 7 lines

(Sorry, our mails crossed)

I discussed that with Paul. He suggested to add libcrypt-dev as a host dependency instead (ie. what you describe). I agree (sorry about the sudden change of heart).

Can you send the yocto-docs patch to do this?

Yes, done:
https://lists.yoctoproject.org/g/docs/message/9213

#17 lore raw
Quoted 113 lines · Martin Jansa
Quoted 112 lines · Yoann Congal
Quoted 100 lines · Martin Jansa
Quoted 99 lines · Yoann Congal
Quoted 79 lines · Martin Jansa
Quoted 31 lines · Yoann Congal
Quoted 14 lines · Martin Jansa via lists.openembedded.org

From: Martin Jansa <[email protected]>

glibc-2.43 isn't used in OE builds yet, but this fixes dtc-native:
https://errors.yoctoproject.org/Errors/Details/903983/

../sources/dtc-1.7.2/libfdt/fdt_overlay.c: In function ‘overlay_fixup_phandle’:
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:424:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
424 | sep = memchr(fixup_str, ':', fixup_len);
| ^
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:434:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
434 | sep = memchr(name, ':', fixup_len);
| ^
cc1: all warnings being treated as errors

Quoted 4 lines

---

Hello,

I've started a whinlatter bringup build on the new Ubuntu 26.04 worker with this series applied:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/96/builds/23

It got 2 errors (Other errors are most likely consequences of these ones):

ERROR: shadow-native-4.18.0-r0 do_configure: configure failed:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 6269:

Quoted 7 lines
| checking for crypt in -lcrypt... no
| configure: error: crypt() not found
| NOTE: The following config.log files may provide further information.
| NOTE: /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/shadow-native/4.18.0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe shadow-native-4.18.0-r0: task do_configure: Failed

Hello,

for shadow please read
https://lists.openembedded.org/g/openembedded-core/message/234119 the important part:
"libcrypt-dev is no longer installed as a dependency in my minimal docker image" I guess it's now missing on your ubuntu-26.04 host as well.
It used to be typically installed by build-essential -> libc6-dev -> libcrypt-dev but not anymore since 2.42-7:

25.10 questing with 2.42-0ubuntu3.1:
https://packages.ubuntu.com/questing/libc6-dev
26.04 resolute with 2.43-2ubuntu1:
https://packages.ubuntu.com/resolute/libc6-dev

https://changelogs.ubuntu.com/changelogs/pool/main/g/glibc/glibc_2.43-2ubuntu1/changelog:
...
glibc (2.42-7) unstable; urgency=medium

[ Aurelien Jarno ]
* debian/control.in/libc, debian/rules.d/debhelper.mk: drop libcrypt-dev dependency from libc6-dev. Thanks to Helmut Grohne for proposing that, doing an archive rebuild and filling the bug reports.
* debian/control.in/main, debian/sysdeps/linux.mk: enable SystemTap static probes.
* debian/debhelper.in/libc-dev.NEWS: add a NEWS entry about the removal of the obsolete termio interface. Closes: #1124068.
* debian/rules.d/debhelper.mk: ensure that linker scripts work even when

    /usr is unmerged.  Closes: #1120508

* debian/debhelper.in/libc-dev{,-alt}.lintian-overrides, source/lintian-overrides, rules.d/debhelper.mk, salsa-ci.yml: drop unpack-message-for-{orig,source} overrides, fixed in lintian 2.128.0.
* debian/control.in/main: drop Rules-Requires-Root: no, this is now the default.
* debian/libc6.symbols.i386, debian/libc6-i386.symbols.{amd64,x32}: remove the workaround for GLIBC_ABI_GNU_TLS. Closes: #1122038.
* debian/control.in/{libc,i386}: ensure that libdpkg-perl is fixed wrt GLIBC_ABI_GNU_TLS.

Quoted 2 lines

-- Aurelien Jarno <[email protected]> Sun, 04 Jan 2026 10:07:24 +0100
...

Hello,

In that case, shouldn't we remove "virtual/crypt-native" from ASSUME_PROVIDED?
https://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf#n232

I've tried it but then libxcrypt-native fails to build with:

| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c: In function ‘_crypt_crypt_gost_yescrypt_rn’:
| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c:134:16: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
|   134 |   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
|       |                ^~~~~~
| cc1: all warnings being treated as errors

It looks like the fixes for that are on master but the patches don't apply.

Quoted 7 lines
Quoted 1 line

Can you send an update series with those fixes?

Patches for building libxcrypt-native? I still see virtual/crypt-native in ASSUME_PROVIDED in master, that's why I've added libcrypt-dev into the ubuntu-26.04 image at least until the same is resolved in wrynose/master. The same issue is in current master.

(Sorry, our mails crossed)

Quoted 8 lines
Quoted 5 lines

I discussed that with Paul. He suggested to add libcrypt-dev as a host dependency instead (ie. what you describe). I agree (sorry about the sudden change of heart).

Can you send the yocto-docs patch to do this?

Yes, done:
https://lists.yoctoproject.org/g/docs/message/9213

Awesome, thanks!
Next, I will ask helpdesk to install libcrypt-dev on the ubuntu 26.04 worker and start the build with the added patch "virglrenderer: Fix build with glibc 2.43+"

Signature · 2 lines
Yoann Congal
Smile ECS
#18 lore raw
Quoted 121 lines · Yoann Congal
Quoted 119 lines · Martin Jansa
Quoted 117 lines · Yoann Congal
Quoted 100 lines · Martin Jansa
Quoted 99 lines · Yoann Congal
Quoted 79 lines · Martin Jansa
Quoted 31 lines · Yoann Congal
Quoted 14 lines · Martin Jansa via lists.openembedded.org

From: Martin Jansa <[email protected]>

glibc-2.43 isn't used in OE builds yet, but this fixes dtc-native:
https://errors.yoctoproject.org/Errors/Details/903983/

../sources/dtc-1.7.2/libfdt/fdt_overlay.c: In function ‘overlay_fixup_phandle’:
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:424:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
424 | sep = memchr(fixup_str, ':', fixup_len);
| ^
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:434:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
434 | sep = memchr(name, ':', fixup_len);
| ^
cc1: all warnings being treated as errors

Quoted 4 lines

---

Hello,

I've started a whinlatter bringup build on the new Ubuntu 26.04 worker with this series applied:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/96/builds/23

It got 2 errors (Other errors are most likely consequences of these ones):

ERROR: shadow-native-4.18.0-r0 do_configure: configure failed:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 6269:

Quoted 7 lines
| checking for crypt in -lcrypt... no
| configure: error: crypt() not found
| NOTE: The following config.log files may provide further information.
| NOTE: /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/shadow-native/4.18.0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe shadow-native-4.18.0-r0: task do_configure: Failed

Hello,

for shadow please read
https://lists.openembedded.org/g/openembedded-core/message/234119 the important part:
"libcrypt-dev is no longer installed as a dependency in my minimal docker image" I guess it's now missing on your ubuntu-26.04 host as well.
It used to be typically installed by build-essential -> libc6-dev -> libcrypt-dev but not anymore since 2.42-7:

25.10 questing with 2.42-0ubuntu3.1:
https://packages.ubuntu.com/questing/libc6-dev
26.04 resolute with 2.43-2ubuntu1:
https://packages.ubuntu.com/resolute/libc6-dev

https://changelogs.ubuntu.com/changelogs/pool/main/g/glibc/glibc_2.43-2ubuntu1/changelog:
...
glibc (2.42-7) unstable; urgency=medium

[ Aurelien Jarno ]
* debian/control.in/libc, debian/rules.d/debhelper.mk: drop libcrypt-dev dependency from libc6-dev. Thanks to Helmut Grohne for proposing that, doing an archive rebuild and filling the bug reports.
* debian/control.in/main, debian/sysdeps/linux.mk: enable SystemTap static probes.
* debian/debhelper.in/libc-dev.NEWS: add a NEWS entry about the removal of the obsolete termio interface. Closes: #1124068.
* debian/rules.d/debhelper.mk: ensure that linker scripts work even when

    /usr is unmerged.  Closes: #1120508

* debian/debhelper.in/libc-dev{,-alt}.lintian-overrides, source/lintian-overrides, rules.d/debhelper.mk, salsa-ci.yml: drop unpack-message-for-{orig,source} overrides, fixed in lintian 2.128.0.
* debian/control.in/main: drop Rules-Requires-Root: no, this is now the default.
* debian/libc6.symbols.i386, debian/libc6-i386.symbols.{amd64,x32}: remove the workaround for GLIBC_ABI_GNU_TLS. Closes: #1122038.
* debian/control.in/{libc,i386}: ensure that libdpkg-perl is fixed wrt GLIBC_ABI_GNU_TLS.

Quoted 2 lines

-- Aurelien Jarno <[email protected]> Sun, 04 Jan 2026 10:07:24 +0100
...

Hello,

In that case, shouldn't we remove "virtual/crypt-native" from ASSUME_PROVIDED?
https://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf#n232

I've tried it but then libxcrypt-native fails to build with:

| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c: In function ‘_crypt_crypt_gost_yescrypt_rn’:
| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c:134:16: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
|   134 |   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
|       |                ^~~~~~
| cc1: all warnings being treated as errors

It looks like the fixes for that are on master but the patches don't apply.

Quoted 7 lines
Quoted 1 line

Can you send an update series with those fixes?

Patches for building libxcrypt-native? I still see virtual/crypt-native in ASSUME_PROVIDED in master, that's why I've added libcrypt-dev into the ubuntu-26.04 image at least until the same is resolved in wrynose/master. The same issue is in current master.

(Sorry, our mails crossed)

I discussed that with Paul. He suggested to add libcrypt-dev as a host dependency instead (ie. what you describe). I agree (sorry about the sudden change of heart).

Can you send the yocto-docs patch to do this?

Quoted 7 lines
Quoted 2 lines

Yes, done:
https://lists.yoctoproject.org/g/docs/message/9213

Awesome, thanks!
Next, I will ask helpdesk to install libcrypt-dev on the ubuntu 26.04 worker and start the build with the added patch "virglrenderer: Fix build with glibc 2.43+"

Sounds good, thanks.

I've also sent the libxcrypt-native fixes for whinlatter and scarthgap (slightly modified cherry-picks from master). It's not needed to build any of my images, but as you already noticed them failing on 26.04 someone else might need them.

Cheers,

#19 lore raw
In reply to Yoann Congal
Quoted 95 lines · Yoann Congal
Quoted 79 lines · Martin Jansa
Quoted 31 lines · Yoann Congal
Quoted 14 lines · Martin Jansa via lists.openembedded.org

From: Martin Jansa <[email protected]>

glibc-2.43 isn't used in OE builds yet, but this fixes dtc-native:
https://errors.yoctoproject.org/Errors/Details/903983/

../sources/dtc-1.7.2/libfdt/fdt_overlay.c: In function ‘overlay_fixup_phandle’:
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:424:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
424 | sep = memchr(fixup_str, ':', fixup_len);
| ^
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:434:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
434 | sep = memchr(name, ':', fixup_len);
| ^
cc1: all warnings being treated as errors

Quoted 4 lines

---

Hello,

I've started a whinlatter bringup build on the new Ubuntu 26.04 worker with this series applied:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/96/builds/23

It got 2 errors (Other errors are most likely consequences of these ones):

ERROR: shadow-native-4.18.0-r0 do_configure: configure failed:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 6269:

Quoted 7 lines
| checking for crypt in -lcrypt... no
| configure: error: crypt() not found
| NOTE: The following config.log files may provide further information.
| NOTE: /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/shadow-native/4.18.0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe shadow-native-4.18.0-r0: task do_configure: Failed

Hello,

for shadow please read
https://lists.openembedded.org/g/openembedded-core/message/234119 the important part:
"libcrypt-dev is no longer installed as a dependency in my minimal docker image" I guess it's now missing on your ubuntu-26.04 host as well.
It used to be typically installed by build-essential -> libc6-dev -> libcrypt-dev but not anymore since 2.42-7:

25.10 questing with 2.42-0ubuntu3.1:
https://packages.ubuntu.com/questing/libc6-dev
26.04 resolute with 2.43-2ubuntu1:
https://packages.ubuntu.com/resolute/libc6-dev

https://changelogs.ubuntu.com/changelogs/pool/main/g/glibc/glibc_2.43-2ubuntu1/changelog:
...
glibc (2.42-7) unstable; urgency=medium

[ Aurelien Jarno ]
* debian/control.in/libc, debian/rules.d/debhelper.mk: drop libcrypt-dev dependency from libc6-dev. Thanks to Helmut Grohne for proposing that, doing an archive rebuild and filling the bug reports.
* debian/control.in/main, debian/sysdeps/linux.mk: enable SystemTap static probes.
* debian/debhelper.in/libc-dev.NEWS: add a NEWS entry about the removal of the obsolete termio interface. Closes: #1124068.
* debian/rules.d/debhelper.mk: ensure that linker scripts work even when

    /usr is unmerged.  Closes: #1120508

* debian/debhelper.in/libc-dev{,-alt}.lintian-overrides, source/lintian-overrides, rules.d/debhelper.mk, salsa-ci.yml: drop unpack-message-for-{orig,source} overrides, fixed in lintian 2.128.0.
* debian/control.in/main: drop Rules-Requires-Root: no, this is now the default.
* debian/libc6.symbols.i386, debian/libc6-i386.symbols.{amd64,x32}: remove the workaround for GLIBC_ABI_GNU_TLS. Closes: #1122038.
* debian/control.in/{libc,i386}: ensure that libdpkg-perl is fixed wrt GLIBC_ABI_GNU_TLS.

Quoted 2 lines

-- Aurelien Jarno <[email protected]> Sun, 04 Jan 2026 10:07:24 +0100
...

Hello,

In that case, shouldn't we remove "virtual/crypt-native" from ASSUME_PROVIDED?
https://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf#n232

I've tried it but then libxcrypt-native fails to build with:

| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c: In function ‘_crypt_crypt_gost_yescrypt_rn’:
| ../sources/libxcrypt-4.4.38/lib/crypt-gost-yescrypt.c:134:16: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
|   134 |   char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
|       |                ^~~~~~
| cc1: all warnings being treated as errors
Quoted 4 lines

It looks like the fixes for that are on master but the patches don't apply.

Can you send an update series with those fixes?

I discussed that with Paul. He suggested to add libcrypt-dev as a host dependency instead. I agree (sorry about the sudden change of heart).

Can you send the yocto-docs patch to do this?

Quoted 49 lines

Thanks!

Quoted 46 lines

I'll have a look at virglrenderer-native tomorrow. khem already fixed it in:
https://gitlab.freedesktop.org/virgl/virglrenderer/-/commit/3f0f775edb2df5ea54c37863286ad565ccddb276
https://git.openembedded.org/openembedded-core/commit/?id=8e85dc6b7f5f7668a610b5fd3754c716f0af65b0
https://git.openembedded.org/openembedded-core/commit/?id=5ff5aac9ed9e53a2e06515cc480c7d89a8aa3171
will add a backport in whinlatter and possibly scarthgap as well.

Regards,

Quoted 36 lines

ERROR: virglrenderer-native-1.1.1-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/temp/run.do_compile.2048675' failed with exit code 1
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 29545:

| [4/57] gcc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -Werror=enum-int-mismatch -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings -Wno-missing-field-initializers -Werror=format -fvisibility=hidden -fno-strict-aliasing -imacros /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystem/srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/mesa/libmesa.a.p/util_u_math.c.o -MF src/mesa/libmesa.a.p/util_u_math.c.o.d -o src/mesa/libmesa.a.p/util_u_math.c.o -c ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c
| FAILED: [code=1] src/mesa/libmesa.a.p/util_u_math.c.o
| gcc -Isrc/mesa/libmesa.a.p -Isrc/mesa -I../sources/virglrenderer-1.1.1/src/mesa -I../sources/virglrenderer-1.1.1/src/mesa/compat -I../sources/virglrenderer-1.1.1/src/mesa/pipe -I../sources/virglrenderer-1.1.1/src/mesa/util -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -Werror=enum-int-mismatch -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings -Wno-missing-field-initializers -Werror=format -fvisibility=hidden -fno-strict-aliasing -imacros /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/build/config.h -DHAVE_CONFIG_H=1 -isystem/srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/virglrenderer-native/1.1.1/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -pthread -MD -MQ src/mesa/libmesa.a.p/util_u_math.c.o -MF src/mesa/libmesa.a.p/util_u_math.c.o.d -o src/mesa/libmesa.a.p/util_u_math.c.o -c ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c
| In file included from ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads.h:64,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/util/u_thread.h:35,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/util/u_cpu_detect.h:40,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/util/u_math.c:32:
| ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:54:9: warning: ‘ONCE_FLAG_INIT’ redefined
|    54 | #define ONCE_FLAG_INIT PTHREAD_ONCE_INIT
|       |         ^~~~~~~~~~~~~~
| In file included from /usr/include/stdlib.h:1191,
|                  from ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:29:
| /usr/include/x86_64-linux-gnu/bits/types/once_flag.h:25:9: note: this is the location of the previous definition
|    25 | #define ONCE_FLAG_INIT __ONCE_FLAG_INIT
|       |         ^~~~~~~~~~~~~~
| ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:69:25: error: conflicting types for ‘once_flag’; have ‘pthread_once_t’ {aka ‘int’}
|    69 | typedef pthread_once_t  once_flag;
|       |                         ^~~~~~~~~
| /usr/include/x86_64-linux-gnu/bits/types/once_flag.h:24:21: note: previous declaration of ‘once_flag’ with type ‘once_flag’
|    24 | typedef __once_flag once_flag;
|       |                     ^~~~~~~~~
| ../sources/virglrenderer-1.1.1/src/mesa/compat/c11/threads_posix.h:94:1: error: conflicting types for ‘call_once’; have ‘void(int *, void (*)(void))’
|    94 | call_once(once_flag *flag, void (*func)(void))
|       | ^~~~~~~~~
| /usr/include/stdlib.h:1195:13: note: previous declaration of ‘call_once’ with type ‘void(once_flag *, void (*)(void))’
|  1195 | extern void call_once (once_flag *__flag, void (*__func)(void));
|       |             ^~~~~~~~~

Regards,

--
Yoann Congal
Smile ECS

Signature · 2 lines
Yoann Congal
Smile ECS

A message that is not in the archive (sent off-list or not yet received): [email protected]

#21 lore raw
Quoted 84 lines · Martin Jansa via lists.openembedded.org
Quoted 31 lines · Yoann Congal
Quoted 14 lines · Martin Jansa via lists.openembedded.org

From: Martin Jansa <[email protected]>

glibc-2.43 isn't used in OE builds yet, but this fixes dtc-native:
https://errors.yoctoproject.org/Errors/Details/903983/

../sources/dtc-1.7.2/libfdt/fdt_overlay.c: In function ‘overlay_fixup_phandle’:
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:424:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
424 | sep = memchr(fixup_str, ':', fixup_len);
| ^
../sources/dtc-1.7.2/libfdt/fdt_overlay.c:434:21: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
434 | sep = memchr(name, ':', fixup_len);
| ^
cc1: all warnings being treated as errors

Quoted 4 lines

---

Hello,

I've started a whinlatter bringup build on the new Ubuntu 26.04 worker with this series applied:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/96/builds/23

It got 2 errors (Other errors are most likely consequences of these ones):

ERROR: shadow-native-4.18.0-r0 do_configure: configure failed:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/96/builds/23/steps/12/logs/stdio line 6269:

Quoted 7 lines
| checking for crypt in -lcrypt... no
| configure: error: crypt() not found
| NOTE: The following config.log files may provide further information.
| NOTE: /srv/pokybuild/yocto-worker/bringup/build/build/tmp/work/x86_64-linux/shadow-native/4.18.0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.

NOTE: recipe shadow-native-4.18.0-r0: task do_configure: Failed

Hello,

for shadow please read
https://lists.openembedded.org/g/openembedded-core/message/234119 the important part:
"libcrypt-dev is no longer installed as a dependency in my minimal docker image" I guess it's now missing on your ubuntu-26.04 host as well.
It used to be typically installed by build-essential -> libc6-dev -> libcrypt-dev but not anymore since 2.42-7:

25.10 questing with 2.42-0ubuntu3.1:
https://packages.ubuntu.com/questing/libc6-dev
26.04 resolute with 2.43-2ubuntu1:
https://packages.ubuntu.com/resolute/libc6-dev

https://changelogs.ubuntu.com/changelogs/pool/main/g/glibc/glibc_2.43-2ubuntu1/changelog:
...
glibc (2.42-7) unstable; urgency=medium

[ Aurelien Jarno ]
* debian/control.in/libc, debian/rules.d/debhelper.mk: drop libcrypt-dev dependency from libc6-dev. Thanks to Helmut Grohne for proposing that, doing an archive rebuild and filling the bug reports.
* debian/control.in/main, debian/sysdeps/linux.mk: enable SystemTap static probes.
* debian/debhelper.in/libc-dev.NEWS: add a NEWS entry about the removal of the obsolete termio interface. Closes: #1124068.
* debian/rules.d/debhelper.mk: ensure that linker scripts work even when

    /usr is unmerged.  Closes: #1120508

* debian/debhelper.in/libc-dev{,-alt}.lintian-overrides, source/lintian-overrides, rules.d/debhelper.mk, salsa-ci.yml: drop unpack-message-for-{orig,source} overrides, fixed in lintian 2.128.0.
* debian/control.in/main: drop Rules-Requires-Root: no, this is now the default.
* debian/libc6.symbols.i386, debian/libc6-i386.symbols.{amd64,x32}: remove the workaround for GLIBC_ABI_GNU_TLS. Closes: #1122038.
* debian/control.in/{libc,i386}: ensure that libdpkg-perl is fixed wrt GLIBC_ABI_GNU_TLS.

-- Aurelien Jarno <[email protected]> Sun, 04 Jan 2026 10:07:24 +0100
...

Quoted 5 lines

I'll have a look at virglrenderer-native tomorrow. khem already fixed it in:
https://gitlab.freedesktop.org/virgl/virglrenderer/-/commit/3f0f775edb2df5ea54c37863286ad565ccddb276
https://git.openembedded.org/openembedded-core/commit/?id=8e85dc6b7f5f7668a610b5fd3754c716f0af65b0
https://git.openembedded.org/openembedded-core/commit/?id=5ff5aac9ed9e53a2e06515cc480c7d89a8aa3171
will add a backport in whinlatter and possibly scarthgap as well.

Backport for whinlatter sent:
https://lists.openembedded.org/g/openembedded-core/message/234990

for scarthgap there is a similar issue in mesa-native first, will send it later.

Cheers,