At long last I’ve gotten around to fixing the mesa build – there were a couple of problems: nouveau_screen.c: In function ‘nouveau_init_screen2’: nouveau_screen.c:105:2: error: implicit declaration of function ‘nouveau_drm_new’ [-Werror=implicit-function-declaration] ret = nouveau_drm_new(dri_screen->fd, &screen->drm); ^ nouveau_screen.c:111:2: error: implicit declaration of function ‘nouveau_device_new’ [-Werror=implicit-function-declaration] ret = nouveau_device_new(&screen->drm->client, NV_DEVICE, ^ nouveau_screen.c:111:39: error: dereferencing pointer to incomplete type […]