diff mbox series

gn: Disable -Werror

Message ID 20260409043628.1529262-1-zboszor@gmail.com
State Accepted, archived
Commit 3311772346154d6197c68c6e0034a357aab9f41b
Headers show
Series gn: Disable -Werror | expand

Commit Message

Zoltán Böszörményi April 9, 2026, 4:36 a.m. UTC
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 mbox series

Patch

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