Created attachment 409206 [details] Portion of "#emerge xorg-server" and output of "# emerge --info" "termio.h" is a deprecated header and should point to "termios.h" Making a symlink from /usr/include/termio.h to /usr/include/termios.h resolves the issue Line 65 in attachment: /var/tmp/portage/x11-base/xorg-server-1.16.4/work/xorg-server-1.16.4/hw/xfree86/os-support/xf86_OSlib.h:182:20: fatal error: termio.h: No such file or directory
Since you are using a musl profile, please use the musl overlay. See https://wiki.gentoo.org/wiki/Project:Hardened_musl It has a patch for the very problem you are experiencing: https://cgit.gentoo.org/proj/musl.git/tree/x11-base/xorg-server/files/xorg-server-1.14.3-musl.patch I've sent the patch upstream, but should probably resend it: http://thread.gmane.org/gmane.comp.freedesktop.xorg.devel/44851
Fixed in xserver-1.18 by upstream commit e8e3368298c98a1292bb1c727e2f3d56539e2eac.