From 787416c6ba1e532a515a57068b49f5386d673de6 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 3 Aug 2022 19:30:10 +0300 Subject: [PATCH] Disable clang plugin on riscv64 [..] /usr/bin/ld: /usr/bin/../lib64/LLVMgold.so: error loading plugin: /usr/bin/../lib64/LLVMgold.so: cannot open shared object file: No such file or directory [..] Note that ld.gold in general are not implemented for riscv. Note sure if this is available in a modern LLVM/Clang version. To be tested later on. Signed-off-by: David Abdurachmanov --- annobin.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/annobin.spec b/annobin.spec index a75d251..7df01d7 100644 --- a/annobin.spec +++ b/annobin.spec @@ -24,7 +24,13 @@ URL: https://sourceware.org/annobin/ %bcond_with debuginfod # Use "--without clangplugin" to disable the building of the annobin plugin for Clang. +%ifnarch riscv64 %bcond_without clangplugin +%else +# riscv64: LLVMgold.so: cannot open shared object file: No such file or directory +# In general Gold was never implemented for riscv. +%bcond_with clangplugin +%endif # Use "--without gccplugin" to disable the building of the annobin plugin for GCC. %bcond_without gccplugin @@ -487,6 +493,7 @@ fi %changelog * Wed Aug 03 2022 David Abdurachmanov - 10.79-1.0.riscv64 - Fix riscv targets +- Disable clang plugin on riscv targets * Mon Jul 25 2022 Nick Clifton - 10.79-1 - Annocheck: Fixes for libannocheck.h.