it fails on musl clang profile as it forces bfd linker
(In reply to kkflt from comment #0) > it fails on musl clang profile as it forces bfd linker Is your llvm built with the USE flag binutils-plugin enabled? If not, try rebuilding llvm with that USE flag enabled and try again.
Please always include the full build.log and emerge --info.
(In reply to Sam James from comment #2) > Please always include the full build.log and emerge --info. (In reply to James McGeehan IV from comment #1) > (In reply to kkflt from comment #0) > > it fails on musl clang profile as it forces bfd linker > > Is your llvm built with the USE flag binutils-plugin enabled? If not, try > rebuilding llvm with that USE flag enabled and try again. This happened to me too on my musl/llvm system. It looks like this diff forces bfd instead of what was fine with ld.lld before https://github.com/gentoo/gentoo/commit/7c3da2ea18bcaeaad647ce2364aebe01cdbf4861#diff-24a6522362fb84bddfe59522eff719110fa85fbd5bd0412dfecb1eafb4215bd5
Created attachment 917346 [details] emerge_info.out
Created attachment 917347 [details] efivar-39-r1_build.log
Right, tc-ld-disable-gold is deprecated and often, the right fix is to replace it with tc-ld-force-bfd. If it works with LLD, we can drop that. (Assuming it works with mold. If it doesn't, I'd much rather force bfd.)
Created attachment 917436 [details] efivar-39-r1_build.log-without-tc-ld-force-bfd_with-llvm_binutils-plugin Here's a successful build log. I recompiled llvm with the binutils-plugin USE flag and deleted tc-ld-force-bfd from the efivar-39-r1 ebuild. It looks like everything compiled fine, but you guys probably know what else needs modifying.
(In reply to darbi from comment #3) Your issue is actually quite different from the original issue. In the future, please file a new bug instead.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d38da339ac2db2f5d517da00d06014682ca3cb8d commit d38da339ac2db2f5d517da00d06014682ca3cb8d Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2025-01-25 00:03:03 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2025-01-25 00:17:54 +0000 sys-libs/efivar: drop tc-ld-force-bfd It appears to work with lld. Closes: https://bugs.gentoo.org/948267 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-libs/efivar/efivar-39-r1.ebuild | 1 - 1 file changed, 1 deletion(-)