* [PATCH] gn: Disable -Werror
@ 2026-04-09 4:36 Zoltán Böszörményi
0 siblings, 0 replies; only message in thread
From: Zoltán Böszörményi @ 2026-04-09 4:36 UTC (permalink / raw)
To: openembedded-core; +Cc: Zoltán Böszörményi
With GCC 16 and GLIBC 2.43 on the host, this error is thrown:
/usr/include/c++/16/bits/stl_construct.h:88:9: error: array subscript ‘std::mutex[0]’ is partly outside array bounds of ‘unsigned char [24]’ [-Werror=array-bounds=]
88 | __location->~_Tp();
| ^~~~~~~~~~
Not even the latest version fixes this upstream.
Add --allow-warnings to the python command in do_configure
to disable -Werror during do_compile as a workaround.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/recipes-devtools/gn/gn_git.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/gn/gn_git.bb b/meta/recipes-devtools/gn/gn_git.bb
index 0b139ac5f0..852c095861 100644
--- a/meta/recipes-devtools/gn/gn_git.bb
+++ b/meta/recipes-devtools/gn/gn_git.bb
@@ -30,7 +30,8 @@ do_configure() {
--platform=${@gn_platform("TARGET_OS", d)} \
--out-path=${B} \
--no-static-libstdc++ \
- --no-strip
+ --no-strip \
+ --allow-warnings
}
# Catch build progress from ninja
--
2.53.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-09 4:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-09 4:36 [PATCH] gn: Disable -Werror Zoltán Böszörményi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox