Created attachment 346764 [details] Output of emerge --info The mesa ebuild stops in the compile stage for no good reason. It stops because the mentioned header is missing. I apologize if this is a simple oversight on my part, but even if it is, mesa needs to require whatever package dri2.h has been moved to. On a laptop, that has "the same" packages, that were installed a couple or months prior to this I get: $ ssh eee.lan locate dri2.h\| xargs qfile -e x11-libs/libxcb-1.8.1 (/usr/include/xcb/dri2.h) x11-base/xorg-server-1.13.1 (/usr/include/xorg/dri2.h) On this machine: # USE='-xvfb minimal nptl udev suid xorg' emerge =x11-base/xorg-server-1.13.4 # qlist x11-base/xorg-server |grep dri (nothing) The build gets as far as: x86_64-pc-linux-gnu-gcc -c -I. -I../../../../src/gallium/include -I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers -DHAVE_CONFIG_H -DHAVE_XEXTPROTO_71 -DHAVE_LIBKMS -I/usr/include/libkms -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/libdrm -I../../../../src/gallium/include -I../../../../src/gallium/auxiliary -I../../../../include -I../../../../src/mesa -I../../../../src/mesa/drivers/dri/common -I../../../../src/mesa/main -march=core2 -O2 -pipe -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -fPIC -D_GNU_SOURCE -DHAVE_PTHREAD -DTEXTURE_FLOAT_ENABLED -DUSE_X86_64_ASM -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DIN_DRI_DRIVER -DUSE_XCB -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_PTHREAD -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_XEXTPROTO_71 -fvisibility=hidden xorg_dri2.c -o xorg_dri2.o xorg_dri2.c:38:18: fatal error: dri2.h: No such file or directory compilation terminated. make: *** [all-recursive] Error 1
Created attachment 346766 [details] build.log (Mesa-9.0.1)
I forgot to mention that copying the header from the other host gets me through the build.
The header is missing from the xorg-server package because of the "minimal" USE flag.
(In reply to comment #3) > The header is missing from the xorg-server package because of the "minimal" > USE flag. This is correct. The problem is that a new version (upgrading from 7.10.3) of mesa relies on that header. Mesa was being updated before (emerge resolved order) xorg-server, and failed to compile because the previously (1.13.4 with minimal) installed xorg-server did not provide this header. I believe this would can be resolved by requiring xorg-server without the minimal USE flag. Not sure of the implications of that.
The best way to handle this on user side for now would be to not build mesa with USE="xorg".
I have had the same issue and posted it on the forum. https://forums.gentoo.org/viewtopic-p-7301248.html#7301248 The following workaround has helped me. $ echo "" > /etc/portage/package.use $ emerge --unmerge x11-base/xorg-server $ emerge gentoolkit $ euse --disable minimal $ euse --disable xorg $ emerge media-libs/mesa $ euse --enable xorg $ emerge x11-base/xorg-server You can find more details in that forum topic which I have mentioned.
fixed in mesa-9.1.2