In file included from /var/tmp/portage/x11-base/xorg-server-1.18.4/work/xorg-server-1.18.4/hw/xfree86/drivers/modesetting/dri2.c:43:0: /var/tmp/portage/x11-base/xorg-server-1.18.4/work/xorg-server-1.18.4/hw/xfree86/drivers/modesetting/../../dri2/dri2.h:36:39: fatal error: X11/extensions/dri2tokens.h: No such file or directory #include <X11/extensions/dri2tokens.h> ^ compilation terminated. Makefile:734: recipe for target 'dri2.lo' failed make[5]: *** [dri2.lo] Error 1 make[5]: *** Waiting for unfinished jobs.... # equery u xorg-server [ Legend : U - final flag setting for installation] [ : I - package is installed with flag ] [ Colors : set, unset ] * Found these USE flags for x11-base/xorg-server-1.18.4: U I - - dmx : Build the Distributed Multiheaded X server - - doc : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally - - glamor : Enable Glamor OpenGL 2D acceleration + + ipv6 : Add support for IP version 6 - - kdrive : Build the kdrive X servers - - libressl : Use dev-libs/libressl as SSL provider (might need ssl USE flag), packages should not depend on this USE flag + + minimal : Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features) - - static-libs : Build static versions of dynamic libraries as well + + suid : Enable setuid root program, with potential security risks - - systemd : Enable use of systemd-specific libraries and features like socket activation or session tracking - - tslib : Build with tslib support for touchscreen devices + + udev : Enable virtual/udev integration (device discovery, power and storage device support, etc) - - unwind : Enable libunwind usage for backtraces - - wayland : Enable dev-libs/wayland backend - - xephyr : Build the Xephyr server - - xnest : Build the Xnest server + + xorg : Build the Xorg X server (HIGHLY RECOMMENDED) + + xvfb : Build the Xvfb server Installing x11-proto/dri2proto fixes the problem.
Created attachment 449928 [details, diff] patch Looks like this only affects USE=minimal, as if that USE flag is disabled, dri2proto is included. Moving the depend outside of that conditional fixes the issue for me.
*** This bug has been marked as a duplicate of bug 539766 ***