Skip to contentSkip to conversation

gn: Disable -Werror

PATCH New Zoltán Böszörményi 1 participant 1 message Apr 9

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gn: Disable -Werror

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.

---
 meta/recipes-devtools/gn/gn_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/gn/gn_git.bb +2 -1
index 0b139ac5f0..852c095861 100644
@@ -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
Signature · 1 line
2.53.0