Summary: | dev-libs/elfutils-0.185 - elflint.c:(.text+<snip>): undefined reference to buffer_left | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | luke |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://sourceware.org/pipermail/elfutils-devel/2021q2/003861.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
dev-libs:elfutils-0.185:20210606-151042.log emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 temp.tar.bz2 elfutils-0.185-static-inline.patch |
Description
Toralf Förster
![]() Created attachment 713988 [details]
emerge-info.txt
Created attachment 713991 [details]
dev-libs:elfutils-0.185:20210606-151042.log
Created attachment 713994 [details]
emerge-history.txt
Created attachment 713997 [details]
environment
Created attachment 714000 [details]
etc.portage.tar.bz2
Created attachment 714003 [details]
logs.tar.bz2
Created attachment 714006 [details]
temp.tar.bz2
Created attachment 714030 [details, diff]
elfutils-0.185-static-inline.patch
It's not readily reproducible on my system (probably due to slight difference of compiler flags). Can you try the following patch to see if it works?
elfutils-0.185-static-inline.patch
> CFLAGS="-pipe -march=native -fno-diagnostics-color " Also, can you expand -march=native using https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide#Expand_-march.3Dnative.2C_exact_gcc_version_and_other_system-specific_options (In reply to Sergei Trofimovich from comment #9) > > CFLAGS="-pipe -march=native -fno-diagnostics-color " > > Also, can you expand -march=native using > https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide#Expand_-march.3Dnative. > 2C_exact_gcc_version_and_other_system-specific_options 17_1_systemd-j3-20210606-144650 /var/tmp/tb # arch=znver3; for t in param target; do cmd="gcc -Q -O2 -march=$arch --help=$t"; diff -U0 <(LANG=C $cmd) <(LANG=C $cmd -march=native); done --- /dev/fd/63 2021-06-06 21:33:11.333143744 +0200 +++ /dev/fd/62 2021-06-06 21:33:11.333143744 +0200 @@ -157 +157 @@ - -mshstk [disabled] + -mshstk [enabled] At another image 17.1_desktop_gnome-j3-20210606-181430 with 0.184 O run into a similar issue: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: elflint.o: in function `check_attributes': elflint.c:(.text+0xdcff): undefined reference to `buffer_left' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: elflint.c:(.text+0xe557): undefined reference to `buffer_left' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: elflint.c:(.text+0xe574): undefined reference to `buffer_left' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:672: elflint] Error 1 (In reply to Sergei Trofimovich from comment #8) > Created attachment 714030 [details, diff] [details, diff] > elfutils-0.185-static-inline.patch > > It's not readily reproducible on my system (probably due to slight > difference of compiler flags). Can you try the following patch to see if it > works? > > elfutils-0.185-static-inline.patch emerged worked at that image after tweaking this patch by removing first 3 lines The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1933ad5420dada4392022b5571f631f0a5bb21a4 commit 1933ad5420dada4392022b5571f631f0a5bb21a4 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2021-06-06 20:37:31 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2021-06-06 20:37:47 +0000 dev-libs/elfutils: tweak inline annotation Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/794601 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> dev-libs/elfutils/elfutils-0.185.ebuild | 1 + dev-libs/elfutils/files/elfutils-0.185-static-inline.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) Proposed patch upstream as https://sourceware.org/pipermail/elfutils-devel/2021q2/003861.html |