Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 709776 - 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'
Summary: dev-lang/perf-5.4.7 with sys-libs/binutils-libs-2.34 - .../work/linux-5.4/too...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-16 07:52 UTC by WANG Xuerui
Modified: 2020-02-16 12:25 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WANG Xuerui 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.