https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111386

            Bug ID: 111386
           Summary: flto=auto => lto1: fatal error: target specific
                    builtin not available
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: malat at debian dot org
  Target Milestone: ---

I cannot build a simple shared library with RVV. Could someone please check my
steps:

% cat foo.c
#include <riscv_vector.h>

int foo()
{
   size_t vl = __riscv_vsetvlmax_e8mf8();
   return vl;
}

Gives:

% gcc -march=rv64gcv1p0 -flto=auto -o foo.o -c foo.c
% gcc -shared -Wl,-soname,libfoo.so.1 -o libfoo.so.1.0.0 foo.o
lto1: fatal error: target specific builtin not available
compilation terminated.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

Reply via email to