gn: Disable -Werror
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.
Signed-off-by Zoltán Böszörményi <[email protected]>
--- meta/recipes-devtools/gn/gn_git.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/gn/gn_git.bb +2 -1
@@ -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