Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931792 - sys-boot/gnu-efi-3.0.18-r1 fails to link with clang
Summary: sys-boot/gnu-efi-3.0.18-r1 fails to link with clang
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords: PullRequest
: 932717 940728 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-05-12 10:51 UTC by NHO
Modified: 2024-10-03 19:16 UTC (History)
3 users (show)

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


Attachments
Build log for 18-r1 (3.0.18-r1-build.log,28.60 KB, text/x-log)
2024-05-12 10:51 UTC, NHO
Details
emerge --info (emerge-clang-glibc.txt,5.67 KB, text/plain)
2024-05-12 10:52 UTC, NHO
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NHO 2024-05-12 10:51:40 UTC
Created attachment 892782 [details]
Build log for 18-r1

I'm having llvm-objcopy: error: invalid output format: 'efi-app-x86_64' as an error, build log attached
Comment 1 NHO 2024-05-12 10:52:02 UTC
Created attachment 892783 [details]
emerge --info
Comment 2 Viorel Munteanu gentoo-dev 2024-08-02 04:32:55 UTC
*** Bug 932717 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2024-08-02 04:53:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a8b0eb8e8ebc6a6ea8d32cbcfba8493d87012f7

commit 6a8b0eb8e8ebc6a6ea8d32cbcfba8493d87012f7
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-08-02 04:33:38 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-08-02 04:53:05 +0000

    sys-boot/gnu-efi: force use of binutils objcopy
    
    lld-objcopy does not support PE executables.
    Use binutils objcopy instead.
    
    Bug: https://bugs.gentoo.org/931792
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 sys-boot/gnu-efi/gnu-efi-3.0.18-r3.ebuild | 110 ++++++++++++++++++++++++++++++
 1 file changed, 110 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2024-09-27 17:08:02 UTC
The bug has been referenced in the following commit(s):

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

commit d25b3f6cfcf28716f030b7a7fea3206a5fc4dffd
Author:     Maide <github@maide.ca>
AuthorDate: 2024-09-26 17:00:25 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-09-27 17:07:21 +0000

    sys-boot/gnu-efi: Fix compile when LLVM `binutils-plugin` USE flag is set
    
    LLVM's objcopy is being used instead of the GNU version when `binutils-plugin`
    is enabled. I tried to avoid this by explictly using the GNU path for objcopy
    when our initial test fails.
    
    Let me know if this isn't acceptable, or if you need me to open a new bug
    for this. It was basically the same repo as the linked issue, but the fix did
    not work, as `which objcopy` returns '/usr/lib/llvm/18/bin/objcopy' instead of
    '/usr/bin/objcopy'.
    
    Bug: https://bugs.gentoo.org/931792
    Signed-off-by: Maide <github@maide.ca>
    Closes: https://github.com/gentoo/gentoo/pull/38785
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 sys-boot/gnu-efi/gnu-efi-3.0.18-r3.ebuild | 10 ++++++++++
 sys-boot/gnu-efi/gnu-efi-3.0.18-r5.ebuild | 10 ++++++++++
 2 files changed, 20 insertions(+)
Comment 5 Mike Gilbert gentoo-dev 2024-10-03 19:16:36 UTC
*** Bug 940728 has been marked as a duplicate of this bug. ***