Summary: | sys-boot/refind-0.13.3.1 - clang-15: error: unknown argument: -fno-tree-loop-distribute-patterns | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Viorel Munteanu <ceamac> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | proxy-maint, sputnick, sveyret |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/32710 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.clang.tar.bz2 etc.portage.tar.bz2 sys-boot:refind-0.13.3.1:20221112-130908.log temp.tar.bz2 Patch to work around unnecessary optimisation and non-standard c. |
Description
Toralf Förster
2022-11-12 18:08:21 UTC
Created attachment 832049 [details]
emerge-info.txt
Created attachment 832051 [details]
emerge-history.txt
Created attachment 832053 [details]
environment
Created attachment 832055 [details]
etc.clang.tar.bz2
Created attachment 832057 [details]
etc.portage.tar.bz2
Created attachment 832059 [details]
sys-boot:refind-0.13.3.1:20221112-130908.log
Created attachment 832061 [details]
temp.tar.bz2
Sadly,I'm afraid that this bug isn't going to be fixable without involvement from upstream. It is possible to work around this issue and another where the code is "sloppy" by clang standards (see patch), but there is a larger issue where objcopy accepts custom bfdnames in --target, where llvm-objcopy only accepts supported formats, and refind uses a custom format. Created attachment 864730 [details, diff]
Patch to work around unnecessary optimisation and non-standard c.
This is not a complete fix
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=797977a54c63876d010635d5d8431798396e9b15 commit 797977a54c63876d010635d5d8431798396e9b15 Author: Viorel Munteanu <ceamac@gentoo.org> AuthorDate: 2023-09-10 12:29:17 +0000 Commit: Viorel Munteanu <ceamac@gentoo.org> CommitDate: 2023-09-14 04:39:01 +0000 sys-boot/refind: fix compilation with clang Compiling with clang works. Linking with lld produces broken executables (including the drivers). llvm-objcopy does not support the output format needed by refind. Try to force ld.bfd and binutils objcopy. Fail otherwise. Bug: https://bugs.gentoo.org/732256 Bug: https://bugs.gentoo.org/832018 Bug: https://bugs.gentoo.org/881131 Closes: https://github.com/gentoo/gentoo/pull/32710 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org> sys-boot/refind/files/refind-0.14.0.2-clang.patch | 62 +++++++++ sys-boot/refind/refind-0.14.0.2-r1.ebuild | 160 ++++++++++++++++++++++ 2 files changed, 222 insertions(+) |