Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832018 - sys-boot/refind-0.13.2 fails to compile: clang-13: error: unknown argument: -fno-tree-loop-distribute-patterns
Summary: sys-boot/refind-0.13.2 fails to compile: clang-13: error: unknown argument: -...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-01-25 08:39 UTC by Agostino Sarubbo
Modified: 2023-09-14 04:44 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,46.97 KB, text/plain)
2022-01-25 08:39 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-01-25 08:39:55 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-boot/refind-0.13.2 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses CLANG as a compiler and LLD as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-25 08:39:58 UTC
Created attachment 763574 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2023-09-14 04:43:01 UTC
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(+)