Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 806274 - sys-libs/libcap-2.52 calls objcopy directly
Summary: sys-libs/libcap-2.52 calls objcopy directly
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2021-08-03 11:47 UTC by Agostino Sarubbo
Modified: 2021-08-03 14:17 UTC (History)
1 user (show)

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

build.log (build.log,45.24 KB, text/plain)
2021-08-03 11:47 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-08-03 11:47:16 UTC

Issue: sys-libs/libcap-2.52 calls objcopy directly.
Discovered on: amd64 (internal ref: ci)

This machine uses GCC-11:
As per QA policy, toolchain tools must not be called directly because they can cause issue in cross-compiling and because is not possible use a different OBJCOPY implementation (like llvm-objcopy). To reproduce, please use sys-devel/gcc-config[-native-symlinks], sys-devel/binutils-config[-native-symlinks].
Comment 1 Agostino Sarubbo gentoo-dev 2021-08-03 11:47:19 UTC
Created attachment 729870 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-08-03 11:47:21 UTC
Possible context of error(s):

/bin/sh: line 1: objcopy: command not found
Comment 3 Larry the Git Cow gentoo-dev 2021-08-03 12:04:29 UTC
The bug has been referenced in the following commit(s):

commit 58fe79a2aef348cbbf37abc0e5f6a1d15961cdae
Author:     Lars Wendler <>
AuthorDate: 2021-08-03 12:04:04 +0000
Commit:     Lars Wendler <>
CommitDate: 2021-08-03 12:04:20 +0000

    sys-libs/libcap: Attempt to not run objcopy directly
    Signed-off-by: Lars Wendler <>

 sys-libs/libcap/libcap-2.52.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2021-08-03 14:17:17 UTC
The bug has been closed via the following commit(s):

commit 2d5296df85f652c9c0f3dbf29aeaccedb4d43588
Author:     David Seifert <>
AuthorDate: 2021-08-03 14:17:04 +0000
Commit:     David Seifert <>
CommitDate: 2021-08-03 14:17:04 +0000

    sys-libs/libcap: proper passing of objcopy to build system
    Should be a proper fix, not just a rough attempt, as I've tested
    via moving the binary away and all looks good.
    Signed-off-by: David Seifert <>

 .../libcap/files/libcap-2.52-build-system-fixes.patch   | 17 ++++++++++-------
 sys-libs/libcap/libcap-2.52.ebuild                      |  3 ---
 2 files changed, 10 insertions(+), 10 deletions(-)