sudo ninja install
[2/17] Compiling C object src/libvirgl.a.p/drm_drm_context.c.o
FAILED: src/libvirgl.a.p/drm_drm_context.c.o 
cc -Isrc/libvirgl.a.p -Isrc -I../src -I../src/gallium/include -I../src/gallium/auxiliary -I../src/gallium/auxiliary/util -I. -I.. -I../src/venus -I../src/drm -I../src/drm/drm-uapi -Isrc/mesa -I../src/mesa -I../src/mesa/compat -I../src/mesa/pipe -I../src/mesa/util -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -O3 -Werror=enum-int-mismatch -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings -Wno-missing-field-initializers -fvisibility=hidden -imacros /home/jayden/Downloads/virglrenderer/build/config.h -DHAVE_CONFIG_H=1 -fPIC -pthread -MD -MQ src/libvirgl.a.p/drm_drm_context.c.o -MF src/libvirgl.a.p/drm_drm_context.c.o.d -o src/libvirgl.a.p/drm_drm_context.c.o -c ../src/drm/drm_context.c
In file included from ../src/drm/drm_context.c:5:
/usr/include/xf86drm.h:40:10: fatal error: drm.h: No such file or directory
   40 | #include <drm.h>
      |          ^~~~~~~
compilation terminated.
[3/17] Compiling C object src/libvirgl.a.p/drm_drm_renderer.c.o
FAILED: src/libvirgl.a.p/drm_drm_renderer.c.o 
cc -Isrc/libvirgl.a.p -Isrc -I../src -I../src/gallium/include -I../src/gallium/auxiliary -I../src/gallium/auxiliary/util -I. -I.. -I../src/venus -I../src/drm -I../src/drm/drm-uapi -Isrc/mesa -I../src/mesa -I../src/mesa/compat -I../src/mesa/pipe -I../src/mesa/util -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -O3 -Werror=enum-int-mismatch -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings -Wno-missing-field-initializers -fvisibility=hidden -imacros /home/jayden/Downloads/virglrenderer/build/config.h -DHAVE_CONFIG_H=1 -fPIC -pthread -MD -MQ src/libvirgl.a.p/drm_drm_renderer.c.o -MF src/libvirgl.a.p/drm_drm_renderer.c.o.d -o src/libvirgl.a.p/drm_drm_renderer.c.o -c ../src/drm/drm_renderer.c
In file included from ../src/drm/drm_renderer.c:15:
/usr/include/xf86drm.h:40:10: fatal error: drm.h: No such file or directory
   40 | #include <drm.h>
      |          ^~~~~~~
compilation terminated.
[4/17] Compiling C object src/libvirgl.a.p/drm_asahi_asahi_renderer.c.o
FAILED: src/libvirgl.a.p/drm_asahi_asahi_renderer.c.o 
cc -Isrc/libvirgl.a.p -Isrc -I../src -I../src/gallium/include -I../src/gallium/auxiliary -I../src/gallium/auxiliary/util -I. -I.. -I../src/venus -I../src/drm -I../src/drm/drm-uapi -Isrc/mesa -I../src/mesa -I../src/mesa/compat -I../src/mesa/pipe -I../src/mesa/util -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -O3 -Werror=enum-int-mismatch -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=pedantic -Wmissing-prototypes -Werror=incompatible-pointer-types -Werror=int-to-pointer-cast -Werror=switch -Wno-overlength-strings -Wno-missing-field-initializers -fvisibility=hidden -imacros /home/jayden/Downloads/virglrenderer/build/config.h -DHAVE_CONFIG_H=1 -fPIC -pthread -MD -MQ src/libvirgl.a.p/drm_asahi_asahi_renderer.c.o -MF src/libvirgl.a.p/drm_asahi_asahi_renderer.c.o.d -o src/libvirgl.a.p/drm_asahi_asahi_renderer.c.o -c ../src/drm/asahi/asahi_renderer.c
In file included from ../src/drm/asahi/asahi_renderer.c:16:
/usr/include/xf86drm.h:40:10: fatal error: drm.h: No such file or directory
   40 | #include <drm.h>
      |          ^~~~~~~
compilation terminated.
[11/17] Compiling C object src/libvirglrenderer.so.1.8.8.p/virglrenderer.c.o
ninja: build stopped: subcommand failed.
jayden@jayden-macbookpro:~/Downloads/virglrenderer/build$