tce-load -i xorg-proto Xorg-7.7-libs-dev llvm-dev elfutils libvdpau-dev libdrm-dev libva-dev python cd mesa-12.0.1 patch -Np1 -i ../mesa-12.0.1-add_xdemos-1.patch sed -i "/pthread-stubs/d" configure.ac sed -i "/seems to be moved/s/^/#/" bin/ltmain.sh ./autogen.sh CC="gcc -flto -fuse-linker-plugin -march=pentium-m -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=pentium-m -mtune=i686 -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,x11" --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast,[swr]" [swr driver will not compile] find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [23m 33.07s] 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 platforms: drm x11 EGL drivers: builtin:egl_dri2 builtin:egl_dri3 Vulkan drivers: no llvm: yes llvm-config: /usr/local/bin/llvm-config llvm-version: 3.7.0 Gallium drivers: nouveau r300 r600 radeonsi svga swrast swr Gallium st: mesa xa xvmc vdpau va Shader cache: yes With SHA1 from: libcrypto Shared libs: yes Static libs: no Shared-glapi: yes CFLAGS: -g -O2 -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-math-errno -fno-trapping-math -fno-builtin-memcmp CXXFLAGS: -g -O2 -Wall -fno-strict-aliasing -fno-builtin-memcmp Macros: -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DNDEBUG -DTEXTURE_FLOAT_ENABLED -DUSE_X86_64_ASM -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DHAVE_SHA1 -DGLX_USE_DRM -DHAVE_LIBUDEV -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_ALIAS -DHAVE_DRI3 -DHAVE_MINCORE -DHAVE_ST_VDPAU -DHAVE_LLVM=0x0307 -DMESA_LLVM_VERSION_PATCH=0 LLVM_CFLAGS: -I/usr/local/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS LLVM_CXXFLAGS: -I/usr/local/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=c++11 -fno-rtti 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 make[5]: Entering directory '/usr/src/mesa-12.0.1/src/gallium/drivers/swr' CXX libswrAVX_la-swr_clear.lo In file included from ./rasterizer/jitter/jit_api.h:32:0, from swr_context.h:30, from swr_clear.cpp:24: ./rasterizer/core/utils.h:40:8: error: 'INT64' does not name a type INLINE INT64 _MM_EXTRACT_EPI64(__m128i a, const int32_t ndx) ^ ./rasterizer/core/utils.h:58:45: error: 'INT64' has not been declared INLINE __m128i _MM_INSERT_EPI64(__m128i a, INT64 b, const int32_t ndx) ^ Makefile:1335: recipe for target 'libswrAVX_la-swr_clear.lo' failed make[5]: *** [libswrAVX_la-swr_clear.lo] Error 1 make[5]: Leaving directory '/usr/src/mesa-12.0.1/src/gallium/drivers/swr' Makefile:955: recipe for target 'all' failed make[4]: *** [all] Error 2