Re: ubuntu-riscv Re: ☠ Buildbot (Sourceware): annobin - failed test (failure) (master)

Nick Clifton nickc@redhat.com
Fri Mar 8 15:28:50 GMT 2024


Hi Mark,

> It was installed, but it doesn't provide LLVMgold.so, just a dangling
> symlink:

> I am not sure that is a packaging error or that LLVMgold just isn't
> supported on riscv.

It isn't supported:

   https://ubuntuforums.org/showthread.php?t=2476019

Basically since gold does not support the Risc-V architecture, the plugin
is unavailable.  Which in turn means that LTO is not support.  (For clang,
on risc-v).

I have disabled lto when building the plugin, for now.  But the problem
is that when annocheck is run over the plugin (eg in Fedora's gating CI)
it will FAIL because LTO is not enabled...

Could you test something for me please ?  Is it possible to build the
clang plugin on risc-v, but using the ld.bfd linker ?  ie: does this patch
work:

diff --git a/clang-plugin/Makefile.in b/clang-plugin/Makefile.in
index 1fc45c0..325d1e9 100644
--- a/clang-plugin/Makefile.in
+++ b/clang-plugin/Makefile.in
@@ -14,6 +14,7 @@ PLUGIN_OPTIONS = \
    -fPIC \
    -Wall \
    -O2 \
+  -flto -fuse-ld=ld.bfd \
    -g -grecord-gcc-switches \
    -Wl,--build-id=md5 \
    -Wl,-z,now

Cheers
   Nick



More information about the Annobin mailing list