Summary: | sys-devel/binutils-2.39[gprofng]: gprofng not functional (configuration error: can not find libgp-collector.so. run aborted) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam James <sam> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | neotheuser |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.debian.org/1016725 https://sourceware.org/bugzilla/show_bug.cgi?id=28972 https://sourceware.org/bugzilla/show_bug.cgi?id=30043 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Sam James
![]() ![]() ![]() ![]() Created attachment 799823 [details]
build.log
Possibly related, I have this issue:
/var/tmp/portage/sys-devel/binutils-2.39/work/binutils-2.39/gprofng/libcollector/mmaptrace.c:1286:18: error: no member named '__builtin___snprintf_chk' in 'struct CollectorUtilFuncs'
1 warning and 2 errors generated.
/var/tmp/portage/sys-devel/binutils-2.39/work/binutils-2.39/gprofng/libcollector/envmgmt.c:187:15: error: no member named '__builtin___snprintf_chk' in 'struct CollectorUtilFuncs'
build.log attached
(In reply to Alec Ari from comment #1) > Created attachment 799823 [details] > build.log > > Possibly related, I have this issue: > > /var/tmp/portage/sys-devel/binutils-2.39/work/binutils-2.39/gprofng/ > libcollector/mmaptrace.c:1286:18: error: no member named > '__builtin___snprintf_chk' in 'struct CollectorUtilFuncs' > > 1 warning and 2 errors generated. > > /var/tmp/portage/sys-devel/binutils-2.39/work/binutils-2.39/gprofng/ > libcollector/envmgmt.c:187:15: error: no member named > '__builtin___snprintf_chk' in 'struct CollectorUtilFuncs' > > build.log attached This is probably unrelated. Could you file a new bug please with the full build.log (as you did here) & emerge --info? We need to adapt binutils-config's handling of LIBPATH, I think, to allow taking multiple entries (delimiter of colon?) As a hack, this works (please don't do this -- if you do, clean it up immediately!): (cd /usr/x86_64-pc-linux-gnu/binutils-bin/lib/gprofng && cp -rv /usr/lib64/binutils/x86_64-pc-linux-gnu/2.39/gprofng/* .) && gprofng collect app bash The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6676442e3694fcd557ffdbffb028b9ee1fe6d830 commit 6676442e3694fcd557ffdbffb028b9ee1fe6d830 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-08-26 08:32:53 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-08-26 08:33:34 +0000 sys-devel/binutils: make gprofng optional (masked USE flag) We can enable this by default in future, but it's brand new in 2.39 with several bugs: - Doesn't build on musl (https://sourceware.org/bugzilla/show_bug.cgi?id=29477) - No man pages (https://sourceware.org/bugzilla/show_bug.cgi?id=29521) - Broken at runtime without Java (https://sourceware.org/bugzilla/show_bug.cgi?id=29479) - binutils-config (and this ebuild?) needs adaptation first (https://bugs.gentoo.org/865113) Bug: https://bugs.gentoo.org/865113 Signed-off-by: Sam James <sam@gentoo.org> profiles/base/package.use.mask | 4 ++++ sys-devel/binutils/binutils-2.39.ebuild | 10 +++++++++- sys-devel/binutils/binutils-9999.ebuild | 10 +++++++++- sys-devel/binutils/metadata.xml | 1 + 4 files changed, 23 insertions(+), 2 deletions(-)
> sys-devel/binutils: make gprofng optional (masked USE flag)
>
> We can enable this by default in future, but it's brand new
> in 2.39 with several bugs:
> - Doesn't build on musl
> (https://sourceware.org/bugzilla/show_bug.cgi?id=29477)
> - No man pages (https://sourceware.org/bugzilla/show_bug.cgi?id=29521)
> - Broken at runtime without Java
> (https://sourceware.org/bugzilla/show_bug.cgi?id=29479)
> - binutils-config (and this ebuild?) needs adaptation first
> (https://bugs.gentoo.org/865113)
>
OK since it's hardmasked for now, let's also ignore it in terms of stabilization for now.
The bugs I've just added to See Also imply this might be a upstream issue. (In reply to Sam James from comment #6) > The bugs I've just added to See Also imply this might be a upstream issue. Yeah, if I apply these locally, it seems to work. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70798e86503c74be435ea880a249e18e8a6e0a38 commit 70798e86503c74be435ea880a249e18e8a6e0a38 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-08 21:58:47 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-08 23:09:36 +0000 profiles/base: unmask gprofng for newer binutils Closes: https://bugs.gentoo.org/865113 Signed-off-by: Sam James <sam@gentoo.org> profiles/base/package.use.mask | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bee2b32b13b1a1dc7b64ce0f0d2ac28130a50ff0 commit bee2b32b13b1a1dc7b64ce0f0d2ac28130a50ff0 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-08-31 04:45:50 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-08-31 04:45:50 +0000 dev-debug/gprofng-gui: move from dev-util/ Note that it was never merged so no pkgmove. [sam: Adding the bug as I figure anyone interested in gprofng may be interested in this too.] Bug: https://bugs.gentoo.org/865113 Signed-off-by: Sam James <sam@gentoo.org> {dev-util => dev-debug}/gprofng-gui/Manifest | 0 {dev-util => dev-debug}/gprofng-gui/gprofng-gui-1.1.ebuild | 0 {dev-util => dev-debug}/gprofng-gui/metadata.xml | 0 3 files changed, 0 insertions(+), 0 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a88d49dadcfd97f83e865f3d5a739718763e8358 commit a88d49dadcfd97f83e865f3d5a739718763e8358 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-08-16 03:56:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-08-31 04:45:12 +0000 dev-util/gprofng-gui: switch to autotools-based build Otherwise, it struggles to find the needed paths at runtime. [sam: Adding the bug as I figure anyone interested in gprofng may be interested in this too.] Bug: https://bugs.gentoo.org/865113 Signed-off-by: Sam James <sam@gentoo.org> dev-util/gprofng-gui/gprofng-gui-1.1.ebuild | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dd88ed8cce0323ae08f20d667f63efaaffad18b commit 9dd88ed8cce0323ae08f20d667f63efaaffad18b Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2024-07-23 13:54:15 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-08-31 04:44:54 +0000 dev-util/gprofng-gui: new package, add 1.1 [sam: Adding the bug as I figure anyone interested in gprofng may be interested in this too.] Bug: https://bugs.gentoo.org/865113 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37687 Signed-off-by: Sam James <sam@gentoo.org> dev-util/gprofng-gui/Manifest | 1 + dev-util/gprofng-gui/gprofng-gui-1.1.ebuild | 35 +++++++++++++++++++++++++++++ dev-util/gprofng-gui/metadata.xml | 7 ++++++ 3 files changed, 43 insertions(+) |