https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116686
--- Comment #1 from YunQiang Su <syq at gcc dot gnu.org> --- It fixed the multlib path problem. I guess that the problem is due to that ld-linux-riscv64-lp64d.so.1 found wrong libraries. Can you try to run pr114734.exe manually with LD_DEBUG=all option?