From 45c0685ba3332b67cc9b612fe8cf3f44b1316651 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Fri, 26 Apr 2024 08:36:57 +0300 Subject: [PATCH] Add LLD (ld.lld) for riscv64 See: https://github.com/torvalds/linux/commit/72fae6319962fca2ecd8bb4f4e8dbdda7fe9af6f We currently get: [..] clang: error: invalid linker name in argument '-fuse-ld=lld' [..] while compiling sefltests on riscv64 Signed-off-by: David Abdurachmanov --- kernel.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kernel.spec b/kernel.spec index 08df4de2a..96906df28 100644 --- a/kernel.spec +++ b/kernel.spec @@ -169,7 +169,7 @@ Summary: The Linux kernel # This is needed to do merge window version magic %define patchlevel 8 # This allows pkg_release to have configurable %%{?dist} tag -%define specrelease 300%{?buildid}.3.riscv64%{?dist} +%define specrelease 300%{?buildid}.4.riscv64%{?dist} # This defines the kabi tarball version %define kabiversion 6.8.7 @@ -720,7 +720,7 @@ BuildRequires: zlib-devel binutils-devel %endif %if %{with_selftests} BuildRequires: clang llvm-devel fuse-devel -%ifarch x86_64 +%ifarch x86_64 riscv64 BuildRequires: lld %endif BuildRequires: libcap-devel libcap-ng-devel rsync libmnl-devel @@ -3972,6 +3972,9 @@ fi\ # # %changelog +* Fri Apr 26 2024 David Abdurachmanov [6.8.7-0.4.riscv64] +- Add LLD (ld.lld) for riscv64 + * Thu Apr 25 2024 David Abdurachmanov [6.8.7-0.3.riscv64] - Update riscv64 configuration (StarFive VF2)