tce-load -i xorg-proto Xorg-7.7-libs-dev llvm-dev elfutils libvdpau-dev libdrm-dev libva-dev 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 -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,x11" --with-gallium-drivers="r300,r600,radeonsi,svga,swrast,swr" --–with-dri-drivers="i915,i965,r200,radeon,swrast" find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make 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 libtool: compile: gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"12.0.1\" "-DPACKAGE_STRING=\"Mesa 12.0.1\"" "-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"12.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1 -DHAVE___BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1 -DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1 -DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_FUNC_ATTRIBUTE_PACKED=1 -DHAVE_FUNC_ATTRIBUTE_PURE=1 -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -DHAVE_FUNC_ATTRIBUTE_WEAK=1 -DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD=1 -I. -I../../../../../include -I../../../../../src/ -I../../../../../src/mapi -I../../../../../src/mesa/ -I../../../../../src/gallium/include -I../../../../../src/gallium/auxiliary -I../../../../../src/mesa/drivers/dri/common -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 -fvisibility=hidden -I/usr/local/include -I/usr/local/include/libdrm -I/usr/local/include/libdrm/nouveau -I/usr/local/include -I/usr/local/include/libdrm -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-math-errno -fno-trapping-math -fno-builtin-memcmp -MT nouveau_screen.lo -MD -MP -MF .deps/nouveau_screen.Tpo -c nouveau_screen.c -fPIC -DPIC -o .libs/nouveau_screen.o nouveau_screen.c: In function 'nouveau_init_screen2': nouveau_screen.c:105:8: 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:8: 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 'struct nouveau_drm' ret = nouveau_device_new(&screen->drm->client, NV_DEVICE, ^ nouveau_screen.c: In function 'nouveau_destroy_screen': nouveau_screen.c:229:2: error: implicit declaration of function 'nouveau_drm_del' [-Werror=implicit-function-declaration] nouveau_drm_del(&screen->drm); ^ cc1: some warnings being treated as errors Makefile:701: recipe for target 'nouveau_screen.lo' failed make[6]: *** [nouveau_screen.lo] Error 1 make[6]: Leaving directory '/usr/src/mesa-12.0.1/src/mesa/drivers/dri/nouveau' Makefile:776: recipe for target 'all-recursive' failed ---------- CC nouveau_screen.lo nouveau_screen.c: In function 'nouveau_screen_init': nouveau_screen.c:159:18: error: implicit declaration of function 'nouveau_drm' [-Werror=implicit-function-declaration] screen->drm = nouveau_drm(&dev->object); ^ nouveau_screen.c:159:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion] screen->drm = nouveau_drm(&dev->object); ^ nouveau_screen.c: In function 'nouveau_screen_fini': nouveau_screen.c:243:24: error: dereferencing pointer to incomplete type 'struct nouveau_drm' int fd = screen->drm->fd; ^ nouveau_screen.c:254:4: error: implicit declaration of function 'nouveau_drm_del' [-Werror=implicit-function-declaration] nouveau_drm_del(&screen->drm); ^ cc1: some warnings being treated as errors Makefile:1269: recipe for target 'nouveau_screen.lo' failed make[4]: *** [nouveau_screen.lo] Error 1 make[4]: Leaving directory '/usr/src/mesa-12.0.1/src/gallium/drivers/nouveau'