backends/meta-gles3-table.h: GLES2/gl2.h: No such file or directory
Here's another regression in mutter git master compared to mutter 3.26.2.
The workaround I used is to make sure libcogl-dev is installed, but we shouldn't need the independent cogl since the forked cogl is part of mutter.
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DCLUTTER_ENABLE_COMPOSITOR_API -DCLUTTER_ENABLE_EXPERIMENTAL_API
-DCOGL_ENABLE_EXPERIMENTAL_API -DCOGL_ENABLE_EXPERIMENTAL_2_0_API -DCOGL_ENABLE_MUTTER_API
-DCLUTTER_DISABLE_DEPRECATION_WARNINGS -DCOGL_DISABLE_DEPRECATION_WARNINGS -pthread -D_REENTRANT -pthread
-I/usr/include/libdrm -I/usr/include/json-glib-1.0 -I/usr/include/libupower-glib -I/usr/include/gnome-desktop-3.0
-I/usr/include/startup-notification-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0
-I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng16 -I/usr/include/libwacom-1.0 -I/usr/include/gudev-1.0 -I/usr/include/gobject-introspection-1.0
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gsettings-desktop-schemas
-I/usr/include/libdrm -I/usr/include/gudev-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I.
-I. -I./backends -I./core -I./ui -I./compositor -I../cogl -I../cogl/cogl -I../cogl/cogl/winsys -I../cogl/cogl
-I../cogl -I../clutter -I../clutter/clutter -I../clutter -I../clutter/clutter -DMUTTER_LIBEXECDIR=\"/usr/lib/mutter\"
-DMUTTER_LOCALEDIR=\"/usr/share/locale\" -DMUTTER_PKGDATADIR=\"/usr/share/mutter\" -DMUTTER_DATADIR=\"/usr/share\"
-DG_LOG_DOMAIN=\"mutter\" -DSN_API_NOT_YET_FROZEN=1 -DMUTTER_PKGLIBDIR=\"/usr/lib/x86_64-linux-gnu/mutter\"
-DMUTTER_PLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/mutter/plugins\" -DGETTEXT_PACKAGE=\"mutter\"
-DXWAYLAND_PATH=\"/usr/bin/Xwayland\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
"-fdebug-prefix-map=/<<BUILDDIR>>/mutter-3.27.1+20180217~c00e0924=." -fstack-protector-strong -Wformat
-Werror=format-security -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wcast-align -Wsign-compare -c backends/meta-cursor-tracker.c -fPIC -DPIC -o
backends/.libs/meta-cursor-tracker.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DCLUTTER_ENABLE_COMPOSITOR_API -DCLUTTER_ENABLE_EXPERIMENTAL_API
-DCOGL_ENABLE_EXPERIMENTAL_API -DCOGL_ENABLE_EXPERIMENTAL_2_0_API -DCOGL_ENABLE_MUTTER_API
-DCLUTTER_DISABLE_DEPRECATION_WARNINGS -DCOGL_DISABLE_DEPRECATION_WARNINGS -pthread -D_REENTRANT -pthread
-I/usr/include/libdrm -I/usr/include/json-glib-1.0 -I/usr/include/libupower-glib -I/usr/include/gnome-desktop-3.0
-I/usr/include/startup-notification-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0
-I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng16 -I/usr/include/libwacom-1.0 -I/usr/include/gudev-1.0 -I/usr/include/gobject-introspection-1.0
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gsettings-desktop-schemas
-I/usr/include/libdrm -I/usr/include/gudev-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I. -I. -I./backends -I./core -I./ui -I./compositor -I../cogl -I../cogl/cogl -I../cogl/cogl/winsys -I../cogl/cogl
-I../cogl -I../clutter -I../clutter/clutter -I../clutter -I../clutter/clutter -DMUTTER_LIBEXECDIR=\"/usr/lib/mutter\"
-DMUTTER_LOCALEDIR=\"/usr/share/locale\" -DMUTTER_PKGDATADIR=\"/usr/share/mutter\" -DMUTTER_DATADIR=\"/usr/share\"
-DG_LOG_DOMAIN=\"mutter\" -DSN_API_NOT_YET_FROZEN=1 -DMUTTER_PKGLIBDIR=\"/usr/lib/x86_64-linux-gnu/mutter\"
-DMUTTER_PLUGIN_DIR=\"/usr/lib/x86_64-linux-gnu/mutter/plugins\" -DGETTEXT_PACKAGE=\"mutter\"
-DXWAYLAND_PATH=\"/usr/bin/Xwayland\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
"-fdebug-prefix-map=/<<BUILDDIR>>/mutter-3.27.1+20180217~c00e0924=." -fstack-protector-strong -Wformat
-Werror=format-security -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wcast-align -Wsign-compare -c backends/meta-gles3.c -fPIC -DPIC -o backends/.libs/meta-gles3.o
In file included from backends/meta-gles3.c:31:0:
./backends/meta-gles3-table.h:26:10: fatal error: GLES2/gl2.h: No such file or directory
#include <GLES2/gl2.h>
^~~~~~~~~~~~~