Created attachment 456424 [details] build log I've been having some trouble with upgrading elfutils on an old box, as repeated installations have repeatedly died as follows: > x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I/tmp/portage/dev-libs-elfutils-0.167/work/elfutils-0.167/libcpu -I.. -I. -I/tmp/portage/dev-libs-elfutils-0.167/work/elfutils-0.167/libcpu -I/tmp/portage/dev-libs-elfutils-0.167/work /elfutils-0.167/lib -I.. -I/tmp/portage/dev-libs-elfutils-0.167/work/elfutils-0.167/libcpu/../libelf -I/tmp/portage/dev-libs-elfutils-0.167/work/elfutils-0.167/libcpu/../libebl -I/tmp/portage/dev-libs-elfutils-0.167/work/elfutils-0.167/libcpu/../libdw -I/tmp/portage/dev-libs-elfutils-0.167/work/elfutils-0.167/libcpu/../libasm -mtune=native -O3 -pipe -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wlogical-op -Wunused -Wextra -Wstack-usage=262144 -fPIC -fdollars-in-identifiers -Wno-format-nonliteral -mtune=native -O3 -pipe -c -o libcpu_bpf_a-bpf_disasm.o `test -f 'bpf_disasm.c' || echo '/tmp/portage/dev-libs-elfutils-0.167/work/elfutils-0.167/libcpu/'`bpf_disasm.c > > /tmp/portage/dev-libs-elfutils-0.167/work/elfutils-0.167/libcpu/bpf_disasm.c: In function 'bpf_disasm': > /tmp/portage/dev-libs-elfutils-0.167/work/elfutils-0.167/libcpu/bpf_disasm.c:144:13: error: 'BPF_PSEUDO_MAP_FD' undeclared (first use in this function) > case BPF_PSEUDO_MAP_FD: > ^ > /tmp/portage/dev-libs-elfutils-0.167/work/elfutils-0.167/libcpu/bpf_disasm.c:144:13: note: each undeclared identifier is reported only once for each function it appears in > make[2]: *** [Makefile:484: libcpu_bpf_a-bpf_disasm.o] Error 1 > rm i386_defs > make[1]: *** [Makefile:481: all-recursive] Error 1 > make: *** [Makefile:397: all] Error 2 A quick google indicitated that symbol comes from linux-headers, and it turns out I still had linux-headers 3.9 installed ( and nothing I've done in the last year or so prompted it to upgrade ) > cave show -c linux-headers::installed > * sys-kernel/linux-headers::installed > ::installed 3.19 {:0} > sys-kernel/linux-headers-3.19:0::installed > Description Linux system headers > Homepage http://www.kernel.org/ http://www.gentoo.org/ > From repositories gentoo > Installed time Mon Feb 16 02:12:06 NZDT 2015 After upgrading linux-headers to 4.8 ( and no other changes ), installation completed. linux-headers-4.3 also prove to be good, but linux-headers-3.18 ( still one of the stable options for amd64 ) replicates this error. Though <=elfutils-0.166 is unaffected by this problem on linux-headers-3.18
Created attachment 456426 [details] config log
Created attachment 456428 [details] (paludis) cave info
elfutils-0.168 fixes this by adding a fallback define