Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 709776

Summary: dev-lang/perf-5.4.7 with sys-libs/binutils-libs-2.34 - .../work/linux-5.4/tools/perf/util/srcline.c:200: undefined reference to `bfd_get_section_flags'
Product: Gentoo Linux Reporter: WANG Xuerui <xen0n>
Component: Current packagesAssignee: Naohiro Aota <naota>
Status: RESOLVED OBSOLETE    
Severity: normal CC: dlan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description WANG Xuerui gentoo-dev 2020-02-16 07:52:37 UTC
perf makes use of `bfd_get_section_vma` and friends which got renamed in binutils-2.34. Hence link failures after upgrading world.

#707898 tracks this. Needs backporting to older perf versions as well.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 '>=sys-devel/binutils-libs-2.34'
2. emerge dev-util/perf
Actual Results:  
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: perf-in.o: in function `find_address_in_section':
/tmp/portage/dev-util/perf-5.4.7/work/linux-5.4/tools/perf/util/srcline.c:200: undefined reference to `bfd_get_section_flags'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /tmp/portage/dev-util/perf-5.4.7/work/linux-5.4/tools/perf/util/srcline.c:204: undefined reference to `bfd_get_section_vma'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /tmp/portage/dev-util/perf-5.4.7/work/linux-5.4/tools/perf/util/srcline.c:205: undefined reference to `bfd_get_section_size'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile.perf:609: perf] Error 1

Expected Results:  
Software installs successfully.
Comment 1 WANG Xuerui gentoo-dev 2022-01-22 17:20:25 UTC
Problematic version of perf is long gone.