tce-load -i compiletc xorg-proto Xorg-7.7-dev llvm-dev elfutils libvdpau-dev libdrm-dev libva-dev wayland-dev wayland-protocols cd mesa-17.2.0 patch -Np1 -i ../mesa-17.1.8-add_xdemos-1.patch sudo cp /tmp/tcloop/llvm-dev/usr/local/bin/* /usr/local/bin CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local -disable-static --localstatedir=/var --sysconfdir=/etc --enable-texture-float --enable-gles1 --enable-gles2 --enable-osmesa --enable-xa --enable-gbm --enable-glx-tls --with-egl-platforms="drm,wayland,x11" --with-gallium-drivers="i915,nouveau,r300,r600,radeonsi,svga,swrast,swr" --with-dri-drivers="i915,i965,nouveau,r200,radeon,swrast" --with-vulkan-drivers="intel,radeon" find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [30m 31.99s] make -C xdemos DEMOS_PREFIX=/usr/local sudo make install sudo make -C xdemos DEMOS_PREFIX=/usr/local install prefix: /usr/local exec_prefix: ${prefix} libdir: ${exec_prefix}/lib includedir: ${prefix}/include OpenGL: yes (ES1: yes ES2: yes) OSMesa: libOSMesa DRI platform: drm DRI drivers: i915 i965 nouveau r200 radeon swrast DRI driver dir: ${libdir}/dri GLX: DRI-based EGL: yes EGL drivers: builtin:egl_dri2 builtin:egl_dri3 GBM: yes EGL/Vulkan/VL platforms: drm wayland x11 Vulkan drivers: intel radeon Vulkan ICD dir: ${datarootdir}/vulkan/icd.d llvm: yes llvm-config: /usr/local/bin/llvm-config llvm-version: 4.0.1 Gallium drivers: i915 nouveau r300 r600 radeonsi svga swrast swr Gallium st: mesa xa xvmc vdpau va HUD extra stats: no HUD lmsensors: no SWR archs: avx avx2 Shared libs: yes Static libs: no Shared-glapi: yes CFLAGS: -g -O2 -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-math-errno -fno-trapping-math CXXFLAGS: -g -O2 -Wall -fno-math-errno -fno-trapping-math LDFLAGS: Macros: -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DTEXTURE_FLOAT_ENABLED -DUSE_X86_64_ASM -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_DLOPEN -DHAVE_DL_ITERATE_PHDR -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DGLX_USE_DRM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_DRM_PLATFORM -DHAVE_WAYLAND_PLATFORM -DHAVE_X11_PLATFORM -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_ST_VDPAU -DHAVE_LLVM=0x0400 -DMESA_LLVM_VERSION_PATCH=1 LLVM_CFLAGS: -I/usr/local/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS LLVM_CXXFLAGS: -I/usr/local/include -std=c++11 -pipe -fno-rtti -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS LLVM_CPPFLAGS: -I/usr/local/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS LLVM_LDFLAGS: -L/usr/local/lib PYTHON2: python2.7 Run 'make' to build Mesa