Created attachment 894255 [details] build.log and emerge --info Discovered on loong but leaving as target-independent since it looks like a dep issue. FAILED: test/CMakeFiles/testgles2.dir/testgles2.c.o /usr/bin/loongarch64-unknown-linux-gnu-gcc -I/var/tmp/portage/media-libs/libsdl2-2.30.3/work/SDL2-2.30.3_build-.lp64d/include -I/var/tmp/portage/media-libs/libsdl2-2.30.3/work/SDL2-2.30.3_build-.lp64d/include/SDL2 -I/var/tmp/portage/media-libs/libsdl2-2.30.3/work/SDL2-2.30.3_build-.lp64d/include-config-relwithdebinfo/SDL2 -pipe -O2 -idirafter "/var/tmp/portage/media-libs/libsdl2-2.30.3/work/SDL2-2.30.3/src/video/khronos" -DHAVE_LINUX_VERSION_H -Wall -Wundef -fno-strict-aliasing -Wdeclaration-after-statement -fvisibility=hidden -Wshadow -Wno-unused-local-typedefs -fdiagnostics-color=always -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11 -D_REENTRANT -DSDL_BUILD_MAJOR_VERSION=2 -DSDL_BUILD_MINOR_VERSION=30 -DSDL_BUILD_MICRO_VERSION=3 -fno-fast-math -MD -MT test/CMakeFiles/testgles2.dir/testgles2.c.o -MF test/CMakeFiles/testgles2.dir/testgles2.c.o.d -o test/CMakeFiles/testgles2.dir/testgles2.c.o -c /var/tmp/portage/media-libs/libsdl2-2.30.3/work/SDL2-2.30.3/test/testgles2.c In file included from /var/tmp/portage/media-libs/libsdl2-2.30.3/work/SDL2-2.30.3/test/testgles2.c:32: /var/tmp/portage/media-libs/libsdl2-2.30.3/work/SDL2-2.30.3_build-.lp64d/include/SDL2/SDL_opengles2.h:35:10: fatal error: GLES2/gl2platform.h: No such file or directory 35 | #include <GLES2/gl2platform.h> | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated.