Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602870 - dev-libs/elfutils-0.167 needs minimum version for linux-headers ( error: 'BPF_PSEUDO_MAP_FD' undeclared )
Summary: dev-libs/elfutils-0.167 needs minimum version for linux-headers ( error: 'BPF...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-17 01:07 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2016-12-28 17:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (1480867655-install-dev-libs_elfutils-0.167:0::gentoo.out.txt,506.79 KB, text/plain)
2016-12-17 01:07 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details
config log (config.log,84.89 KB, text/plain)
2016-12-17 01:08 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details
(paludis) cave info (cave-info,16.90 KB, text/plain)
2016-12-17 01:09 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2016-12-17 01:07:38 UTC
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
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2016-12-17 01:08:12 UTC
Created attachment 456426 [details]
config log
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2016-12-17 01:09:59 UTC
Created attachment 456428 [details]
(paludis) cave info
Comment 3 SpanKY gentoo-dev 2016-12-28 17:23:39 UTC
elfutils-0.168 fixes this by adding a fallback define