(...) /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src -I.. -I/var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/include -I../include -Wall -march=nocona -mno-sse3 -O2 -pipe -c -o XcmDDC.lo /var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src/XcmDDC.c /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src -I.. -I/var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/include -I../include -Wall -march=nocona -mno-sse3 -O2 -pipe -c -o XcmDummy.lo /var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src/XcmDummy.c libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src -I.. -I/var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/include -I../include -Wall -march=nocona -mno-sse3 -O2 -pipe -c /var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src/XcmDDC.c -fPIC -DPIC -o .libs/XcmDDC.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src -I.. -I/var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/include -I../include -Wall -march=nocona -mno-sse3 -O2 -pipe -c /var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src/XcmEdidParse.c -fPIC -DPIC -o .libs/XcmEdidParse.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src -I.. -I/var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/include -I../include -Wall -march=nocona -mno-sse3 -O2 -pipe -c /var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src/XcmDummy.c -fPIC -DPIC -o .libs/XcmDummy.o In file included from /var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src/XcmDummy.c:3:0: /var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/include/Xcm.h:24:22: fatal error: X11/Xlib.h: No such file or directory #include <X11/Xlib.h> ^ compilation terminated. Makefile:435: recipe for target 'XcmDummy.lo' failed make[2]: *** [XcmDummy.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... /var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src/XcmEdidParse.c: In function 'XcmEdidParse': /var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src/XcmEdidParse.c:238:13: warning: iteration 1u invokes undefined behavior [-Waggressive-loop-optimizations] if(block[0] == 0 && block[1] == 0 && block[2] == 0) ^ /var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3/src/XcmEdidParse.c:232:3: note: containing loop for( i = 0; i < 4; ++i) ^ make[2]: Leaving directory '/var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3-abi_x86_64.amd64/src' Makefile:547: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-libs/libXcm-0.5.3/work/libXcm-0.5.3-abi_x86_64.amd64' Makefile:358: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: media-libs/libXcm-0.5.3::gentoo failed (compile phase): * emake failed ~ # emerge --info '=media-libs/libXcm-0.5.3::gentoo' Portage 2.2.14_rc1 (python 2.7.8-final-0, default/linux/amd64/13.0, gcc-4.9.1, glibc-2.19-r1, 3.11.1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.11.1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E4600_@_2.40GHz-with-gentoo-2.2 KiB Mem: 2047648 total, 609784 free KiB Swap: 2097148 total, 2088876 free Timestamp of tree: Fri, 10 Oct 2014 20:30:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 ccache version 3.1.9 [disabled] app-shells/bash: 4.2_p53 dev-lang/perl: 5.20.1 dev-lang/python: 2.7.8, 3.4.1 dev-util/ccache: 3.1.9-r3 dev-util/pkgconfig: 0.28-r2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.1 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.14.1 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.9.1 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.1 sys-kernel/linux-headers: 3.16 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo roslin sunrise ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -mno-sse3 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=nocona -mno-sse3 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl/" LANG="pl_PL.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/roslin /var/lib/layman/sunrise" USE="amd64 mmx openmp openssl readline sse sse2 ssl threads udev unicode" ABI_X86="64" ELIBC="glibc" KERNEL="linux" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON ~ # emerge -pqv '=media-libs/libXcm-0.5.3::gentoo' [ebuild N ] media-libs/libXcm-0.5.3 USE="-X -static-libs" ABI_X86="(64) -32 (-x32)"
The obvious workaround is to install x11-libs/libX11. I try to fix the build system to not compile against these headers.
Removed long ago.