Lto1: fatal error: bytecode stream generated with LTO version 2.2 instead of the expected 3.0

Hi all
I’m simulating Sifive E20 RTL but I have error bellow
command :make hello.vcs.out
GCC version : 4.9.2
RISCV toolchain: 10.2.0

d -shared  -Bsymbolic  -o .//../simv.daidir//_csrc0.so objs/amcQw_d.o
rm -f _csrc0.so
lto1: fatal error: bytecode stream generated with LTO version 2.2 instead of the expected 3.0
compilation terminated.
lto-wrapper: g++ returned 1 exit status
/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:109: product_timestamp] Error

how can I fix this?
Thanks