tce-load -i compiletc meson cmake llvm-dev libdrm-dev libva-dev libvdpau-dev wayland-dev wayland-protocols python3.6-mako libXvmc-dev libXdamage-dev libxshmfence-dev libXxf86vm-dev libXrandr-dev gettext elfutils-dev https://mesa.freedesktop.org/archive/mesa-19.2.3.tar.xz cd mesa-19.2.3 sudo cp /tmp/tcloop/llvm-dev/usr/local/bin/* /usr/local/bin mkdir build cd build CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe -DNDEBUG" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -DNDEBUG" meson --prefix=/usr/local --buildtype=plain -Dglx=dri -Dosmesa=gallium -Dvalgrind=false ../ [-fno-rtti fails] ninja [15m 11.06s] sudo ninja install Message: Configuration summary: prefix: /usr/local libdir: lib includedir: include OpenGL: yes (ES1: yes ES2: yes) OSMesa: libOSMesa(Gallium) DRI platform: drm DRI drivers: i915 i965 r100 r200 nouveau DRI driver dir: /usr/local/lib/dri GLX: DRI-based EGL: yes EGL drivers: builtin:egl_dri2 builtin:egl_dri3 GBM: yes EGL/Vulkan/VL platforms: x11 wayland drm surfaceless Vulkan drivers: amd intel Vulkan ICD dir: share/vulkan/icd.d llvm: yes llvm-version: 8.0.0 Gallium drivers: r300 r600 radeonsi nouveau virgl svga swrast Gallium st: mesa xa xvmc xvmc vdpau va HUD lmsensors: no Shared-glapi: yes