Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940728 - sys-boot/gnu-efi-3.0.18-r5 failure to compile on musl/llvm profile (objcopy does not support EFI target)
Summary: sys-boot/gnu-efi-3.0.18-r5 failure to compile on musl/llvm profile (objcopy d...
Status: RESOLVED DUPLICATE of bug 931792
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-03 18:47 UTC by ray
Modified: 2024-10-15 04:54 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.txt,15.87 KB, text/plain)
2024-10-03 18:48 UTC, ray
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ray 2024-10-03 18:47:03 UTC
The build log is just this:

 * Package:    sys-boot/gnu-efi-3.0.18-r5:0
 * Repository: gentoo
 * Maintainer: ceamac@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_musl kernel_linux
 * FEATURES:   compressdebug network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
clang-cpp: warning: argument unused during compilation: '-E' [-Wunused-command-line-argument]
clang-cpp: warning: argument unused during compilation: '-E' [-Wunused-command-line-argument]
 * ERROR: sys-boot/gnu-efi-3.0.18-r5::gentoo failed (pretend phase):
 *   objcopy (objcopy) does not support EFI target
 *
 * Call stack:
 *                  ebuild.sh, line 136:  Called pkg_pretend
 *   gnu-efi-3.0.18-r5.ebuild, line  72:  Called check_and_set_objcopy
 *   gnu-efi-3.0.18-r5.ebuild, line  59:  Called die
 * The specific snippet of code:
 *   			LC_ALL=C "${OBJCOPY}" --help | grep -q '\<pei-' || die "${OBJCOPY} (objcopy) does not support EFI target"
 *
 * If you need support, post the output of `emerge --info '=sys-boot/gnu-efi-3.0.18-r5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-boot/gnu-efi-3.0.18-r5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-boot/gnu-efi-3.0.18-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-boot/gnu-efi-3.0.18-r5/temp/die.env'.
 * Working directory: '/var/tmp/portage/sys-boot/gnu-efi-3.0.18-r5/empty'
 * S: '/var/tmp/portage/sys-boot/gnu-efi-3.0.18-r5/work/gnu-efi-3.0.18'

Reproducible: Always
Comment 1 ray 2024-10-03 18:48:21 UTC
Created attachment 904872 [details]
emerge --info
Comment 2 Mike Gilbert gentoo-dev 2024-10-03 19:16:36 UTC

*** This bug has been marked as a duplicate of bug 931792 ***
Comment 3 Viorel Munteanu gentoo-dev 2024-10-04 05:11:50 UTC
You need objcopy from sys-devel/binutils to build gnu-efi, llvm-objcopy does not work.  sys-devel/binutils is not part of @system on llvm profiles, but it is in BDEPEND, so it should have been installed.  Do you have it in package.provided?
Comment 4 Larry the Git Cow gentoo-dev 2024-10-15 04:54:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1228ce0c5b683ffde567bbf535a96ac96d546af4

commit 1228ce0c5b683ffde567bbf535a96ac96d546af4
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-10-15 04:37:36 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-10-15 04:37:36 +0000

    sys-boot/gnu-efi: fix building on llvm profile
    
    The llvm profile does not have sys-devel/binutils.
    Remove the check from pkg_pretend, before it being installed.
    
    Bug: https://bugs.gentoo.org/940728
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 sys-boot/gnu-efi/gnu-efi-3.0.18-r5.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)