Created attachment 851262 [details] emerge dev-perl/List-MoreUtils-XS log dev-perl/List-MoreUtils-XS fail to emerge against CLang LD: * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/List-MoreUtils-XS-0.430.0/image Checking whether pureperl is required... no Checking for cc... ld.lld: error: unknown argument '-pipe' ld.lld: error: unknown argument '-fno-strict-aliasing' ld.lld: error: unknown argument '-Wl,-O2' ld.lld: error: unknown argument '-Wl,--as-needed' ld.lld: error: unknown argument '-Wl,-O2' ld.lld: error: unknown argument '-Wl,--as-needed' It can be fixed by explicitely setting LD to "${CCLD}", as implemented in several dev-perl ebuild, like dev-perl/File-LibMagic.
Created attachment 851264 [details, diff] Patch to set LD to CCLD Patch similar to code discussed at https://bugs.gentoo.org/723222 (dev-perl/Data-Dump-Streamer broken by LD!=CCLD)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6eb964b504c3aef2192403cbf383ae75d46990ff commit 6eb964b504c3aef2192403cbf383ae75d46990ff Author: Alfred Persson Forsberg <cat@catcream.org> AuthorDate: 2023-03-09 00:21:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-03-11 17:23:20 +0000 perl-module.eclass: Fix linking with ld.lld If LD is not specified then CCLD will be used as the linker. Setting CCLD to CC makes it correctly use LDFLAGS. Bug: https://bugs.gentoo.org/261375 Closes: https://bugs.gentoo.org/882373 Closes: https://bugs.gentoo.org/894608 Signed-off-by: Alfred Persson Forsberg <cat@catcream.org> Closes: https://github.com/gentoo/gentoo/pull/30009 Signed-off-by: Sam James <sam@gentoo.org> eclass/perl-module.eclass | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)