From 3de4a53b61a24af98c6793eb809862a5ca12c6fd Mon Sep 17 00:00:00 2001 From: vasilito Date: Fri, 24 Jul 2026 16:14:45 +0900 Subject: [PATCH] mesa: force-include alloca.h (Redox alloca not declared) mesa uses alloca() in shader_query.cpp (and elsewhere) without including ; on Redox stdlib.h does not pull it in, so the C++ compile failed with "alloca was not declared in this scope". Redox relibc DOES provide alloca (alloca.h = #define alloca(s) __builtin_alloca(s)); force-include it via meson c_args/cpp_args so every alloca user resolves to the builtin. Next Redox mesa port gap after the EGL gate; mesa now compiles past it. --- local/recipes/libs/mesa/recipe.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local/recipes/libs/mesa/recipe.toml b/local/recipes/libs/mesa/recipe.toml index c6ad50f37b..fa098fad6e 100644 --- a/local/recipes/libs/mesa/recipe.toml +++ b/local/recipes/libs/mesa/recipe.toml @@ -86,8 +86,8 @@ cookbook_meson \ -Dplatforms=wayland \ -Degl-native-platform=surfaceless \ -Dshader-cache=disabled \ - -Dc_args="['-Wno-error=implicit-function-declaration','-Wno-error=missing-prototypes','-Wno-error=return-type','-Wno-error=empty-body','-Wno-error=incompatible-pointer-types','-Wno-error=int-conversion','-Wno-error=format','-Wno-error','-std=gnu11','-Dstatic_assert=_Static_assert']" \ - -Dcpp_args="['-Wno-error=implicit-function-declaration','-Wno-error=missing-prototypes','-Wno-error=return-type','-Wno-error=empty-body','-Wno-error=incompatible-pointer-types','-Wno-error=int-conversion','-Wno-error=format','-Wno-error']" \ + -Dc_args="['-include','alloca.h','-Wno-error=implicit-function-declaration','-Wno-error=missing-prototypes','-Wno-error=return-type','-Wno-error=empty-body','-Wno-error=incompatible-pointer-types','-Wno-error=int-conversion','-Wno-error=format','-Wno-error','-std=gnu11','-Dstatic_assert=_Static_assert']" \ + -Dcpp_args="['-include','alloca.h','-Wno-error=implicit-function-declaration','-Wno-error=missing-prototypes','-Wno-error=return-type','-Wno-error=empty-body','-Wno-error=incompatible-pointer-types','-Wno-error=int-conversion','-Wno-error=format','-Wno-error']" \ -Dvulkan-drivers=swrast \ -Dshared-glapi=enabled