This is the error message: In file included from /usr/include/X11/Xlib.h:44, from Source/WebKit/UIProcess/gtk/PointerLockManagerX11.cpp:32: build-soup3/bmalloc/Headers/bmalloc/EligibilityResult.h:35:5: error: expected identifier before numeric constant 35 | Success, | ^~~~~~~ build-soup3/bmalloc/Headers/bmalloc/EligibilityResult.h:35:5: error: expected ‘}’ before numeric constant I think that the 'Success' macro in X11/X.h conflicts with the same value in the EligibilityKind enum: https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/blob/xorgproto-2024.1/include/X11/X.h?ref_type=tags#L350 https://github.com/WebKit/WebKit/blob/webkitgtk-2.45.91/Source/bmalloc/bmalloc/EligibilityResult.h#L35 I haven't investigated yet why this is not happening in other architectures.
FWIW I can work around this by using the system malloc in this build.
Disabling bmalloc seems to be causing problems on armhf, see bug 279883 I managed to fix the build by changing the order of the Xlib.h include, but I still haven't checked why other architectures are not affected: --- a/Source/WebKit/UIProcess/gtk/PointerLockManagerX11.cpp +++ b/Source/WebKit/UIProcess/gtk/PointerLockManagerX11.cpp @@ -29,10 +29,10 @@ #if PLATFORM(X11) #include "WebPageProxy.h" -#include <X11/Xlib.h> #include <gtk/gtk.h> #include <wtf/TZoneMallocInlines.h> #include <wtf/glib/GRefPtr.h> +#include <X11/Xlib.h> #if USE(GTK4) #include <gdk/x11/gdkx.h>
And this is almost certainly the commit that introduced this build failure: https://commits.webkit.org/282294@main (the changes to PointerLockManagerX11.cpp)